Repository navigation
fix(core): read rerank prefix text up to the reranker's document limit - #1757
Conversation
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 8d2578b3e9
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
|
@codex review |
Search reads cap note text at 4,000 characters. A rerank prefix row only full-text search found has no matched chunk, so its rerank document is its note text, and the cap cut it short even when reranker_max_document_chars is 0 (documented as sending the full text) or above 4,000. The prefix now reads each row's text as far as the reranker's limit: all of it for 0, otherwise max(4,000, limit). Every other row keeps the cap, and the public content stays at its display limit. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01EQPZkbnuxxtTEJoNJCkt45 Signed-off-by: phernandez <paul@basicmachines.co>
087da64 to
caf4f4b
Compare
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: caf4f4b61e
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
|
@codex review |
|
Codex Review: Didn't find any major issues. Chef's kiss. Reviewed commit: ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
If Codex has suggestions, it will comment; otherwise it will react with 👍. Codex can also answer questions or update the PR. Try commenting "@codex address that feedback". |
Summary
Follow-up to #1746. The stack (#1750, #1753, #1755) has already merged. This PR now carries only the fix for the Codex finding on this PR.
Search reads cap note text at 4,000 characters (#1750). A rerank prefix row that only full-text search found has no matched chunk, so its rerank document is its note text. The cap cut that text short even when
reranker_max_document_charsis0(documented as sending the full text) or above 4,000._materializetakes asnippet_limit. The rerank prefix passes_rerank_snippet_limit(rerank): the whole text for0, otherwisemax(4000, limit).contentstays at its display limit.This only matters with the reranker enabled (off by default),
reranker_max_document_charsset to 0 or above 4,000, and a full-text-only hit in the prefix. The #1234 sweep measured no quality difference for caps of 2,000 and above, but0is documented as unbounded.Test plan
test_unbounded_reranker_reads_a_lexical_rows_whole_text: a full-text-only note with a marker past character 4,000 reaches the reranker, while the API preview stays at 4,000 characters.just fast-checktests/repository: 1188 passed🤖 Generated with Claude Code
https://claude.ai/code/session_01EQPZkbnuxxtTEJoNJCkt45