Repository navigation
2.21.3
2.21.3 (2026-09-21)
Fix
-
fix(cde): pass the prompt text, not its name, to the model (#5503)
-
fix(cde): resolve the prompt text, not its name, before encoding
CDEWrapper.encode passed the result of AbsEncoder.get_prompt straight
into SentenceTransformer.encode(prompt=...), which takes literal prompt
text. get_prompt returns the key of model_prompts, so cde-small-v1/v2
prepended "query" instead of "search_query: ".
Use _resolve_prompt(), the same helper SentenceTransformerEncoderWrapper
and SparseEncoderWrapper already call, which also replaces the hand-rolled
logging block.
-
test(cde): check the prompt text that reaches the model
-
Delete tests/test_models/test_cde_prompts.py
Co-authored-by: Roman Solomatin <samoed.roman@gmail.com> (9971d0c)