Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

There has been no reply for more than 5 minutes after raising the question. #198

Open
kenny1224 opened this issue Jun 16, 2024 · 15 comments
Labels
bug Something isn't working

Comments

@kenny1224
Copy link

Describe the bug
After raising a question, the screen keeps showing "answer" in circles for more than 5 minutes without any reply.

截圖 2024-06-16 下午5 32 23 **To Reproduce** Steps to reproduce the behavior:
  1. Go to 'http://localhost:3000/'
  2. Click on 'Ask anything'

Screenshots
If applicable, add screenshots to help explain your problem.

@kenny1224 kenny1224 added the bug Something isn't working label Jun 16, 2024
@mystogan99
Copy link

Me too. I do eventually get a reply but it's extremely slow.

@cmagorian
Copy link

Same issue here, not sure how many requests are being made against the backend, but it seems that its looping thru the same query over and over.

I see several requests for embeddings and chat completions

@Trupal07
Copy link

Trupal07 commented Jun 18, 2024

Screenshot (102)
Screenshot (103)
Screenshot (104)
i did setup correctly but after running the project when you search something ex- who is elon musk, ai keeps on searching answer but never give answer to question and also search and libray is not working error- Failed to load resource: the server responded with a status of 404 (Not Found)Understand this error

@ItzCrazyKns
Copy link
Owner

Library and discover features are under development. You need to provide more context (like the logs from the backend) for me to help you. Did you chose the models correctly? (from the settings menu)

@Ed-cred
Copy link

Ed-cred commented Jun 25, 2024

Also you did not explain your setup, but if you are using Ollama please note that the speed of the results is dependant on your gpu performance that ollama uses. Also note that if you are running ollama in a docker container that container also needs to be properly configured for gpu usage.

@bomsn
Copy link

bomsn commented Jun 29, 2024

Same issue, I did manual setup and using OpenAI API. I can see the requests has been sent in my OpenAI activity dashboard, but I'm not getting any results.

@ItzCrazyKns
Copy link
Owner

Same issue, I did manual setup and using OpenAI API. I can see the requests has been sent in my OpenAI activity dashboard, but I'm not getting any results.

What are the logs from the browser console and the backend?

@bomsn
Copy link

bomsn commented Jun 30, 2024

@ItzCrazyKns, turned out to be "searxng". I'm surprised that it's not mentioned in Readme.md considering it's a required dependency.

@ItzCrazyKns
Copy link
Owner

@ItzCrazyKns, turned out to be "searxng". I'm surprised that it's not mentioned in Readme.md considering it's a required dependency.

I added it in the manual installation steps today.

@overcuriousity
Copy link

I'd like to add that you dont need to install searxng if you dont want to self-host. Just choose any of the instances listed on searx.space.

@RobotRoss
Copy link

I've also got this issue. Doesn't seem to be a searxNG problem.

Backend only spits out:
error: Unhandled Rejection at: [object Promise], reason: TypeError: Invalid URL

@ItzCrazyKns
Copy link
Owner

I've also got this issue. Doesn't seem to be a searxNG problem.

Backend only spits out: error: Unhandled Rejection at: [object Promise], reason: TypeError: Invalid URL

Seems to be related to custom OpenAI provider or SearXNG, you need to do a little bit of debugging

@chartmann1590
Copy link

i get the same issue. here are my logs

yarn run v1.22.22
$ npm run db:push && node dist/app.js
> perplexica-backend@1.9.0-rc2 db:push
> drizzle-kit push sqlite
drizzle-kit: v0.22.7
drizzle-orm: v0.31.2
No config path provided, using default path
Reading config file '/home/perplexica/drizzle.config.ts'
[⣷] Pulling schema from database...
[✓] Pulling schema from database...
[i] No changes detected
info: WebSocket server started on port 3001
(node:58) [DEP0040] DeprecationWarning: The `punycode` module is deprecated. Please use a userland alternative instead.
(Use `node --trace-deprecation ...` to show where the warning was created)
info: Server is running on port 3001
error: undefined
error: undefined
error: Unhandled Rejection at: [object Promise], reason: TypeError: fetch failed
error: Unhandled Rejection at: [object Promise], reason: TypeError: fetch failed

@chartmann1590
Copy link

I do get search results, just no text form my ollama

image

@ItzCrazyKns
Copy link
Owner

i get the same issue. here are my logs

yarn run v1.22.22
$ npm run db:push && node dist/app.js
> perplexica-backend@1.9.0-rc2 db:push
> drizzle-kit push sqlite
drizzle-kit: v0.22.7
drizzle-orm: v0.31.2
No config path provided, using default path
Reading config file '/home/perplexica/drizzle.config.ts'
[⣷] Pulling schema from database...
[✓] Pulling schema from database...
[i] No changes detected
info: WebSocket server started on port 3001
(node:58) [DEP0040] DeprecationWarning: The `punycode` module is deprecated. Please use a userland alternative instead.
(Use `node --trace-deprecation ...` to show where the warning was created)
info: Server is running on port 3001
error: undefined
error: undefined
error: Unhandled Rejection at: [object Promise], reason: TypeError: fetch failed
error: Unhandled Rejection at: [object Promise], reason: TypeError: fetch failed

Please re-install Perplexica and build images again using docker compose up -d --build. I recently pushed a commit addressing this issue and it is fixed by the latest commits

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

10 participants