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

Fixes for test, type errors #266

Merged
merged 10 commits into from
Aug 23, 2023
Merged

Fixes for test, type errors #266

merged 10 commits into from
Aug 23, 2023

Conversation

NirantK
Copy link
Contributor

@NirantK NirantK commented Aug 23, 2023

Builds on the API Change brnach, to be reviewed after that has been merged

  1. Fixes type errors for Record creation via VectorStruct
  2. Fixes type error for search around query_vector and NamedVector
  3. Makes test cases easier to read and more IDE friendly

…n QdrantFastembedMixin class

* fix(qdrant_fastembed.py): change method name from encode to embed
…ence-transformers/all-MiniLM-L6-v2" to "BAAI/bge-small-en"
… in QdrantFastembedMixin

* feat(qdrant_fastembed.py): add embed_type parameter to embed method in QdrantFastembedMixin
…to simplify parameter handling and remove unnecessary checks and assignments
@netlify
Copy link

netlify bot commented Aug 23, 2023

Deploy Preview for poetic-froyo-8baba7 ready!

Name Link
🔨 Latest commit faa8b8d
🔍 Latest deploy log https://app.netlify.com/sites/poetic-froyo-8baba7/deploys/64e5fe1ecb18330008dc70e7
😎 Deploy Preview https://deploy-preview-266--poetic-froyo-8baba7.netlify.app/qdrant_client.conversions.conversion
📱 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.

@NirantK NirantK marked this pull request as ready for review August 23, 2023 07:56
@NirantK NirantK requested a review from generall August 23, 2023 07:56
…_embed` in QdrantFastembedMixin class

* fix(qdrant_fastembed.py): fix query_vectors assignment in `query` method of QdrantFastembedMixin class
@NirantK NirantK changed the base branch from master to dev August 23, 2023 12:40
@generall generall merged commit a26a077 into dev Aug 23, 2023
generall pushed a commit that referenced this pull request Sep 7, 2023
* * fix(qdrant_fastembed.py): change method name from encode to embed in QdrantFastembedMixin class
* fix(qdrant_fastembed.py): change method name from encode to embed

* * fix(qdrant_fastembed.py): change DEFAULT_EMBEDDING_MODEL from "sentence-transformers/all-MiniLM-L6-v2" to "BAAI/bge-small-en"

* * fix(qdrant_fastembed.py): add support for different embedding types in QdrantFastembedMixin
* feat(qdrant_fastembed.py): add embed_type parameter to embed method in QdrantFastembedMixin

* * fix(qdrant_fastembed.py): change vector field name from "text-{model_name}" to "fast-{model_name}"

* * fix(qdrant_fastembed.py): add comments to clarify code intent

* * refactor(qdrant_fastembed.py): remove unused import 'Sequence' from typing module

* * test(test_fast_embed.py): refactor test_add_without_query function to simplify parameter handling and remove unnecessary checks and assignments

* * fix(qdrant_fastembed.py): fix type error in NamedVector Query

* * fix(qdrant_fastembed.py): change method name from `embed` to `query_embed` in QdrantFastembedMixin class
* fix(qdrant_fastembed.py): fix query_vectors assignment in `query` method of QdrantFastembedMixin class
@NirantK NirantK deleted the fix-record-type branch November 2, 2023 08:13
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