Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(server): fix more vector search results being returned than intended #3042

Merged
merged 1 commit into from
Jun 30, 2023

Conversation

mertalev
Copy link
Contributor

Description

Typesense takes the higher of k and per_page for vector search queries, so queries were returning 250 entries instead of the number specified in k. This PR syncs the two numbers so there's no discrepancy.

Testing

This PR has been tested by searching with CLIP, confirming that it returns 100 entries. Running facial recognition works as normal as well.

@vercel
Copy link

vercel bot commented Jun 30, 2023

The latest updates on your projects. Learn more about Vercel for Git ↗︎

1 Ignored Deployment
Name Status Preview Updated (UTC)
immich ⬜️ Ignored (Inspect) Jun 30, 2023 5:57am

@alextran1502 alextran1502 merged commit e477f99 into main Jun 30, 2023
19 checks passed
@alextran1502 alextran1502 deleted the fix-search-k branch June 30, 2023 16:33
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.

None yet

3 participants