Skip to content

feat(rag): metadata filters for company, project, source and time on the canonical retrieval API #20959

Open

Description

@mrveiss

Gap

Chat retrieval filters by principal visibility, category and the research-quarantine filter (advanced_rag_optimizer.py RESEARCH_QUARANTINE_FILTER, service.py:273 categories). There is no company/project/source/time-range filter parameter through advanced_search (rag_service.py:544), so an agent working on one project or period cannot restrict retrieval, and no filter reaches the docs/code legs.

Acceptance

  • Orchestrator accepts typed filters, applied inside every leg (not post-hoc).
  • Tenant/company boundaries remain enforced by the principal, never by a client-supplied filter.

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