Comments (27)
Hey @rancor13, I just fixed this same error. The error is due to the multiple OPENAI API keys in the environment.
apparently the env variable in env
file from the project gets overwritten by systems env variable.
So just check your Systems Environment variable and delete it or change it to the correct API KEY.
To check, you can use the following commands
Windows:
echo %OPENAI_API_KEY%
Linux:
echo OPENAI_API_KEY
Mac:
printenv | grep OPENAI_API_KEY
from gpt4-pdf-chatbot-langchain.
@rancor13 I came here just to say the exact same thing as @anaszil. I kept getting a 429 response no matter what, and after messing around with a separate Python library, I realized that the 429 was coming from OpenAI, and adding a payment method to my account immediately resolved the issue - I'm able to ingest data now and get responses from the chat.
from gpt4-pdf-chatbot-langchain.
If you experience a 429 error, just create a new user for chatGPT (another google account for exemple, a free account, no need to pay).
Generate a new API key.
Replace your old one.
Solved my problem instantly.
creating vector store... ingestion complete
from gpt4-pdf-chatbot-langchain.
Ran into same issue. Fixed it by making sure to initialize an index in Pinecone Dashboard and making sure the namespace in pinecone.ts match the one in the dashboard (you can find it under Index Info). You can find the namespace under config/pinecone.ts
const PINECONE_NAME_SPACE = <make sure it is same as dashboard>
Edit: Initialize index and confirm its 'Ready' before running ingest script.
from gpt4-pdf-chatbot-langchain.
@rancor13, I encountered the same error and discovered that it was caused by my OpenAI account. Using the API requires payment for each request. In order to resolve the issue, I added a credit card to my account and now it works.
from gpt4-pdf-chatbot-langchain.
Have used them both (I have GPT-4).. still no avail. It splits the documents, etc etc. Everything looks fine up until the very send when creating the vector store then bam.. Failed to ingest the data.
Have tried 3x different open AI API keys, Multiple (paid for pine cone) environments, have watched the video 100x. Updaded any sort of plugin / update that VM studio told me in terms of code. It's getting hung up on the last part. Frustrating.
from gpt4-pdf-chatbot-langchain.
Wow, thanks to all of you for going through this. Following this instantly solved my errors.
from gpt4-pdf-chatbot-langchain.
are you using gpt-4?
from gpt4-pdf-chatbot-langchain.
from gpt4-pdf-chatbot-langchain.
Really appreciate the response.. but I have no name space... in Pinecone.
from gpt4-pdf-chatbot-langchain.
CHATGPT says I need to ingest data into it first.. but how can I ingest if it always fails? Thank you for your help.
from gpt4-pdf-chatbot-langchain.
The latest error you sent has a status code 429 ~~ pinecone complaining about receiving too many requests. Could you try with a single doc to discard this being the issue?
from gpt4-pdf-chatbot-langchain.
Yep, using the default PSD provided with the clone just for testing sake. So only 1 pdf.
from gpt4-pdf-chatbot-langchain.
Ran into same issue. Fixed it by making sure to initialize an index in Pinecone Dashboard and making sure the namespace in pinecone.ts match the one in the dashboard (you can find it under Index Info). You can find the namespace under config/pinecone.ts
const PINECONE_NAME_SPACE = <make sure it is same as dashboard>
Edit: Initialize index and confirm its 'Ready' before running ingest script.
Managed to get an index through like the query portion and edit of Pinecones website. Here is where I'm at now.
with that on pinecone as well...
Still failing to ingest.
from gpt4-pdf-chatbot-langchain.
Line 9 references amcbot2 instead of pinecone_index_name. Is that it?
from gpt4-pdf-chatbot-langchain.
Nope, fixed it I was re reading my post :(
from gpt4-pdf-chatbot-langchain.
I faced the same problem yesterday...try one thing: delete your pinecone project and create another one, not the index, the whole project. When creating a new one, choose another environment and create a new index.
from gpt4-pdf-chatbot-langchain.
I hit exactly the same error. still stuck with 429 too many requests error. tried only one pdf doc but still had the error. how did you manage to overcome this error @rancor13 ?
from gpt4-pdf-chatbot-langchain.
I am also getting the error:
creating vector store...
error [Error: PineconeClient: Error calling upsert: Error: PineconeClient: Error calling upsertRaw: FetchError: The request failed and the interceptors did not return an alternative response]
/Users/lionardo/Documents/Sites/gpt4-pdf-chatbot-langchain/scripts/ingest-data.ts:44
throw new Error('Failed to ingest your data');
^
[Error: Failed to ingest your data]
I have the Namespace set and I am loading only 1 pdf.
Update: I got it to work, actually. It was not initialized yet. The name space can be set if you make a curl command and set the namespace value.
from gpt4-pdf-chatbot-langchain.
Hey @rancor13, I just fixed this same error. The error is due to the multiple OPENAI API keys in the environment. apparently the env variable in
env
file from the project gets overwritten by systems env variable. So just check your Systems Environment variable and delete it or change it to the correct API KEY. To check, you can use the following commandsWindows:
echo %OPENAI_API_KEY%
Linux:
echo OPENAI_API_KEY
Mac:
printenv | grep OPENAI_API_KEY
Was really excited this would work.. but nope. When I run the windows command in terminal it just spits back the correct API key I'm supposed to be using... so that's confusing. Dang.. thought this would work..
Have now created a whole new project with new index and new, different environment etc as suggested. Still the same exact error. Failed to ingest.. to many requests : /
from gpt4-pdf-chatbot-langchain.
I hit exactly the same error. still stuck with 429 too many requests error. tried only one pdf doc but still had the error. how did you manage to overcome this error @rancor13 ?
Haven't. Tried every suggestion listed in the thread.
from gpt4-pdf-chatbot-langchain.
Hey @rancor13, I just fixed this same error. The error is due to the multiple OPENAI API keys in the environment. apparently the env variable in
env
file from the project gets overwritten by systems env variable. So just check your Systems Environment variable and delete it or change it to the correct API KEY. To check, you can use the following commandsWindows:
echo %OPENAI_API_KEY%
Linux:
echo OPENAI_API_KEY
Mac:
printenv | grep OPENAI_API_KEY
Was really excited this would work.. but nope. When I run the windows command in terminal it just spits back the correct API key I'm supposed to be using... so that's confusing. Dang.. thought this would work..
Have now created a whole new project with new index and new, different environment etc as suggested. Still the same exact error. Failed to ingest.. to many requests : /
Then have you checked the error code?
The too many requests. Is it from openai or pinecone?
The solution I provided was for openai 401 error. Which means the api key is incorrect.
If you can provide the complete output of the error you get. It would help me understand and I can maybe help you from there.
from gpt4-pdf-chatbot-langchain.
Sure the cause of my error is less common than for most as I'm new to this, but I did not have langchain installed. One to try pip install langchain
from gpt4-pdf-chatbot-langchain.
same error... is it from openai or pinecone...
i have checked pinecone PINECONE_NAME_SPACE and PINECONE_INDEX_NAME
from gpt4-pdf-chatbot-langchain.
hey @rancor13 , are you using a proxy like clash?
from gpt4-pdf-chatbot-langchain.
hey @rancor13 , are you using a proxy like clash?
I meet the same error and I also sue proxy as clash ,but it also can not work correctly
from gpt4-pdf-chatbot-langchain.
Hi, @rancor13! 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 difficulties with data ingestion despite following the documentation and creating new API keys. There have been several suggestions from other users to resolve the issue, such as initializing an index in Pinecone Dashboard, ensuring the namespace in pinecone.ts matches the one in the dashboard, and checking for multiple OPENAI API keys in the environment. Some users have also suggested creating a new project or user for ChatGPT and adding a payment method to the OpenAI account. However, it seems that the issue is still ongoing and has not been resolved.
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 the issue will be automatically closed in 7 days.
Thank you for your understanding and cooperation. Let us know if there's anything else we can assist you with!
from gpt4-pdf-chatbot-langchain.
Related Issues (20)
- PineconeError: Error, message length too large: found 5453452 bytes, the limit is: 4194304 bytes HOT 6
- source output HOT 1
- How to include more than 4 results from Pinecone? HOT 3
- How to change the BaseUrl if I use a proxy HOT 1
- Can ChatGPT 3.5 be supported? HOT 6
- Text words overlay display HOT 1
- Does this project accepts image read from PDF? HOT 5
- Enhancement - ability to use a graph database such as neo4j instead of vector database HOT 1
- enhancement - integrate with llamaindex HOT 3
- Explain data ingestion code. HOT 4
- s HOT 1
- "TypeError: Cannot read properties of undefined (reading 'text')" HOT 1
- error TypeError: ids is not iterable HOT 1
- Add support for Pinecone Serverless HOT 5
- Error: Azure OpenAI API instance name not found HOT 3
- FetchError: request to https://api.openai.com/v1/embeddings failed HOT 1
- run "yarn run ingest" Japanese punctuation marks were converted to Korean HOT 1
- I get this error when I open my local server: Cannot read properties of undefined (reading 'text') HOT 14
- error PineconeConnectionError HOT 1
- Failed to ingest your data HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from gpt4-pdf-chatbot-langchain.