mayooear / gpt4-pdf-chatbot-langchain

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

Network Error #95

Closed LvisWang closed 1 year ago

LvisWang commented 1 year ago

image I successfully ingested my data and run the localhost. When I tried to ask some qustions I get this network error

anitman commented 1 year ago

Make sure you are eligible to access gpt-4, otherwise you'll need to change the modelName in makechain.ts to gpt-3.5-turbo.

prophesy604 commented 1 year ago

I'm trying to get this to run locally .. but for some odd reason it keeps ignoring my .env file.. thoughts? any help would be appreciated

LvisWang commented 1 year ago

Did you try 'export' ser?

LvisWang commented 1 year ago

Make sure you are eligible to access gpt-4, otherwise you'll need to change the modelName in makechain.ts to gpt-3.5-turbo.

I guess yes, already upgrated my plan to gptPLUS

prophesy604 commented 1 year ago

Did you try 'export' ser?

sorry, what do you mean?

LvisWang commented 1 year ago

Did you try 'export' ser?

sorry, what do you mean?

try 'export OPENAI_API_KEY=' , this CL puts variable in you environment

https://github.com/mayooear/gpt4-pdf-chatbot-langchain#:~:text=Try%20to%20hard%20code%20your%20API%20keys%20into%20the%20process.env%20variables.

prophesy604 commented 1 year ago

Did you try 'export' ser?

sorry, what do you mean?

try 'export OPENAI_API_KEY=' , this CL puts variable in you environment

https://github.com/mayooear/gpt4-pdf-chatbot-langchain#:~:text=Try%20to%20hard%20code%20your%20API%20keys%20into%20the%20process.env%20variables.

ahh thanks! that worked!

anitman commented 1 year ago

Make sure you are eligible to access gpt-4, otherwise you'll need to change the modelName in makechain.ts to gpt-3.5-turbo.

I guess yes, already upgrated my plan to gptPLUS

Gptplus account will not let you access gpt-4 api, you have to add yourself to the waiting list and wait to get exclusive gpt-4 api via email. Gpt4 api key is not the same as gpt3.5's.

billyjingxuan commented 1 year ago

Did you solve the problem? I'm facing the same issue.

dosubot[bot] commented 1 year ago

Hi, @LvisWang! 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 the issue titled "Network Error" as stale.

From what I understand, you encountered a network error when trying to ask questions after successfully ingesting data and running the localhost. In the comments, anitman suggested checking eligibility for accessing gpt-4 and changing the modelName in makechain.ts. You also mentioned using 'export' to set environment variables in the .env file. It seems that the issue has been resolved based on these suggestions.

However, it's not explicitly mentioned if the issue was resolved for billyjingxuan. If you could confirm whether the issue is still relevant to the latest version of the gpt4-pdf-chatbot-langchain repository, please let us know by commenting on the issue. If the issue is no longer relevant, feel free to close it yourself. Otherwise, the issue will be automatically closed in 7 days.

Thank you for your understanding and contribution to the gpt4-pdf-chatbot-langchain project! Let us know if you have any further questions or concerns.