mirror of
https://github.com/openai/codex.git
synced 2026-11-29 07:35:16 +00:00
Add routing-card lexical skill selection (#34581)
## What changed - Add a bounded `routing_card_exact_v1` selector that ranks normalized exact matches across skill names, tool dependencies, short descriptions, and full descriptions, with stronger weights for routing-specific fields. - Run the selector in the shadow selection experiment and include catalog entry dependencies in selection documents. - Report a selection as `selected` when an exact-name match succeeds even if the query contains no searchable terms. ## Testing - Cover dependency ranking, stop-word skill names, exact-term matching, and input bounds. GitOrigin-RevId: dfb0b668d726f64ae5da3b3ce2d8c9b23a664ac0
This commit is contained in:
1 parent
af71774d26
commit
51200321eb
9 files changed
+418
-5
No files matched your search
@@ -1,11 +1,14 @@
|
||||
mod character_ngram;
|
||||
mod fielded_bm25;
|
||||
mod multi_query_lexical;
|
||||
mod routing_card_lexical;
|
||||
mod rrf_lexical_char;
|
||||
mod weighted_lexical;
|
||||
pub(crate) use character_ngram::CharacterNgramSkillSelector;
|
||||
use codex_skills::SkillDependencies;
|
||||
pub(crate) use fielded_bm25::FieldedBm25SkillSelector;
|
||||
pub(crate) use multi_query_lexical::MultiQueryLexicalSkillSelector;
|
||||
pub(crate) use routing_card_lexical::RoutingCardLexicalSkillSelector;
|
||||
pub(crate) use rrf_lexical_char::RrfLexicalCharSkillSelector;
|
||||
pub(crate) use weighted_lexical::WeightedLexicalSkillSelector;
|
||||
|
||||
@@ -17,6 +20,7 @@ pub(crate) struct SkillSelectionDocument<'a> {
|
||||
pub name: &'a str,
|
||||
pub short_description: Option<&'a str>,
|
||||
pub description: &'a str,
|
||||
pub dependencies: Option<&'a SkillDependencies>,
|
||||
}
|
||||
|
||||
/// Bounded output from one cheap skill-selection method.
|
||||
|
||||
Reference in new issue
Block a user