Skip to content

2.21.3

Choose a tag to compare

@KennethEnevoldsen KennethEnevoldsen released this 21 Sep 07:23
· 54 commits to main since this release

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)