Skip to content

umbrella: knowledge base combines every retrieval technique through one canonical pipeline #20948

Open
2 of 22 issues completed

Description

@mrveiss

Maintainer requirement (2026-11-06): "AutoBot's knowledge base must be able to combine every useful knowledge representation and retrieval technique, so answers get the best result" and "crosschecks".

Parent: #17527. Related: #20945 (graph covers all buckets), #20940 (vector CPU-fallback recursion). Audit of origin/main, chat path: conversation_aware_retrieve (services/knowledge/service.py:696) -> RAGService.advanced_search (services/rag_service.py:544). Buckets: docs, code, memory, facts, patterns.

Gate: a combination is accepted only when the benchmark (child 1) shows it beats the baseline on recall@k, MRR, nDCG, grounding rate and contradiction rate.

Coverage

Technique Verdict file:line Issue
Dense vectors PRESENT, wired; one model (nomic-embed-text, ssot_config.py:93); three spaces in NPU path advanced_rag_optimizer.py:396; npu_semantic_search.py:234 #18217, #20940
Lexical BM25 PRESENT in kb.search, wired; optimizer BM25 off by default search_components/keyword_search.py:35; ssot_constants.py:225 fusion child
Hybrid fusion PRESENT x2 (RRF + weighted), stacked hybrid_search.py:47; advanced_rag_optimizer.py:525 fusion, consolidation
Reranking PRESENT, facts only; docs/code/memory skip it; no LLM rerank reranking.py:383; rag_service.py:643 rerank child, #19793
Graph in retrieval PRESENT but unwired (KAG/mesh off, dispatcher not on chat path) graph_rag_service.py:164; rag_config.py:78,135 graph child, #20945, #18144
Query rewrite / multi-query / HyDE rule-based expansion wired; LLM rewrite only in agentic node; multi-query, HyDE ABSENT advanced_rag_optimizer.py:365; chat_workflow/graph.py:972 query child, #14973
Metadata filters PARTIAL: principal + category + quarantine; no company/project/source/time rag_service.py:544 filters child
Chunking / parent-child chunkers PRESENT (structure-blind, see #18856); parent/child ABSENT - parent-child child, #18856, #17209
Code-aware retrieval indexing PRESENT, query side ABSENT in answer path code_indexer.py:1158 code child, #17625
Memory in retrieval PRESENT but unwired (L3 disabled, tiered stack dark) tiered_context_sources.py:216 #14349, #13685
Learning from use PRESENT but unwired in effect (position-gain proxy, session adaptation off, no user signal) retrieval_learner.py:330; rag_config.py:124 learn child
Fact extraction / dedup / freshness extraction + hash dedup PRESENT; decay ABSENT; paraphrase dedup gap stale_filter.py:98 fresh child, #18828
Caching PRESENT, TTL/manual only, never invalidated by KB writes semantic_query_cache.py:86; topic_retrieval_cache.py:100 cache child (bug)
Evaluation PRESENT but synthetic, precision@k only rag_benchmarks.py:1251 bench child, #13251
Cross-check: method agreement signal computed, ABSENT in output hybrid_search.py:82 agree child
Cross-check: cross-source corroboration ABSENT rag_service.py:643 corr child
Cross-check: grounding / citation prompt-only; post-check ABSENT service.py build_grounded_context verify child, #16533, #20847
Cross-check: self-consistency / 2nd model ABSENT - verify child
Cross-check: fact contradiction PRESENT but unwired (maintenance endpoint only) contradiction_detector.py:213; knowledge_maintenance.py:1875 contra child, #18831

Duplicate search paths are listed in the consolidation child.

Activity

  1. 1 remaining item

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions