Giter VIP home page Giter VIP logo

Comments (2)

xiaofan-luan avatar xiaofan-luan commented on June 18, 2024 1

Good to know!
If there are some common storage format that can be shared between different vectordbs that would be great

from vector-io.

dhruv-anand-aintech avatar dhruv-anand-aintech commented on June 18, 2024

Hi @xiaofan-luan, thanks for raising this.
I flag this to the user in case the random searches approach doesn't work:

f"CAUTION!!: Could not collect all ids after {MAX_TRIES_OVERALL} tries.\n"
"Due to the way Pinecone's API is built, there is no way to find all the ids of points that are stored in an index.\n"
"Reference: https://community.pinecone.io/t/how-to-retrieve-list-of-ids-in-an-index/380/20\n"
"This library uses a random search method to collect ids, but it is not guaranteed to collect all ids.\n"
"Please provide range of ids instead. Exporting the ids collected so far."

In my trials, using random searches approach is sufficient to extract all the points in the index when there are up to ~90k points in the index (takes ~20 tries). I have not tried with indexes much larger than that. There is an even more thorough approach which involves marking metadata on the points that have been downloaded (

parser_pinecone.add_argument(
"--modify_to_search",
type=bool,
help="Allow modifying data to search",
default=False,
action=argparse.BooleanOptionalAction,
)
) using --modify_to_search, but it is more time-consuming due to Pinecone's rate-limiting on these operations.

The good news is that Pinecone has recently released a list vectors endpoint (https://docs.pinecone.io/docs/get-record-ids), but it is only for serverless indexes through the REST API for now. When they release it for pod-based indexes as well, and with python client support, I will switch to that method.

from vector-io.

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.