Skip to content

Conversation

@mkhludnev
Copy link
Contributor

Description

This PR fixes the issue introduced in #7025

Notes for Reviewers

#7025 introduced handling result cropping by top_n. However, I believe the most users just omit top_n, just because don't bother to count len(documents). So, I'm afraid releasing #7025 causes a trouble for many users. @mudler, beg your pardon.
This PR let users to omit top_n or send top_n=0 meaning all docs.

One thing about tests, since tey bring up the backend every time, isn't it worth to loop three alt requests in the single test method?

Signed commits

  • [v] Yes, I signed my commits.

Signed-off-by: Mikhail Khludnev <mkhl@apache.org>
@netlify
Copy link

netlify bot commented Nov 8, 2025

Deploy Preview for localai ready!

Name Link
🔨 Latest commit 54290b8
🔍 Latest deploy log https://app.netlify.com/projects/localai/deploys/690f8ee317fcc80008a2693b
😎 Deploy Preview https://deploy-preview-7199--localai.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

Signed-off-by: Mikhail Khludnev <mkhl@apache.org>
Sign up for free to 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