How it works
Episodic memories (from conversations) and static knowledge (from documents) have different lifecycles. MemWire keeps them separate but surfaces both at recall time. When you callmemory.recall(), the engine:
- Traverses the memory graph for relevant conversation paths
- Also searches knowledge chunks using the same query embedding
- Merges both results into a single
RecallResult
Adding a knowledge base
Recall with knowledge
Knowledge chunks appear automatically in recall results:Direct knowledge search
Deleting a knowledge base
Scoping knowledge
Knowledge bases respect the same multi-tenancy hierarchy as memories:KnowledgeChunk fields
| Field | Type | Description |
|---|---|---|
chunk_id | str | Unique identifier for the chunk |
kb_id | str | Parent knowledge base ID |
content | str | Chunk text |
score | float | Similarity score from the search |
metadata | dict | Optional metadata passed at ingestion |

