Replies: 4 comments
-
|
Hi @uguraydrd Could you show please how you upload points to your collection? |
Beta Was this translation helpful? Give feedback.
-
|
Hi @joein, Of course. I do this: |
Beta Was this translation helpful? Give feedback.
-
|
Fastembed creates a named vector with this name You don't see any error on python client side, because upload_collection has param Here is a link to an example with You can check accepted param types of vectors in |
Beta Was this translation helpful? Give feedback.
-
|
Thank you very much for your information. Finally, It works for me, but normally, I could not find or see this anything on your tutorials unfortunately . When I analyzed I want to put the working code here, maybe it will be useful to other people. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hello folks!
Firstly, I would like to run fastembed integration. I suppose there is a bug or problem or I am wrong. I am going to explain this problem.
Normally, you know we follow these steps for example if we want to give the vector size:
We know there is no problem here.
But if we want the vector size to be retrieved dynamically based on the model we follow these steps as in documentation like:
unfortunately my vectors are not loaded into the collection. I do not get any error but my vectors are not loaded either.
We know
vectors_confighas two typehint likeUnion[types.VectorParams, Mapping[str, types.VectorParams]]. We also have a mapping. After callingqdrant_client.get_fastembed_vector_params(), it returns a dictionary for us to feed tovectors_configlike this:Finally,
I check the your dev codes. Based on my many tests and observations, I noticed if I do this there is no problem but this is not a solution, just an indication that it works if I do this:
because if I do this 'vectors_config' is no longer a dictionary but a pydantic class and equals a value like below. It can then be verified directly by
models.VectorParams.VectorParams(size=384, distance=<Distance.COSINE: 'Cosine'>, ...)What is your comment on this topic? Please let me know what is the right approach or solution?
Cheers!
--
Uguray
Beta Was this translation helpful? Give feedback.
All reactions