| Component | Interface | Use case |
|---|---|---|
ThrindexChatMemory | BaseMemory | Persist conversation turns and load relevant memories as chat history context |
ThrindexRetriever | BaseRetriever | Semantic memory search inside RAG chains, RetrievalQA, agents |
Install
- Python
- TypeScript
ThrindexChatMemory
- Python
A Use with any chain that accepts a
BaseMemory implementation that saves conversation turns to Thrindex after each chain call and retrieves the most relevant memories before the next one.memory parameter:ThrindexRetriever
- Python
- TypeScript
A Each returned
BaseRetriever that wraps Thrindex semantic search. Use it anywhere LangChain accepts a retriever — RetrievalQA, LCEL chains, agents, and more.Document has page_content set to the memory text and metadata containing memory_id, agent_id, user_id, score, importance, level, and created_at.