Skip to main content

Module knowledge_lens

Module knowledge_lens 

Source
Expand description

KnowledgeLens — semantic search overlay for the markdown knowledge base.

Wraps a [KnowledgeBase] and adds HNSW-based semantic vector search via the agent’s MemoryManager. Provides recall_for_context() for injecting relevant knowledge into agent context windows.

RFC-003: Knowledge Base Independent Separation

  • Semantic search lives in the kernel (AI layer), not oxios-markdown
  • KnowledgeLens subscribes to KnowledgeBase.on_file_change() to keep the HNSW index in sync automatically

Structs§

CopilotResponse
Copilot response (AI-powered chat about the knowledge base).
KnowledgeContext
Knowledge context injected into agent prompts.
KnowledgeLens
KnowledgeLens — semantic overlay over KnowledgeBase.
KnowledgeNote
A knowledge note extracted from the markdown knowledge base.
MemoryNote
A memory entry from the agent’s memory system.