Skip to content

RAG Phase 2: index manifest + season scoping #320

Description

@VforVitorio

Sub of Epic #318. documents/audits/AUDIT_RAG_LAYER.md Phase 2 (size M).

Scope: index manifest + season scoping (RAG-01).

  • Add a year / doc_type filter to RagRetriever.query() (retriever.py:208-255) - the RegulationChunk schema already promises both.
  • Pass the race SEASON through _build_rag_question (strategy_orchestrator.py:717-738, additive) and drop N30's hardcoded "prefer 2025".
  • Add an index manifest / version / staleness signal so a stale or wrong-season index is detectable. Query-time complement to the 2026-reg audit's F-10 ingest year-cap.

Deliverable: a query returns only the correct season's regulations, and a stale/mismatched index is detectable.

Metadata

Metadata

Assignees

No one assigned

    Labels

    area: codebaseTouches src/, scripts/, or notebooks/auditTracks findings from a site/code auditpriority: P1High priority — fix this sprint

    Projects

    Status
    Todo

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions