Skip to content
This repository has been archived by the owner on Nov 13, 2024. It is now read-only.

Consultation - Metadata query and atomic upserts #215

Discussion options

You must be logged in to vote

Hi @AntonPeniaziev, glad to hear you're finding our documentation useful!

Let me try to answer all of your questions:

  1. Indeed, the underlying index.upsert() call to the Pinecone database returns as soon as the database have received the data, so that does not always guarantee that the same vector was already processed and indexed. Usually, the vector will be available for querying within a few seconds. In most use cases, the documents will be residing in the Knowledge base for days \ weeks \ months, so those few seconds are usually negligible.
    If you want to start querying immediately after upsert, you might wanna use a retry mechanism:

    from tenacity import retry
    @retry(top=stop_after_at…

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@AntonPeniaziev
Comment options

@davdvp
Comment options

Answer selected by igiloh-pinecone
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants
Converted from issue

This discussion was converted from issue #214 on December 11, 2023 14:09.