Files
d4f09f5d89 Fix MMR pagination with offsets (rebase of #10502 onto dev) (#10567)
* Fix MMR pagination with offsets

(cherry picked from commit 6a778bbde8)

* Clamp MMR selection capacity at the candidate count

Move the guard into `maximal_marginal_relevance`, which every MMR caller
routes through, so the collection, edge and local-shard paths are covered
instead of just the collection one. The collection-level limit is then
plainly `limit + offset`.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
(cherry picked from commit a63d744131)

---------

Co-authored-by: mikemikimike <13286568797@163.com>
Co-authored-by: Claude Opus 5 (1M context) <noreply@anthropic.com>
2026-09-10 11:27:17 +02:00
..