You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
When using the new .add method, unable to provide collection config #595
This is an issue because if I want to use the batch_search method later on rather than the batch_query method, I can't because of a mismatching config. The reason I would rather use the batch_search is because I have already generated embedding for a large volume of text. It makes no sense to regenerate upon query. I would rather query back the original embedding and provide as a parameter to the one of the search methods:
With pure qdrant-client API (without fastembed mixin's methods like add and query), you can have unnamed vectors, which means that you don't need to provide a name.
However, fastembed creates named vectors and operates with them. Names of the vectors are generated from the chosen model names.
Thus, to do search, you need to set query_vector to a some named vector, e.g.:
If collection was not created, then the first call to add creates it.
If you want to create it on your own, take a look at get_fastembed_vector_params method
Activity
joein commentedon Apr 16, 2024
Hello @bnkc
With pure qdrant-client API (without fastembed mixin's methods like
addandquery), you can have unnamed vectors, which means that you don't need to provide a name.However, fastembed creates named vectors and operates with them. Names of the vectors are generated from the chosen model names.
Thus, to do
search, you need to setquery_vectorto a some named vector, e.g.:If collection was not created, then the first call to
addcreates it.If you want to create it on your own, take a look at
get_fastembed_vector_paramsmethodbnkc commentedon Apr 16, 2024
Hi @joein
Thanks! This worked for me :)