Skip to content

feat(kb): freshness and decay in ranking, semantic dedup across buckets #20957

Open

Description

@mrveiss

Gap

Only doc chunks whose file left the index are dropped (knowledge/stale_filter.py:98 via rag_service.py:650); there is no time decay on facts, code or memory, and mesh staleness propagation is off (rag_config.py:90). Dedup compares text/hash on write; paraphrases re-enter (#18828), and the same knowledge in docs, facts and memory is returned as separate hits.

Acceptance

  • Age/last-verified feeds the ranker with a configurable half-life per bucket.
  • Near-duplicate hits across buckets collapse into one hit with multiple sources.

Parent: #20948. Chat path audited from conversation_aware_retrieve (services/knowledge/service.py:696) -> retrieve_relevant_knowledge -> RAGService.advanced_search (services/rag_service.py:544).

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". Accepted only when the retrieval benchmark gate shows the combination is better.

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions