You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Sub-issue of #1001 (follow-ups from the 2026-10-26 dependency update, #998).
v2 rerank gained a relevant_spans request option (Rerank v5+ models only), and each result can carry relevant_spans: [{start, end, score}].
We drop both: the option isn't in _RERANK_METADATA_KEYS (integrations/cohere/tracing.py:81), and _rerank_output (:337) keeps only index and relevance_score.
Fix: add the key to the metadata list and include relevant_spans per result when present. Needs one re-recorded rerank test with a v5 model.
Activity
AbhiPrasad commentedon Oct 26, 2026
released with https://github.com/braintrustdata/braintrust-sdk-python/releases/tag/py-sdk-v0.48.1
fix(cohere): capture rerank relevant_spans (braintrustdata#1010)