SurfSense/surfsense_backend/app/agents/chat/runtime/references/documents
CREDO23 c98bdea5cf search-kb: on-demand KB tool on the [n] spine; drop kb_matched_chunk_ids
The main agent's search_knowledge_base tool runs the hybrid spine, renders
a <retrieved_context> of numbered [n] passages, and persists the registry.
KB subagent prompts teach citing [n] from <document view="full"> reads
(evidence.chunk_ids -> evidence.citations). Delete the now-unused
search->read highlighting hand-off: the kb_matched_chunk_ids state field,
its reducer default, the tool's _matched_chunk_ids writer, and the dead
KnowledgePriorityMiddleware writes.
2026-06-25 15:26:39 +02:00
..
__init__.py search-kb: on-demand KB tool on the [n] spine; drop kb_matched_chunk_ids 2026-06-25 15:26:39 +02:00
referenced.py search-kb: on-demand KB tool on the [n] spine; drop kb_matched_chunk_ids 2026-06-25 15:26:39 +02:00
resolver.py search-kb: on-demand KB tool on the [n] spine; drop kb_matched_chunk_ids 2026-06-25 15:26:39 +02:00