[P1] R03: Create bilingual retrieval and citation-quality evaluation gates #24

Open
opened 2026-10-21 20:29:29 +02:00 by amiryahaya · 0 comments
Owner

Backlog ID: R03 | Priority: P1 | Phase: M4 — Consistent indexing and hybrid retrieval

Outcome and scope

Build a versioned synthetic/declassified English/Malay/mixed query set with gold sources, exact identifiers and authorization scopes; compare lexical, dense and hybrid retrieval.

Dependencies and gates

Engineering prerequisites: #23 (R02), #3 (D02)

Final quality thresholds require product/search-owner approval; do not invent numerical acceptance thresholds.

Starting points

evals/retrieval/; evals/fixtures/; docs/evaluation/retrieval.md

These are current files or proposed responsibility boundaries; finalize a focused implementation plan before coding. Existing local scaffolding is uncommitted and is not evidence of completion.

Acceptance criteria

  • Report recall/ranking/precision, exact-term behavior, source-span accuracy and ACL leakage separately across languages/scopes.
  • Product/search owners approve quality thresholds and corpus provenance; insufficient-evidence queries are represented.
  • Profile swaps/reindexing rerun the same evaluation with pinned embedding, reranker, chunking and retrieval settings.
  • Evaluation artifacts inherit fixture/source restrictions and contain no unapproved operational data.

Verification

Run repeatable evaluation and demonstrate a deliberately degraded retriever fails the configured gate; report per-language results and zero unauthorized source hits.

Behavior changes follow Red → Green → Refactor. Run affected Rust shared contract/unit tests and real PostgreSQL/Qdrant/runtime integration tests where applicable; frontend changes run typecheck/build and the relevant browser tests. Record exact commands/results in the implementation PR. Documentation/decision tasks use recorded review evidence.

Requirements and design

FR-DATA-003, FR-RAG-007; NFR-I18N-001; SRS §8 criteria 5 and 8; architecture §14

Sources: SRS, system design. Local planning context: docs/implementation-plan.md and docs/development-backlog.md (not published by this task).

Security impact: Use synthetic fixtures until approved for operational data. Preserve current authorization, markings, provenance and default-deny behavior; exclude protected payloads/secrets from operational telemetry. No classified-deployment or PQC-compliance claim is implied by closing this issue.

Parent roadmap: #1

**Backlog ID:** R03 | **Priority:** P1 | **Phase:** M4 — Consistent indexing and hybrid retrieval ## Outcome and scope Build a versioned synthetic/declassified English/Malay/mixed query set with gold sources, exact identifiers and authorization scopes; compare lexical, dense and hybrid retrieval. ## Dependencies and gates **Engineering prerequisites:** #23 (R02), #3 (D02) Final quality thresholds require product/search-owner approval; do not invent numerical acceptance thresholds. ## Starting points evals/retrieval/; evals/fixtures/; docs/evaluation/retrieval.md These are current files or proposed responsibility boundaries; finalize a focused implementation plan before coding. Existing local scaffolding is uncommitted and is not evidence of completion. ## Acceptance criteria - [ ] Report recall/ranking/precision, exact-term behavior, source-span accuracy and ACL leakage separately across languages/scopes. - [ ] Product/search owners approve quality thresholds and corpus provenance; insufficient-evidence queries are represented. - [ ] Profile swaps/reindexing rerun the same evaluation with pinned embedding, reranker, chunking and retrieval settings. - [ ] Evaluation artifacts inherit fixture/source restrictions and contain no unapproved operational data. ## Verification Run repeatable evaluation and demonstrate a deliberately degraded retriever fails the configured gate; report per-language results and zero unauthorized source hits. Behavior changes follow Red → Green → Refactor. Run affected Rust shared contract/unit tests and real PostgreSQL/Qdrant/runtime integration tests where applicable; frontend changes run typecheck/build and the relevant browser tests. Record exact commands/results in the implementation PR. Documentation/decision tasks use recorded review evidence. ## Requirements and design FR-DATA-003, FR-RAG-007; NFR-I18N-001; SRS §8 criteria 5 and 8; architecture §14 Sources: [SRS](https://forgejo.primatekun.tech/primatekuntech/rag-rust/src/branch/main/docs/SRS.md), [system design](https://forgejo.primatekun.tech/primatekuntech/rag-rust/src/branch/main/docs/architecture.md). Local planning context: `docs/implementation-plan.md` and `docs/development-backlog.md` (not published by this task). **Security impact:** Use synthetic fixtures until approved for operational data. Preserve current authorization, markings, provenance and default-deny behavior; exclude protected payloads/secrets from operational telemetry. No classified-deployment or PQC-compliance claim is implied by closing this issue. **Parent roadmap:** #1
Sign in to join this conversation.
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Reference
primatekuntech/rag-rust#24
No description provided.