mayooear / gpt4-pdf-chatbot-langchain

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

npm run dev #231

Closed superali10 closed 11 months ago

superali10 commented 1 year ago

when I run the above command I get

gpt4-langchain-pdf-chatbot@0.1.0 dev next dev

ready - started server on 0.0.0.0:3000, url: http://localhost:3000 info - Loaded env from /home/superali/gpt4-pdf-chatbot-langchain/.env event - compiled client and server successfully in 861 ms (173 modules) wait - compiling... event - compiled successfully in 67 ms (139 modules)

but nothing else happens I get the same issue on Windows and Linux I assume it is my setup but there are no error messages

Beskaar commented 1 year ago

url: http://localhost:3000 ?

superali10 commented 1 year ago

thanks for the heads up the pdf files, I've tried, ingest OK and the browser redirects to localhost:3000 OK but the touchdown page in the browser is Chat With Your Legal Docs any queries I submit get the error Request failed with status code 404 any help is appreciated

superali10 commented 1 year ago

managed to figure it. thanks.

rashidy14 commented 1 year ago

managed to figure it. thanks.

I have the same Issue. How did you manage to do it?

RazeBerry commented 1 year ago

managed to figure it. thanks.

I have the same Issue. How did you manage to do it?

You literally put " localhost:3000" into the browser

pinballelectronica commented 1 year ago

I think he's saying he's getting 404's after asking a question in the window.

superali10 commented 1 year ago

put " localhost:3000" into the browser or click the link in your terminal

and

I had to change the modelname in makechain.ts to

modelName: 'gpt-3.5-turbo', //change this to gpt-4 if you have access

I'm not signed up to the gpt-4 api.

dosubot[bot] commented 11 months ago

Hi, @superali10! 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 reported an issue where running the command "npm run dev" resulted in the server starting successfully, but nothing else happened. You mentioned experiencing this issue on both Windows and Linux, and there were no error messages indicating the cause. In the comments, Beskaar suggested checking the URL, and you mentioned getting a 404 error after submitting queries. However, you later figured out that the issue was caused by a wrong model name in makechain.ts. After changing the model name, the server started successfully and the browser should be directed to "localhost:3000".

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 this issue. Otherwise, feel free to close the issue yourself, or it will be automatically closed in 7 days.

Thank you for your contribution, and please don't hesitate to reach out if you have any further questions or concerns!