mirror of
https://github.com/openai/codex.git
synced 2026-11-29 07:35:16 +00:00
Add reciprocal rank fusion skill selection (#34547)
## What changed - Add a skill selector that uses reciprocal rank fusion to combine the top 50 results from the weighted lexical and character n-gram selectors. - Prefer candidates supported by both rankings, with deterministic rank and identifier tie-breakers, and propagate truncation metadata from both selectors. - Include the fused selector in the shadow-selection experiment under `rrf_lexical_char_v1`. ## Testing - Add unit coverage for cross-ranking support, deterministic tie-breaking, and combined input-bound reporting. GitOrigin-RevId: 3165136b8729ea3a9484f25c7f2ce0f91fb8aaa9
This commit is contained in:
1 parent
2d5c259202
commit
6915bac7ba
4 files changed
+123
No files matched your search
@@ -1,10 +1,12 @@
|
||||
mod character_ngram;
|
||||
mod fielded_bm25;
|
||||
mod multi_query_lexical;
|
||||
mod rrf_lexical_char;
|
||||
mod weighted_lexical;
|
||||
pub(crate) use character_ngram::CharacterNgramSkillSelector;
|
||||
pub(crate) use fielded_bm25::FieldedBm25SkillSelector;
|
||||
pub(crate) use multi_query_lexical::MultiQueryLexicalSkillSelector;
|
||||
pub(crate) use rrf_lexical_char::RrfLexicalCharSkillSelector;
|
||||
pub(crate) use weighted_lexical::WeightedLexicalSkillSelector;
|
||||
|
||||
/// Metadata searched by a cheap skill selector.
|
||||
|
||||
Reference in new issue
Block a user