Perplexica icon indicating copy to clipboard operation
Perplexica copied to clipboard

[Bug] Web search source retrieve

Open vitspvt opened this issue 9 months ago • 5 comments

Environment: Docker deploy

Test method: add code to file src\lib\searxng.ts add --> console.log('Request URL:', url.toString()); before: const res = await axios.get(url.toString());

Example case: Search: Samsung S25

In first time it always No Sources --> Example Domain and Request URL is not log to me (May be not search anything)

Image

but if you do it again with same query in same page, it will get correct web search resources and log Request URL is http://searxng:8080/search?format=json&q=Samsung+S25&language=all&engines=

Image

I think this is bug.

vitspvt avatar Feb 10 '25 08:02 vitspvt

If you're using a small model it fails to understand the prompt and gives random links for searching, please use a slightly bigger/better model.

ItzCrazyKns avatar Feb 15 '25 07:02 ItzCrazyKns

I used a locally deployed model deepseek-r1:14b and encountered the same issue: ① 'sources' appeared for the first time (with search URLs), but did not appear the second time. Moreover, when it appeared, the search results were completely unrelated to what I requested (randomly appearing). ② The second time, 'sources' (without any search URLs) did not appear

zhudemiao avatar Feb 17 '25 10:02 zhudemiao

Seeing the same thing. It doesn´t seem to pull any searxng results. Has Searxng changed anything? (Running llama3.2, or is that too small?)

Twilek-de avatar Mar 09 '25 09:03 Twilek-de

Ditto. It seems to be less of a bug and more of a glitch. The first answer in a conversation thread comes back with only cited sources as if it's an academic paper and not Markdown sources with hyperlinks.

Once the second and third questions are going it seems to come back with the Searxng results.

mpstaton avatar Jun 08 '25 11:06 mpstaton

Smaller models tend to not understand the prompt correctly and start messing things up. Please try using a bigger model. A lot of users are facing problems related to this, I can change how search is handled and use function calling but that would limit the models that can be used within the app (to models that support tool/function calling).

ItzCrazyKns avatar Jun 24 '25 15:06 ItzCrazyKns