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

Remove async from sparse_embedding_model_name property #581

Merged
merged 2 commits into from
Apr 5, 2024

Conversation

yasyf
Copy link
Contributor

@yasyf yasyf commented Apr 5, 2024

Remove async from sparse_embedding_model_name property

  • 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?

Prevents:

ValueError: Unsupported embedding model: <coroutine object AsyncQdrantFastembedMixin.sparse_embedding_model_name at 0x7f7f0e863d00>. Supported models: {'prithvida/Splade_PP_en_v1': {'model': 'prithvida/Splade_PP_en_v1', 'vocab_size': 30522, 'description': 'Misspelled version of the model. Retained for backward compatibility. Independent Implementation of SPLADE++ Model for English', 'size_in_GB': 0.532, 'sources': {'hf': 'Qdrant/SPLADE_PP_en_v1'}}, 'prithivida/Splade_PP_en_v1': {'model': 'prithivida/Splade_PP_en_v1', 'vocab_size': 30522, 'description': 'Independent Implementation of SPLADE++ Model for English', 'size_in_GB': 0.532, 'sources': {'hf': 'Qdrant/SPLADE_PP_en_v1'}}}

Copy link

netlify bot commented Apr 5, 2024

Deploy Preview for poetic-froyo-8baba7 ready!

Name Link
🔨 Latest commit b87aaad
🔍 Latest deploy log https://app.netlify.com/sites/poetic-froyo-8baba7/deploys/66102f023120920008bdfa70
😎 Deploy Preview https://deploy-preview-581--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.

@yasyf yasyf changed the base branch from master to dev April 5, 2024 16:24
* [x] Contributions should target the `dev` branch. Did you create your branch from `dev`?
* [x] Have you followed the guidelines in our Contributing document?
* [x] Have you checked to ensure there aren't other open [Pull Requests](../../../pulls) for the same update/change?

Prevents:

```
ValueError: Unsupported embedding model: <coroutine object AsyncQdrantFastembedMixin.sparse_embedding_model_name at 0x7f7f0e863d00>. Supported models: {'prithvida/Splade_PP_en_v1': {'model': 'prithvida/Splade_PP_en_v1', 'vocab_size': 30522, 'description': 'Misspelled version of the model. Retained for backward compatibility. Independent Implementation of SPLADE++ Model for English', 'size_in_GB': 0.532, 'sources': {'hf': 'Qdrant/SPLADE_PP_en_v1'}}, 'prithivida/Splade_PP_en_v1': {'model': 'prithivida/Splade_PP_en_v1', 'vocab_size': 30522, 'description': 'Independent Implementation of SPLADE++ Model for English', 'size_in_GB': 0.532, 'sources': {'hf': 'Qdrant/SPLADE_PP_en_v1'}}}
```
@joein
Copy link
Member

joein commented Apr 5, 2024

Hey @yasyf
Thank you, nice catch!
However, we also need to change our generator, since async client is auto-generated from the sync one

@joein joein self-requested a review April 5, 2024 17:04
@joein joein added the bug Something isn't working label Apr 5, 2024
@joein joein merged commit 07404f2 into qdrant:dev Apr 5, 2024
9 checks passed
skvark pushed a commit to skvark/qdrant-client that referenced this pull request Apr 8, 2024
* Remove async from sparse_embedding_model_name property

Co-authored-by: George Panchuk <george.panchuk@qdrant.tech>
@yasyf yasyf deleted the patch-1 branch April 8, 2024 11:40
joein added a commit that referenced this pull request Apr 22, 2024
* Remove async from sparse_embedding_model_name property

Co-authored-by: George Panchuk <george.panchuk@qdrant.tech>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants