Install
What’s included
| Class | Purpose |
|---|---|
SynapRetriever | Pipeline component that fetches Synap memories as Document objects |
SynapMemoryWriter | Pipeline component that writes conversation turns back to Synap |
SynapRetriever
Retrieves memories as HaystackDocument objects for use in RAG pipelines.
Document has:
content— the memory textmeta["type"]— memory type (e.g."fact","preference")meta["confidence"]— relevance score
SynapMemoryWriter
Records conversation turns back into Synap. Place it at the end of your pipeline after the LLM response.SynapMemoryWriter surfaces write failures explicitly (raises SynapIntegrationError) so your pipeline knows if memory persistence failed.
Full pipeline example
Next steps
LangChain
Memory and retriever for LangChain.
LlamaIndex
BaseMemory and retriever for LlamaIndex.