Skip to main content

Module knowledge_embedding

Module knowledge_embedding 

Source
Expand description

Embedding-based Knowledge Retrieval for ctx_knowledge.

Wraps ProjectKnowledge with a vector index for semantic recall. Facts are automatically embedded on remember and searched via cosine similarity on recall, with hybrid exact + semantic ranking.

Structs§

FactEmbedding
KnowledgeEmbeddingIndex
ScoredFact

Functions§

compact_against_knowledge
embed_and_store
format_scored_facts
reset
semantic_recall