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

'At least one of the arguments to EF.Functions.VectorDistance must be a vector' #11

Open
subinbab opened this issue Jan 26, 2025 · 1 comment

Comments

@subinbab
Copy link

I am encountering the following error when using version 9.0.0-preview.1:

At least one of the arguments to EF.Functions.VectorDistance must be a vector.

However, when I downloaded the code from this repository and added it directly to my project, the issue was resolved. I couldn't find any released version that addresses this error.

If a fix has already been implemented, could you please include it in the latest version? Alternatively, let me know which version resolves this issue.

Thank you!

@roji
Copy link
Member

roji commented Jan 27, 2025

@subinbab that error is expected when you invoke VectorDistance over an EF property that hasn't been configured as a vector (via HasColumnType("vector(...)")) - you may have simply forgotten to do that in your original code.

Otherwise I'm not aware of a specifically issue or fix here - if you think there's some issue with the plugin, can you please submit a minimal repro?

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

No branches or pull requests

2 participants