Installation
MengramRetriever
SubclassesBaseRetriever from LangChain. Searches across all 3 memory types and returns Document objects.
Use in a chain
Cognitive Profile
Parameters
| Parameter | Type | Default | Description |
|---|---|---|---|
api_key | str | required | Mengram API key |
user_id | str | ”default” | User to search |
api_url | str | ”https://mengram.io” | API base URL |
top_k | int | 5 | Max results per type |
memory_types | list | all 3 | Which types to search |