ai-pdf-chatbot-langchain: [ERROR] PineconeClient: Error calling upsert
error [Error: PineconeClient: Error calling upsert:
Error: PineconeClient: Error calling upsertRaw: FetchError: The request failed and the interceptors did not return an alternative response]
/home/salman/Desktop/gpt4-pdf-chatbot-langchain/scripts/ingest-data.ts:44
throw new Error('Failed to ingest your data');
^
[Error: Failed to ingest your data]
Node.js v19.3.0
PDF Size: 3.0M
Pages: 53
About this issue
- Original URL
- State: closed
- Created 4 years ago
- Comments: 41
I had the same issue. My pinecone index had the wrong dimension. After I created a new one with 1536 Dimensions (because thats what the OpenAI Embeddings Endpoint uses) it worked.
I resolved it by just using only the actual index name (and not the full index address) for the PINECONE_INDEX_NAME. I was making mistake by using the whole address (new-XXXXX.svc.XX-XXX-gcp.pinecone.io) as value for PINECONE_INDEX_NAME
Had the same issue. In my case, I’ve been creating index programmatically and even though the promise has been resolved, the index was not “ready” yet. I recommend creating a polling mechanism to check on
describeIndexapi for thereadystate:and use index only after that.
This issue appears to be a transient error occurring in Pinecone’s infrastructure. Without changing anything (index name, batch size, number of vectors, etc) - I have seen an upload succeed and then fail and then succeed. The only solution is to add a retry if this error is encountered.
Unfortunately LangChain doesn’t provide any hook to handle this error, so when uploading a large quantity of documents, a single transient failure can terminate the whole process and since LangChain batch uploads vectors 50 at a time to Pinecone, this error can occur randomly in the middle of a given document.
I have the smallest index name but still the same issue !
@justinkater This worked. This is a crucial step (for people not very familiar) that they did not mention.
There are something omitted on Pinecone settings in the README. Create an index at the INDEXES part on Pinecone. It works. @mayooear It will be grateful if the tips can be added to README, thanks.
I just ran it 6x times and still not working…!
``hello! I was having the same problem until I removed the “namespace” attribute in the UpserRequest, apparently, this feature is not for the free tier
@dukejones it takes me < 20 sec to init the index, probably worth a shot trying to generate it on the flight
Creating a new Pinecone index with a short name and 1536 dimensions solved the error for me.
thanks smiley!