wikipedia fetch Ranking combining BM25 lexical relevance and embedding cosine similarity through reciprocal rank fusion #33

Merged
onibot merged 1 commits from feat/semantic-fetch into main 2026-10-28 17:54:13 +01:00
Owner

Improving the "relevance" ordering of articles retrieved by wikipedia search

  • Wikipedia search now returns titles + cleaned, plain-text snippets.
  • Results from all searches are deduplicated, retaining distinct snippets.
  • Every candidate is ranked against the original question, using title + snippet.
  • Ranking combines BM25 lexical relevance and embedding cosine similarity through reciprocal rank fusion.
  • Removed query-winner priority; the fetch limit applies after global ranking.
  • Embedding failures are logged and fall back to BM25-only ranking.
  • Search metadata and individual ranking scores are recorded for inspection.

Core changes:
Wikipedia client, ranking functions, and expert integration.

Validation:
all 13 affected test scripts passed, including 20 new semantic-fetch tests and 18 orchestration tests. Live retrieval quality hasn’t yet been benchmarked.

Improving the "relevance" ordering of articles retrieved by wikipedia search * Wikipedia search now returns titles + cleaned, plain-text snippets. * Results from all searches are deduplicated, retaining distinct snippets. * Every candidate is ranked against the original question, using title + snippet. * Ranking combines BM25 lexical relevance and embedding cosine similarity through reciprocal rank fusion. * Removed query-winner priority; the fetch limit applies after global ranking. * Embedding failures are logged and fall back to BM25-only ranking. * Search metadata and individual ranking scores are recorded for inspection. Core changes: Wikipedia client, ranking functions, and expert integration. Validation: all 13 affected test scripts passed, including 20 new semantic-fetch tests and 18 orchestration tests. Live retrieval quality hasn’t yet been benchmarked.
emili added 1 commit 2026-10-28 17:45:41 +01:00
emili requested review from onibot 2026-10-28 17:45:41 +01:00
onibot merged commit 72ebe44053 into main 2026-10-28 17:54:13 +01:00
Sign in to join this conversation.
No Reviewers
No labels
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: onibot/floop#33