Skip to content

fix: jina’s incorrect return value: modelname - #17716

Merged
JinHai-CN merged 4 commits into
infiniflow:mainfrom
Haruko386:main
Aug 3, 2026
Merged

JinHai-CN merged 4 commits into
infiniflow:mainfrom
Haruko386:main

Conversation

@Haruko386

@Haruko386 Haruko386 commented Aug 3, 2026 •

Copy link
Copy Markdown
Member

Summary

As title:

@Haruko386 Haruko386 added the 🐞 bug Something isn't working, pull request that fix bug. label Aug 3, 2026
@dosubot dosubot Bot added the size:XS This PR changes 0-9 lines, ignoring generated files. label Aug 3, 2026
@coderabbitai

coderabbitai Bot commented Aug 3, 2026 •

Copy link
Copy Markdown
Contributor

Review Change Stack

📝 Walkthrough

Walkthrough

Jina model listing now uses each model’s API id field when it creates ModelListItem identifiers.

Changes

Jina model listing

Layer / File(s) Summary
Use API model IDs
internal/entity/models/jina.go
ListModels now uses each API response model’s id field instead of its name field.

Estimated code review effort: 1 (Trivial) | ~2 minutes

Suggested reviewers: hz-186, jinhai-cn

Poem

A rabbit checks the model list,
IDs now lead the way.
Names rest beneath the carrot patch,
While Jina hops today.

🚥 Pre-merge checks | ✅ 4 | ❌ 1

❌ Failed checks (1 warning)

Check name Status Explanation Resolution
Description check ⚠️ Warning The description only says "As title" and does not provide the required summary or background context. Add a brief summary that explains the Jina model identifier correction and the issue it resolves.
✅ Passed checks (4 passed)
Check name Status Explanation
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
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.
Title check ✅ Passed The title identifies the Jina model-name correction and matches the primary code change.

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.

@Haruko386
Haruko386 marked this pull request as draft August 3, 2026 05:36
@Haruko386
Haruko386 marked this pull request as ready for review August 3, 2026 05:36
@Haruko386 Haruko386 added the ci Continue Integration label Aug 3, 2026

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 1

🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

Inline comments:
In `@internal/service/nlp/retrieval.go`:
- Line 528: Update the retrieval flow around the result construction and Total
field so Total counts all threshold-qualified candidates across the complete,
pre-pagination candidate set rather than len(validIdx) from the current rerank
window. Preserve pagination for returned chunks, and revise the
RetrievalResult.Total comment to document the global threshold-qualified count
that chunk.go forwards to the API.
🪄 Autofix (Beta)

Fix all unresolved CodeRabbit comments on this PR:

  • Push a commit to this branch (recommended)
  • Create a new PR with the fixes

ℹ️ Review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro Plus

Run ID: 08e6516a-d874-44de-beb7-2ac6c696e2d9

📥 Commits

Reviewing files that changed from the base of the PR and between a1a79ab and dd2b4be.

📒 Files selected for processing (1)
  • internal/service/nlp/retrieval.go

@Haruko386 Haruko386 changed the title fix: search result not return correct total value fix: jina’s incorrect return value: modelname Aug 3, 2026
@infiniflow infiniflow deleted a comment from coderabbitai Bot Aug 3, 2026
@JinHai-CN
JinHai-CN merged commit 858c48a into infiniflow:main Aug 3, 2026
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

🐞 bug Something isn't working, pull request that fix bug. ci Continue Integration size:XS This PR changes 0-9 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants