| Component | Interface | Use case |
|---|---|---|
ThrindexMemoryPostprocessor | BaseNodePostprocessor | Inject memories as extra nodes before LLM synthesis |
ThrindexMemoryReader | BaseReader | Load memories as Document objects for indexing or retrieval |
Install
ThrindexMemoryPostprocessor
Retrieves relevant Thrindex memories and injects them as additional TextNode objects at the front of the node list before LLM synthesis. Attach it to any RetrieverQueryEngine or QueryPipeline.
RetrieverQueryEngine:
TextNode metadata includes source: "thrindex_memory", memory_id, agent_id, user_id, importance, level, and created_at.
ThrindexMemoryReader
A BaseReader that loads Thrindex memories as LlamaIndex Document objects. Use it to seed an index with an agent’s memory corpus, or to pull memories into a retrieval pipeline.
query is empty, the reader searches using "important context and preferences" as a default query, returning the most important recent memories.