mirror of
https://github.com/openai/codex.git
synced 2026-11-29 07:35:16 +00:00
Add an LRU baseline to skill shadow selection (#38197)
## What changed - Track the 50 most recently invoked skills for each thread and evaluate them as the `lru_v1` shadow-selection method. - Filter stale and duplicate entries while preserving recency order. - Increase the shadow result limit to 50 and add a `21_50` rank bucket. ## Testing - Add unit coverage for recency refresh, eviction, filtering, limits, and rank buckets. - Add an extension test showing that `lru_v1` recovers a skill invoked on an earlier turn. GitOrigin-RevId: 7aa56514db57cf180cc3f57b4d493dee3304e766
This commit is contained in:
1 parent
eb752e43d9
commit
9dd22890f5
8 files changed
+343
-7
No files matched your search
@@ -1,6 +1,7 @@
|
||||
mod character_ngram;
|
||||
mod character_routing_card;
|
||||
mod fielded_bm25;
|
||||
mod lru;
|
||||
mod multi_query_lexical;
|
||||
mod routing_card_lexical;
|
||||
mod rrf_lexical_char;
|
||||
@@ -9,6 +10,7 @@ pub(crate) use character_ngram::CharacterNgramSkillSelector;
|
||||
pub(crate) use character_routing_card::CharacterRoutingCardSkillSelector;
|
||||
use codex_skills::SkillDependencies;
|
||||
pub(crate) use fielded_bm25::FieldedBm25SkillSelector;
|
||||
pub(crate) use lru::LruSkillSelector;
|
||||
pub(crate) use multi_query_lexical::MultiQueryLexicalSkillSelector;
|
||||
pub(crate) use routing_card_lexical::RoutingCardLexicalSkillSelector;
|
||||
pub(crate) use rrf_lexical_char::RrfLexicalCharSkillSelector;
|
||||
|
||||
Reference in new issue
Block a user