Comments (2)
Hello @bnkc
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.:
models.NamedVector(
name=client.get_vector_field_name(), vector=query_vector
)
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
from qdrant-client.
Hi @joein
Thanks! This worked for me :)
from qdrant-client.
Related Issues (20)
- `http.IntegerIndexParams` is not being converted to `grpc` counterpart HOT 3
- [Proposal] Automatically add Url.port and Url.path to rest_uri when the url parameter is behind a proxy
- Tuple not supported in GRPC payload by Qdrant Client HOT 2
- Discrepancy between /collections/<collection_name> endpoint and GetCollectionInfo from the grpc client HOT 1
- remove rest, async grpc methods and recreate_collection in qdrant-client 1.13.0 HOT 2
- Failed to connect to cloud when running on my local machine but working in google colab. HOT 1
- Don't write .lock file when loading from an existing collection HOT 1
- payload indices with False/None params created via grpc raises an exception on get_collection via http client HOT 1
- UnexpectedResponse: Unexpected Response: 404 (Not Found) on search_points HOT 3
- Ssl handshake failed
- Pydantic missing field error on collection_cluster_info response HOT 6
- Slow batch upload of embeddings generated by fastembed due to `Iterable[ndarray]` conversion to `list[list[float]]` HOT 1
- `set_payload` in a nested payload HOT 18
- use of np.NINF is removed in numpy 2 HOT 2
- Support: Multi-channel search??? HOT 2
- Python client type hint error with column-oriented upsert HOT 2
- update_vectors in local mode does not reset deleted_per_vector if vector is added
- Can't create shard key with async grpc client HOT 1
- Collection params conversion lacks sharding_method HOT 1
- QdrantFastembedMixin.set_sparse_model() does not support 'local_files_only' param
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from qdrant-client.