Comments (4)
Fastembed creates a named vector with this name fast-bge-small-en-v1.5
in your case, however you are uploading unnamed vectors, that's why you they are not added to your collection.
You don't see any error on python client side, because upload_collection has param wait
set to False
by default, which means that client does not wait for the response from the server.
Here is a link to an example with upsert
You can check accepted param types of vectors in upload_collection
signature.
You can also find examples of usage it with various input types in tests
from qdrant-client.
Hi @uguraydrd
Could you show please how you upload points to your collection?
from qdrant-client.
Hi @joein,
Of course. I do this:
metadata = data["col"].to_dict(orient="records")
model = qdrant_client.embedding_models[qdrant_client.embedding_model_name]
qdrant_client.upload_collection(
collection_name="test",
vectors=[
arr.tolist()
for arr in list(
model.passage_embed(
texts=data,
batch_size=128,
)
)
],
ids=range(len(data)),
payload=metadata,
batch_size=128,
)
from qdrant-client.
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 qdrant_client.add()
deeply, I noticed the situation you mentioned.
I want to put the working code here, maybe it will be useful to other people.
metadata = data["col"].to_dict(orient="records")
model = qdrant_client.embedding_models[qdrant_client.embedding_model_name]
vector_field_name = qdrant_client.get_vector_field_name()
qdrant_client.upload_collection(
collection_name="test",
vectors=[
{self.vector_field_name: arr.tolist()}
for arr in self.model.passage_embed(
texts=data,
batch_size=128,
)
],
ids=range(len(data)),
payload=metadata,
batch_size=128,
)
from qdrant-client.
Related Issues (20)
- healthz return raw str, but decode use .json() HOT 2
- Indeterministic lock results HOT 1
- QdrantClient seems to crash Gunicorn HOT 2
- I don't understand how to extract all documents HOT 1
- Unable to use metadata filter values containing spaces HOT 3
- Request Time out Error HOT 5
- Missing update_payload method
- ModuleNotFoundError: No module named 'dbm' during connection HOT 3
- invalid PayloadIndexParams model: integer_index_params in gRPC mode HOT 2
- qdrant cloud: retrieve collection metrics via python client HOT 1
- NotImplementedError: cannot instantiate 'WindowsPath' on your system HOT 2
- pydantic <=2.6.0 converts bool to 0/1 and breaks bool filters HOT 2
- Qdrant Scroll Method Timeout HOT 8
- Mounting Local Volume for Langchain Embeddings in Docker Container HOT 8
- can not get "time" from api using the sdk HOT 4
- Extra inputs are not permitted HOT 5
- `init_from is deprecated` warnings on create collection calls HOT 2
- fix orderby conversion with pydantic 1.10.x HOT 1
- The problem I encountered when using celery task to execute qdrant in fastApi HOT 1
- Hybrid search throws error when `prefer_grpc=True` HOT 5
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.