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: fix QueryVector isinstance check in local mode #562

Merged
merged 3 commits into from
Apr 2, 2024

Conversation

joein
Copy link
Member

@joein joein commented Apr 2, 2024

if we pass unexpected type to search, check isinstance(query_vector, QueryVector) fails when it gets to numpy arrays

Copy link

netlify bot commented Apr 2, 2024

Deploy Preview for poetic-froyo-8baba7 ready!

Name Link
🔨 Latest commit a62bffa
🔍 Latest deploy log https://app.netlify.com/sites/poetic-froyo-8baba7/deploys/660c0fc9994d5900084ae0e8
😎 Deploy Preview https://deploy-preview-562--poetic-froyo-8baba7.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 site configuration.

@joein joein requested review from generall and coszio April 2, 2024 09:06
Copy link
Contributor

@coszio coszio left a comment

Choose a reason for hiding this comment

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

☹️ sad that there is no easy way of using get_args or get_args_subscribed in this scenario. But ok ✅

@joein joein requested a review from coszio April 2, 2024 13:56
Copy link
Contributor

@coszio coszio left a comment

Choose a reason for hiding this comment

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

Now we're talking 😎

@joein joein force-pushed the fix-query-vector-check-local branch from eb9e52c to a62bffa Compare April 2, 2024 14:01
@joein joein merged commit a49b6f6 into dev Apr 2, 2024
14 checks passed
joein added a commit that referenced this pull request Apr 22, 2024
* fix: fix QueryVector isinstance check in local mode

* fix: update query vector type, fix invalid vector type in search in local mode

* fix: remove get_args_subscribed type hint, restore QueryVector, remove redundant array check
@generall generall deleted the fix-query-vector-check-local branch May 3, 2024 10:50
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.

2 participants