Git Product home page Git Product logo

Comments (8)

Faiee50 avatar Faiee50 commented on July 23, 2024 2

@timvisee Please look at it and give me solution for it.

from qdrant-client.

joein avatar joein commented on July 23, 2024 1

@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.

joein avatar joein commented on July 23, 2024 1

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.

generall avatar generall commented on July 23, 2024

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.

pseudo-usama avatar pseudo-usama commented on July 23, 2024

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.

Faiee50 avatar Faiee50 commented on July 23, 2024

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.

Faiee50 avatar Faiee50 commented on July 23, 2024

@joein , thanks for your quick help.This is what i am searching for a long
:)

from qdrant-client.

joein avatar joein commented on July 23, 2024

you are welcome

p.s. it can be found here in the docs

from qdrant-client.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.