Consultation - Metadata query and atomic upserts #215
-
Hi guys, I haven't found any community forum so asking here a few questions: I'm using this documentation for my RAG project .
while index.describe_index_stats()['total_vector_count'] < len(docs):
time.sleep(0.05) The same goes for delete()
Thanks! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
Hi @AntonPeniaziev, glad to hear you're finding our documentation useful! Let me try to answer all of your questions:
|
Beta Was this translation helpful? Give feedback.
Hi @AntonPeniaziev, glad to hear you're finding our documentation useful!
Let me try to answer all of your questions:
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: