Comments (8)
@timvisee Please look at it and give me solution for it.
from qdrant-client.
@pseudo-usama scroll method is not what we call search
, it is just iterating over the records in Qdrant with some optional restrictions like payload filters.
In order scroll to be fast, payload fields which are used in payload filters should have payload indices.
Limit does not depend on the size of your dataset, it's about the amount of results you want to have in return.
If you want to scroll over a huge amount of records, consider using pagination, which allows you to fetch the next records on demand instead of fetching all of them in one call.
from qdrant-client.
Hi @Faiee50 ,
scroll
method returns a tuple of points and the next offset
you need to make calls to scroll with offset
retrieved from the previous call (in the first call offset=None
)
once returned offset value equals to None
, it means that you've reached the end of the collection
from qdrant-client.
Hey @Faiee50, the solution for you would be to refer to the documentation https://qdrant.tech/documentation/concepts/points/#scroll-points
You are using very high value for the limit parameter, and it is absolutely no surprise that the endpoint gives you a timeout once you ask it to retrieve the whole dataset in one request.
You are welcome to use Pinecone if you find appropriate API there.
from qdrant-client.
I'm also facing the same issue. But I didn't find any solutions. Is there any easier solutions to search based on metadata over large dataset? In that case the limit should be very large. I also use offset but the process was very slow.
from qdrant-client.
Hi @joein ,
Thank you for the clarification regarding the scroll method in Qdrant. I understand that it is used for iterating over records with optional restrictions, such as payload filters, and that for efficient scrolling, the payload fields should have payload indices.
I am interested in learning how to implement pagination using the scroll method in Qdrant. Could you provide an example code snippet demonstrating this?
from qdrant-client.
@joein , thanks for your quick help.This is what i am searching for a long
:)
from qdrant-client.
you are welcome
p.s. it can be found here in the docs
from qdrant-client.
Related Issues (20)
- pydantic <=2.6.0 converts bool to 0/1 and breaks bool filters HOT 2
- 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
- Missing Example for Using ColBERT with Python Client in Blog and Documentation HOT 1
- [BUG] test_referenced_vectors crashes with validation errors on pydantic v1.10.x HOT 1
- Setting Parameters in Qdrant Client running in " Memory" Issue: HOT 1
- bug: qdrant using poetry HOT 6
- add tests for query_points with Document
- Unlock pyright dependency
- query_points raise exception: ResponseHandlingException: 1 validation error for ParsingModel[InlineResponse20021] (for parse_as_type) HOT 12
- Support async in upload_collection HOT 1
- Limiting RAM in Qdrant
- bug: tests fails due to datetime difference 00:00 vs Z
- Python client type hint error
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.