-
Notifications
You must be signed in to change notification settings - Fork 3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[ERROR] PineconeClient: Error calling upsert #97
Comments
I had the same error. I double-checked PINECONE_API_KEY, PINECONE_ENVIRONMENT and PINECONE_INDEX_NAME. I read up on PINECONE_NAME_SPACE and confirmed that you don't have to change it in code (Pinecone will create it automatically if it doesn't exist). None of that helped. I then went back to the readme and followed the troubleshooting section's advice to start fresh. I cloned the repo again, started a new Pinecone account, and it worked. So I haven't found out what the issue was; but I'd recommend doing that. Between this and #93, it seems like the error messages from Pinecone can be a bit uninformative |
Same here.. |
I just ran it 6x times and still not working...! |
same issue |
There are something omitted on Pinecone settings in the README. |
Hi what is the solution @saccohuo ? Sadly I dont understand what you mean |
Go to Pinecone--> INDEXES --> Create index Sorry, I misspelled INDEXES to INDEXED in the above reply. |
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. |
@justinkater This worked. This is a crucial step (for people not very familiar) that they did not mention. |
Yep, I also created another index with 1536 Dimensions, but still not working. the same issue happened. |
@sagar-jani , please make sure you're using the latest node version (I'm using 18). Is there the same error message? |
I'm having the same issue. I've tried the ingestion in Windows and Mac OS. Same error. I'm also, on the latest node version. I've also tried other basic text-based pdfs. No difference. |
Creating a new Pinecone index with a short name and 1536 dimensions solved the error for me. |
I'm having this issue, but between two PDFs I'm trying to run through one works and the other will throw this error. Everything else is the same. |
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 const checkStatus = async () => {
const { status } = await this.client.describeIndex({
indexName: name,
})
if (status?.ready) {
return status
} else {
return new Promise((resolve) => {
setTimeout(() => resolve(checkStatus()), 5000)
})
}
}
await checkStatus() and use index only after that. |
I resolved my issue. I had keys the value of which were |
I think I read somewhere it takes around 10 minutes to initialize a new index..? Anyway, I'm creating mine manually (size of 1536) & it's working |
@dukejones it takes me < 20 sec to init the index, probably worth a shot trying to generate it on the flight |
Were you using folders to specify namespaces? |
Thank you using the shorter version of the index name solved it for me! |
Some combination of rebuilding the project/index, changing the size to 1536, and using a shorter name worked for me (did it all at once). I suspect the root of this issue is on Pinecone's end, and rebuilding with the same parameters may have just worked too. And your INDEX_NAME will need to be "project" not the FQDN they provide. |
I'm using the Free Pinecode starter plan with one index, I'm on an M1 Mac running Node v18.16.0, I'm using the short name of my index along with all the other necessary API keys. Running the sample code from LangChain's Pinecone docs fails:
Outputs following error:
I was hoping using the the index short name would do the fix, but it's not. Any other ideas? |
Haha! Thank you for this tip. Should absolutely be included in the README.md. In the past, I've used repos that automatically create an index in Pinecone for you. I assumed this would be the case again. When I followed your advice, I successfully ingested my PDFs. |
@tdimino Great to hear you solved the issue, lol not issue. and should be in README.md for sure :) |
update the |
Solution for this issue until pinecone steps in and clarified. |
You mean an index associated with a paying plan rather than the free-tier options, right? |
I had this issue because the function I was using to build the list of insertion objects was |
the tutorials showed using free account. i too used exact same steps. |
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. |
Thanks 👍
I had suspected that too after a demo suddenly stopped working after first
time.
…On Fri, Jul 14, 2023, 12:58 AM pkhandelwal-cdl ***@***.***> wrote:
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
<https://github.com/hwchase17/langchainjs/blob/main/langchain/src/vectorstores/pinecone.ts#L111>,
this error can occur randomly in the middle of a given document.
—
Reply to this email directly, view it on GitHub
<#97 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AT5HWI7JEGCKVQKCU34FSRTXQBD5LANCNFSM6AAAAAAWOPJRR4>
.
You are receiving this because you commented.Message ID:
***@***.***>
|
I tried everything. Appended api key with NEXT_PUBLIC. deleting index, reinitializing the whole process with a new new email. lastly after tiring myself up, I ran my code twice and it worked. Its seems really like a gamble, working with something like pinecone. |
😁
my guess, free tier is sharing resources in round robin fashion
…On Sun, Jul 23, 2023 at 7:34 AM Shubham Panchal ***@***.***> wrote:
I tried everything. Appended api key with NEXT_PUBLIC. deleting index,
reinitializing the whole process with a new new email. lastly after tiring
myself up, I ran my code twice and it worked. Its seems really like a
gamble, working with something like pinecone.
—
Reply to this email directly, view it on GitHub
<#97 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AT5HWI4ADQ63RMPH3I4JNRTXRSBCNANCNFSM6AAAAAAWOPJRR4>
.
You are receiving this because you commented.Message ID:
***@***.***>
|
``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
|
I finally Found it after months of search and struggle, it's actually a problem related to our local DNS configuration. Just change your local WIFI network DNS Configuration to Google's DNS servers: Man it was the toughest and the easiest bug of my life, because i was thinking that there is something wrong with my code and but it wasn't. |
Many might not be aware of a crucial point: In each free organization, only one index can be created. In my situation, I needed to have two indexes for both the staging and production environments. To solve this, I created two separate organizations. While I succeeded in setting up a free index in each of them, Pinecone's system is capable of detecting this. As a result, both indexes will not work unless you either delete one of them or opt for an upgrade. |
PDF Size:
3.0M
Pages:
53
The text was updated successfully, but these errors were encountered: