mayooear / gpt4-pdf-chatbot-langchain

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

npm run ingest return 429 error #342

Closed barbie6676 closed 8 months ago

barbie6676 commented 1 year ago
~/gpt4-pdf-chatbot-langchain/scripts/ingest-data.ts:46
    throw new Error('Failed to ingest your data');
          ^

Error: Failed to ingest your data
    at run (~/gpt4-pdf-chatbot-langchain/scripts/ingest-data.ts:46:11)
    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
    at <anonymous> (~/gpt4-pdf-chatbot-langchain/scripts/ingest-data.ts:51:3)

Node.js v18.16.0
creating vector store...
error Error: Request failed with status code 429
    at createError (~/gpt4-pdf-chatbot-langchain/node_modules/axios/lib/core/createError.js:16:15)
    at settle (~/gpt4-pdf-chatbot-langchain/node_modules/axios/lib/core/settle.js:17:12)
    at IncomingMessage.handleStreamEnd (~/gpt4-pdf-chatbot-langchain/node_modules/axios/lib/adapters/http.js:322:11)
    at IncomingMessage.emit (node:events:525:35)
    at IncomingMessage.emit (node:domain:489:12)
    at endReadableNT (node:internal/streams/readable:1359:12)
    at process.processTicksAndRejections (node:internal/process/task_queues:82:21) {
barbie6676 commented 1 year ago

it was a small pdf with only 3 pages and mainly text.

linkstatic12 commented 1 year ago

did u create a index in pinecone?

barbie6676 commented 1 year ago

yes I did created index in pinecone.

Screenshot 2023-06-07 at 3 42 44 PM
lkh9908 commented 1 year ago

did you solve it?

lkh9908 commented 1 year ago

dimension needs to be 1536 i think, but i still have the same error

AvishalomJ commented 1 year ago

It could be related to your credits in OpenAI. Check that your credits didn't expire here - https://platform.openai.com/account/usage

tanld7 commented 1 year ago

I also have a small pdf and face the same error. I still have enough OpenAI credit.

linkstatic12 commented 11 months ago

is it possible to share this pdf. Sometimes the pdf isn't converted.

dosubot[bot] commented 8 months ago

Hi, @barbie6676! 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 the issue titled "npm run ingest return 429 error" as stale.

From what I understand, you encountered a 429 error while running the npm run ingest command. The error message indicates a failure in ingesting the data and provides the specific line of code where the error occurred. In the comments, there has been a discussion about the size of the PDF, creating an index in Pinecone, and checking OpenAI credits. Some users are still facing the same error even with a small PDF and enough OpenAI credits.

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 gpt4-pdf-chatbot-langchain project!

barbie6676 commented 8 months ago

hi I resolved the issue, it turned out to be not enough openAPI balance

dosubot[bot] commented 8 months ago

Thank you, @barbie6676, for your response and for resolving the issue! We appreciate your contribution to the gpt4-pdf-chatbot-langchain project. We will go ahead and close this issue now. If you have any further questions or need assistance in the future, please don't hesitate to reach out.