Comments (7)
Ahh I see. We will fix this soon.
@dabasmoti you can try using our client-server implementation which we anyways recommend for production. It works fine. Just use:
client = QdrantClient('localhost')
from qdrant-client.
Yep,
you are right.
It does work with the server.
from qdrant-client.
I took the liberty to transfer the issue to the qdrant Python client repository.
from qdrant-client.
Hi @dabasmoti
We have a bug on our side.
In case you need to use local mode and don't want to wait for the release, you can sort indices and corresponding values before vector creation, e.g.:
OK:
SparseVector(
indices=[0, 5],
values=[0.3, 0.2]
)
ERROR:
SparseVector(
indices=[5, 0],
values=[0.2, 0.3]
)
from qdrant-client.
Good catch. I think you can do this in the meantime to make it work.
client.upsert(
collection_name=COLLECTION_NAME,
points=[
models.PointStruct(
id=1,
payload={}, # Add any additional payload if necessary
vector={
"text": models.SparseVector(
indices=np.array([1479876206, 696618268]),
values=np.array([0.5, 0.6])
)
},
)
],
)
@joein @agourlay Please have a look
It happens because in the source code sorted_indices
is a list and arr[list_of_indices_to_extract]
works with numpy arrays but not python arrays. Here sorted_indices = [0, 1]
and vector.indices = [1479876206, 696618268]
.
We need to fix local mode implementation for this. I think client-server mode works fine.
from qdrant-client.
@KShivendu
I tried it before.
It doesn't solve it.
same error
from qdrant-client.
available as of qdrant-client==1.7.1
from qdrant-client.
Related Issues (20)
- Replace auto-generated int ids in upload_collection and similar to uuids HOT 1
- Timeout parameter has different types in QdrantClient and in its methods HOT 1
- Unable to Access Qdrant APIs via HTTPS in EKS with ALB Ingress HOT 2
- Add sparse vectors to migration tests HOT 1
- [Backward compatibility] Allow extra fields for internal pydantic models HOT 2
- Create a dataframe dataset object HOT 6
- Fine-grained timeout for httpx HOT 2
- individual shard_key when adding points HOT 4
- Add information about requested URL to UnexpectedResponse exception to simplify troubleshooting
- how to get shard keys for collection when using custom sharding HOT 1
- upload_collection can't be launched with parallel and without explicit ids
- Regression: payloads cannot contain python builtin datetime objects in 1.7.1 HOT 2
- Error: Payload Limit Exceeded HOT 25
- Unable to close grpc_channel. Connection was interrupted on the server side HOT 12
- grpc options are not parsed correctly when https is set
- PointStruct is very slow HOT 8
- update scoring in local mode in discovery api HOT 1
- Missing import statement in documentation (Get Started) HOT 2
- Local Qdrant db Error on loading: KeyError: '__pydantic_fields_set__' HOT 4
- query_text param not working for qdrant_client.search HOT 8
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.