Skip to content
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: Failed to initialize Pinecone Client #226

Closed
ViniciusTheCoder opened this issue Apr 28, 2023 · 4 comments
Closed

Error: Failed to initialize Pinecone Client #226

ViniciusTheCoder opened this issue Apr 28, 2023 · 4 comments

Comments

@ViniciusTheCoder
Copy link

ViniciusTheCoder commented Apr 28, 2023

I'm having this error when running npm run ingest. I don't know what I'm doing wrong, here's a screenshot of how my ingest-data.ts and pinecone.ts are configured. I saw in another issue that to solve this problem it was enough to add

import dotenv from 'dotenv'; 
dotenv.config();

to the ingest-data.ts file. I tried to do that but it didn't work:

Error: Failed to initialize Pinecone Client
at initPinecone (c:\Users\admin\Documents\gpt4-pdf-chatbot-langchain\utils\pinecone-client.ts:19:11)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
at (c:\Users\admin\Documents\gpt4-pdf-chatbot-langchain\utils\pinecone-client.ts:23:25)

My ingest-data.ts
image
My pinecone.ts
image

My API Keys, Index Name and Envinroment are correct at .env file

My current repo https://github.com/ViniciusTheCoder/GPT_PDF

@ViniciusTheCoder ViniciusTheCoder changed the title Error: Failed to initialize Pinecone Cliente Error: Failed to initialize Pinecone Client Apr 28, 2023
@pushkarlakhe13
Copy link

I have the same error. My key, index name and environment are correct

@ViniciusTheCoder
Copy link
Author

@pushkarlakhe13 so, yesterday I cloned the repo, followed exactly the same steps and it worked. I guess that maybe the node version can impact directly the final result

@ChristianEvc
Copy link

Hi @ViniciusTheCoder . Which Node version are you on? I'm having the same issue, and I'm on Node v18.16.0.

@dosubot
Copy link

dosubot bot commented Sep 23, 2023

Hi, @ViniciusTheCoder! I'm Dosu, and I'm here to help the gpt4-pdf-chatbot-langchain team manage their backlog. I wanted to let you know that we are marking this issue as stale.

Based on my understanding, you are experiencing an error when running npm run ingest, and you have provided screenshots of your configurations. Another user, @pushkarlakhe13, has mentioned that they are facing the same error. You have tried adding import dotenv from 'dotenv'; dotenv.config();, but it did not solve the problem. @ChristianEvc has asked about the Node version being used.

Before we close this issue, we wanted to check with you if it is still relevant to the latest version of the gpt4-pdf-chatbot-langchain repository. If it is, please let us know by commenting on the issue. Otherwise, feel free to close the issue yourself, or it will be automatically closed in 7 days.

Thank you for your understanding and cooperation!

@dosubot dosubot bot added the stale Issue has not had recent activity or appears to be solved. Stale issues will be automatically closed label Sep 23, 2023
@dosubot dosubot bot closed this as not planned Won't fix, can't repro, duplicate, stale Sep 30, 2023
@dosubot dosubot bot removed the stale Issue has not had recent activity or appears to be solved. Stale issues will be automatically closed label Sep 30, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants