Skip to content

Fix some comments - #18705

Merged
wangq8 merged 2 commits into
infiniflow:mainfrom
wangq8:bugfix/fix-rerank-model
Aug 25, 2026
Merged

wangq8 merged 2 commits into
infiniflow:mainfrom
wangq8:bugfix/fix-rerank-model

Conversation

@wangq8

@wangq8 wangq8 commented Aug 24, 2026 •

Copy link
Copy Markdown
Collaborator

Follow on: #18690

@coderabbitai

coderabbitai Bot commented Aug 24, 2026 •

Copy link
Copy Markdown
Contributor

Review Change Stack

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro Plus

Run ID: 5709b45d-b736-40b4-8116-fb2658fe1b9f

📥 Commits

Reviewing files that changed from the base of the PR and between cc7d99e and 46bbcae.

📒 Files selected for processing (3)
  • internal/service/chat_pipeline.go
  • internal/service/nlp/retrieval.go
  • rag/nlp/search.py

Included review availability: Your plan provides up to 10 included reviews per hour; 9 remain after this review.


📝 Walkthrough

Walkthrough

Chat retrieval now defaults non-positive prefetch sizes to 64. NLP retrieval validates prefetch capacity against pagination, documents reranking limits, and lowers diagnostic logging from Info to Debug.

Changes

Retrieval prefetch handling

Layer / File(s) Summary
Default prefetch size
internal/service/chat_pipeline.go
Non-positive chat.PrefetchSize values now use a default of 64.
Retrieval validation and diagnostics
internal/service/nlp/retrieval.go, rag/nlp/search.py
Retrieval validates PrefetchSize against Page * PageSize, documents reranked first-page behavior, and logs pagination diagnostics at Debug level.

Estimated code review effort: 2 (Simple) | ~10 minutes

Merge Risk: ⚪ Minimal · up to 46bbc

This localized change has no actionable merge-blocking risk remaining and is merge-ready after normal checks and review.

Suggested reviewers: jinhai-cn

Poem

A rabbit checks the pages in a neat little row,
Sets prefetch to sixty-four when numbers run low.
Reranked hops stay on page one,
Debug logs whisper when work is done.
Carrots approved, the pipeline can go!

🚥 Pre-merge checks | ✅ 3 | ❌ 2

❌ Failed checks (1 warning, 1 inconclusive)

Check name Status Explanation Resolution
Description check ⚠️ Warning The description contains only an issue reference and does not include the required Summary section or explain the purpose and background of the changes. Add the required "### Summary" section. Describe the prefetch default and validation changes, the documentation and logging updates, and retain the "Follow on: #18690" reference.
Title check ❓ Inconclusive The title refers generally to comments, but the changes also modify prefetch defaults, validation, documentation, and logging. It does not identify the main change clearly. Replace the title with a specific summary, such as "Fix RAG prefetch validation and retrieval logging".
✅ Passed checks (3 passed)
Check name Status Explanation
Docstring Coverage ✅ Passed Docstring check was indeterminate for this PR — some files could not be analyzed in time. Not blocking.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@wangq8 wangq8 changed the title Update log level Fix some comments Aug 24, 2026
@wangq8 wangq8 added the ci Continue Integration label Aug 24, 2026
@wangq8
wangq8 marked this pull request as ready for review August 24, 2026 12:25
@dosubot dosubot Bot added the size:S This PR changes 10-29 lines, ignoring generated files. label Aug 24, 2026
@wangq8 wangq8 added ci Continue Integration and removed ci Continue Integration labels Aug 24, 2026
@wangq8 wangq8 changed the title Fix some comments Fix some comments - TODO: rename "Prefetch size" Aug 24, 2026
@wangq8 wangq8 changed the title Fix some comments - TODO: rename "Prefetch size" Fix some comments - TODO: rename "Prefetch size" -> rerank candidate Aug 24, 2026
@wangq8 wangq8 changed the title Fix some comments - TODO: rename "Prefetch size" -> rerank candidate Fix some comments - TODO: rename "Prefetch size" -> rerank candidates Aug 24, 2026
@codecov

codecov Bot commented Aug 24, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 90.65%. Comparing base (5659476) to head (46bbcae).
⚠️ Report is 10 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main   #18705   +/-   ##
=======================================
  Coverage   90.65%   90.65%           
=======================================
  Files          10       10           
  Lines         717      717           
  Branches      118      118           
=======================================
  Hits          650      650           
  Misses         39       39           
  Partials       28       28           

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@wangq8 wangq8 changed the title Fix some comments - TODO: rename "Prefetch size" -> rerank candidates Fix some comments Aug 25, 2026
@wangq8
wangq8 merged commit c0dcc6e into infiniflow:main Aug 25, 2026
14 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ci Continue Integration size:S This PR changes 10-29 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant