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 nested prefetches in qdrant_local.py #772

Merged
merged 5 commits into from
Sep 13, 2024
Merged

Fix nested prefetches in qdrant_local.py #772

merged 5 commits into from
Sep 13, 2024

Conversation

paul2302
Copy link
Contributor

@paul2302 paul2302 commented Sep 12, 2024

Having multiple nested prefetches does not seem to work with qdrant in local mode. The last prefetch in the chain is none which then raises an exception in the _resolve_prefetch_input method:
if prefetch.query
raises an exception since prefetch is none)

All Submissions:

  • Contributions should target the dev branch. Did you create your branch from dev?
  • Have you followed the guidelines in our Contributing document?
  • Have you checked to ensure there aren't other open Pull Requests for the same update/change?

New Feature Submissions:

  1. Does your submission pass tests?
  2. Have you installed pre-commit with pip3 install pre-commit and set up hooks with pre-commit install?

Changes to Core Features:

  • Have you added an explanation of what your changes do and why you'd like us to include them?
  • Have you written new tests for your core changes, as applicable?
  • Have you successfully ran tests with your changes locally?

Local qdrant client with nested prefetches raised the exception: none type has no attribute query. This little change fixes it
Copy link

netlify bot commented Sep 12, 2024

Deploy Preview for poetic-froyo-8baba7 ready!

Name Link
🔨 Latest commit 3e70e86
🔍 Latest deploy log https://app.netlify.com/sites/poetic-froyo-8baba7/deploys/66e481f09fae220008ed4d9f
😎 Deploy Preview https://deploy-preview-772--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.

@paul2302
Copy link
Contributor Author

@hh-space-invader thanks for taking over! Will you bring this to the finish line or do you expect some more work from me :) ?

@joein
Copy link
Member

joein commented Sep 13, 2024

hi @paul2302

thank you for your contribution, we'll finish it and merge soon on our own

@joein joein self-requested a review September 13, 2024 18:31
@joein joein merged commit 19b80b6 into qdrant:dev Sep 13, 2024
9 checks passed
@paul2302
Copy link
Contributor Author

@joein thank you for taking over so quickly. Is there a timeline for when this might be part of the next release?

@joein
Copy link
Member

joein commented Sep 16, 2024

Hey, I expect it to be released not later than 2 days

@paul2302
Copy link
Contributor Author

@joein so quickly? Wow, thanks! Keep up the great work :D

joein added a commit that referenced this pull request Sep 16, 2024
* Fix nested prefetches in qdrant_local.py

Local qdrant client with nested prefetches raised the exception: none type has no attribute query. This little change fixes it

* chore: Added the check for prefetch to async

* fix: Fix nested prefetch in async local mode by generating the async client

* chore: Added a test case for query using nested prefetch in congruence tests

* remove redundant version check

---------

Co-authored-by: hh-space-invader <[email protected]>
Co-authored-by: George <[email protected]>
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.

3 participants