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

New public sparse vector configuration #393

Merged
merged 7 commits into from
Dec 6, 2023
Merged

Conversation

agourlay
Copy link
Member

@agourlay agourlay commented Dec 6, 2023

Copy link

netlify bot commented Dec 6, 2023

Deploy Preview for poetic-froyo-8baba7 ready!

Name Link
🔨 Latest commit 6feef30
🔍 Latest deploy log https://app.netlify.com/sites/poetic-froyo-8baba7/deploys/6570b73f82817200081b49e1
😎 Deploy Preview https://deploy-preview-393--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.

@@ -1255,7 +1255,7 @@ def convert_sparse_index_config(cls, model: grpc.SparseIndexConfig) -> rest.Spar
full_scan_threshold=model.full_scan_threshold
if model.HasField("full_scan_threshold")
else None,
on_disk=model.on_disk if model.HasField("on_disk") else None,
index_type=model.on_disk if model.HasField("on_disk") else None, # TODO the types are incompatible for a conversion?
Copy link
Member Author

Choose a reason for hiding this comment

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

I have a problem here, the types do not align.
On one side an Optional and on the other side an enum.

Copy link

@IvanPleshkov IvanPleshkov Dec 6, 2023

Choose a reason for hiding this comment

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

Because you need convert into SparseIndexParams. Andrey declined and reverted changes in grpc here qdrant/qdrant#3168, so that we have names mismatch

@agourlay
Copy link
Member Author

agourlay commented Dec 6, 2023

first green run, marking for review

@agourlay agourlay marked this pull request as ready for review December 6, 2023 16:44
@agourlay agourlay requested a review from generall December 6, 2023 16:46
@generall generall merged commit b7e8e45 into dev Dec 6, 2023
joein pushed a commit that referenced this pull request Dec 7, 2023
* New public sparse vector configuration

* regen

* fix stubs

* fix test

* conversions

* fix conversion

* apply api changes

---------

Co-authored-by: generall <andrey@vasnetsov.com>
@generall generall deleted the new-public-sparse-config branch May 3, 2024 10:47
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