Skip to content

docs: correct reranker order contract from permutation to subset/empty - #143

Merged
WilliamAGH merged 1 commit into
devfrom
detail/fix-docs/docs-correct-reranker-order-contract-from-permutat-f0e56c
Jul 29, 2026
Merged

docs: correct reranker order contract from permutation to subset/empty#143
WilliamAGH merged 1 commit into
devfrom
detail/fix-docs/docs-correct-reranker-order-contract-from-permutat-f0e56c

Conversation

@detail-app

Copy link
Copy Markdown
Contributor

Updated docs/retrieval-pipeline.md to reflect that the reranker order array may now be a strict subset of source indices (or empty when no documents are relevant), rather than a required complete permutation. The previous wording directly contradicted the new relevance-gating behavior, where unrelated documents are dropped before context and citation assembly.

For example, a developer writing a reranker test asserting that {"order":[2]} is invalid for 4 source documents would have been misled: the code now accepts such subset selections as valid.

Introduced by commit 2fed38c (@WilliamAGH, #141)


Doc Drift PRs can be configured here.

@detail-app
detail-appBot requested a review from WilliamAGHJuly 29, 2026 16:12
@WilliamAGH
WilliamAGH merged commit d75706e into devJul 29, 2026
3 checks passed
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant

@WilliamAGH