Skip to content

Return query vector #5778

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

Open
wants to merge 9 commits into
base: main
Choose a base branch
from
Open

Return query vector #5778

wants to merge 9 commits into from

Conversation

Mubelotix
Copy link
Contributor

@Mubelotix Mubelotix commented Jul 25, 2025

Pull Request

Related issue

Fixes #5779

What does this PR do?

When retrieveVectors is true, search should also return the vector of the query if it was embedded automatically.

@Mubelotix Mubelotix added this to the v1.17.0 milestone Jul 25, 2025
@Mubelotix Mubelotix added the no db change The database didn't change label Jul 25, 2025
@Mubelotix Mubelotix marked this pull request as ready for review July 25, 2025 12:54
@Mubelotix Mubelotix added the impacts docs This issue involves changes in the Meilisearch's documentation label Aug 1, 2025
@Mubelotix Mubelotix requested a review from ManyTheFish August 5, 2025 12:02
@Mubelotix Mubelotix requested review from irevoire and removed request for ManyTheFish August 6, 2025 13:21
@Mubelotix Mubelotix marked this pull request as draft August 6, 2025 13:21
@Mubelotix
Copy link
Contributor Author

I previously wanted to only return the query vector when it was embedded locally, not when it was provided as-is in the request, but that was too complex. It's much more reliable to always return the query vector (when retrieveVectors is set of course)

@Mubelotix Mubelotix marked this pull request as ready for review August 7, 2025 07:30
Copy link
Member

@irevoire irevoire left a comment

Choose a reason for hiding this comment

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

Hey, everything looks good to me, but I think a file was not intended to be pushed?

Copy link
Member

Choose a reason for hiding this comment

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

Huu, I think you were not supposed to push this file?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
impacts docs This issue involves changes in the Meilisearch's documentation no db change The database didn't change
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Return query vector
2 participants