Expand description
Memory and retrieval for Troupekit agents, built on the troupekit-core stores. Covers run history, scoped knowledge, profile facts, chunking, embeddings, hybrid retrieval and a bounded context block to prepend to a prompt.
Re-exports§
pub use error::ContextError;
Modules§
- block
- chunk
- embed
- error
- facts
- hybrid
- Hybrid retrieval: a vector list and a keyword list per scope, fused
with reciprocal-rank fusion. A new path next to
retrieve, which keeps its weighted-sum behaviour unchanged. - ingest
- load
- Loads text, markdown and HTML files from a folder for ingest. The walk is bounded in file count, file size and depth, skips hidden entries and symlinks by default, and returns files sorted by source.
- memory
- retrieve
- summary
- One running summary per session, stored as a single replaced blob. A replace keeps one row per session, so the summary never grows a log.
- text
- tools
- Knowledge search and memory as agent tools. The host binds the subject, the session, the scopes and the base filter when it builds the kit, so the model can narrow a search but never choose whose memory it touches.