mayooear / gpt4-pdf-chatbot-langchain

GPT4 & LangChain Chatbot for large PDF docs
https://www.youtube.com/watch?v=ih9PBGVVOO4
14.95k stars 3.02k forks source link

An error occurred while fetching the data #264

Closed frank0828 closed 1 year ago

frank0828 commented 1 year ago

I finally got the Vectors to store on Pinecone, but when I try to run it locally, I got " An error occurred while fetching the data. Please try again." , when I send a message. Please help me.

error [ErrorWithoutStackTrace: PineconeClient: Error getting project name: SyntaxError: Unexpected token A in JSON at position 0] error - utils\pinecone-client.ts (19:10) @ initPinecone error - Error: Failed to initialize Pinecone Client at initPinecone (webpack-internal:///(api)/./utils/pinecone-client.ts:23:15) at process.processTicksAndRejections (node:internal/process/task_queues:95:5) at async eval (webpack-internal:///(api)/./utils/pinecone-client.ts:26:18) 17 | } catch (error) { 18 | console.log('error', error);

19 | throw new Error('Failed to initialize Pinecone Client');

de871cffa93bcddf613fd5394827d7c

dissorial commented 1 year ago

Looks like your pinecone is not configured properly. Are your pinecone index and api keys set correctly in the env file?

dosubot[bot] commented 1 year ago

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

From what I understand, you encountered an error titled "An error occurred while fetching the data" when trying to fetch data locally after successfully storing vectors on Pinecone. It seems that dissorial suggested checking if the Pinecone index and API keys are set correctly in the env file. This suggestion may have resolved the issue.

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 contribution to the project. Let us know if you have any further questions or concerns.