gpt4-pdf-chatbot-langchain
gpt4-pdf-chatbot-langchain copied to clipboard
When running “npm run ingest”, there is a “network error”, how to solve
The problem I'm having now is: whenever the program runs to creating vector store... After a minute or so, there will be a network error, indicating extraction failure! The screenshot is as follows I use gpt-3 in the configuration file, the pinecone and openai configurations are also configured, indexname is also the same as the one set in pinecone, Dimensions is set to 1536, and the index is in the ready state in the console. openai api parameters are also configured. In order to prevent the limitations of gpt-4, in the configuration also changed to gpt3 (in accordance with the format of the tips to change), now it is not clear what the problem is, gpt desktop version can be accessed normally at any time, pdf document I specifically selected a only 20 pages of English material, from the console logs, the content can be resolved, but it is stuck in the extraction here, please help to see, thank you!
move to utils/pinecone-clients.ts, then add the code " pinecone.projectName = "xxxxx"; " above the the row of the code which is "return pinecone.". it should be mentioneded that xxxx can be found on the website of pinecone. and it is in the index name, which is the mid of the index name with 7 digits composed of letters and numbers.
I add " pinecone.projectName = "xxxxx";but it also print errornetwork
Hi, @kingsun1980. 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.
Based on my understanding, you reported an issue about encountering a network error while running "npm run ingest". You mentioned that you have already configured the necessary settings for gpt-3, pinecone, and openai. Erycontroller suggested a potential solution by moving the code to utils/pinecone-clients.ts and adding the code "pinecone.projectName = "xxxxx";" above the return statement. However, it seems that even after making this change, the network error still persists, as reported by 15392778677.
Before we proceed, we would like to confirm if this issue is still relevant to the latest version of the gpt4-pdf-chatbot-langchain repository. If it is, please let us know by commenting on this issue. Otherwise, feel free to close the issue yourself, or the issue will be automatically closed in 7 days.
Thank you for your understanding and cooperation.