Error: Failed to Ingest #6
Replies: 6 comments 9 replies
-
Hi @mayooear How can i Switch my Environment in pinecone to us-east1-gcp, as my default is us-central1-gcp. Because I am currently getting error as below when running "npm run ingest", thank you for an advice us-central1-gcp |
Beta Was this translation helpful? Give feedback.
-
I merged a PR to fix the large size issue causing upsert errors. |
Beta Was this translation helpful? Give feedback.
-
I was able to fix my issue.... I created a new project with a new index in pinecone, and apparently each project has a different api so I was using the previous project api... |
Beta Was this translation helpful? Give feedback.
-
Hey. Sorry if this is a dumb question but does anyone know how to fix this error: Error: Failed to ingest your data I have tried starting fresh with a new project and index. Im on the latest node version. I made sure my keys were correct in the .env file, etc. What can I do? Thanks for your time |
Beta Was this translation helpful? Give feedback.
-
I am happy to report that I overcame my own "Failed to ingest" brick wall. Here are a couple things that helped me. @Alvaroinfantee is right. You definitely want to put your env variables in quotes. I hadn't done that. (But that didn't cause my "failed to ingest" issue. My Node was out of date. So I downloaded a new version of that. But that didn't fix my problem. On line 10 of "ingest-data.ts" I worked on pointing to my document. That didn't do it. This is what worked for me:
I'm using the Terminal in Visual Studio Code. While I was in the folder of my new local repository in Visual Studio Code I ran this: I set up new .env file like I showed above. And it worked. I think I had probably screwed something up the first time I tried installing this. And it did something that made it so the entire thing wouldn't work. So just started completely over was the answer for me. This is an AMAZING script. I'm so excited to see the different ways I can use it. Thank you! |
Beta Was this translation helpful? Give feedback.
-
Many thanks to all the comments above. It helped me clear this hurdle. |
Beta Was this translation helpful? Give feedback.
-
If you run the
ingest
script and run into errorscalling upsert
for thePineconeClient
and have followed every single step in theREADME.md
, here are some major culprits to troubleshoot:PINECONE_INDEX_NAME
to match your index name in pinecone.Dimensions
in the Pinecone dashboard to 1536. (These are OpenAI embeddings dimensions).Environment
in pinecone to another environment, if the other environment is causing issues (requires paid plan)..env
file in the root that contains valid API keys from the pinecone dashboard. Test the api key separately from the repo.Beta Was this translation helpful? Give feedback.
All reactions