ItzCrazyKns / Perplexica

Perplexica is an AI-powered search engine. It is an Open source alternative to Perplexity AI
MIT License
16.45k stars 1.54k forks source link

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

Open kenny1224 opened 5 months ago

kenny1224 commented 5 months ago

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.

mystogan99 commented 5 months ago

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

cmagorian commented 5 months ago

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 commented 5 months ago

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 commented 5 months ago

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 commented 5 months ago

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 commented 5 months ago

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 commented 5 months ago

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 commented 4 months ago

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

ItzCrazyKns commented 4 months ago

@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 commented 4 months ago

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 commented 3 months ago

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 commented 3 months ago

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 commented 2 months ago

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 commented 2 months ago

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

image

ItzCrazyKns commented 2 months ago

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