n4ze3m / page-assist

Use your locally running AI models to assist you in your web browsing
https://chromewebstore.google.com/detail/page-assist-a-web-ui-for/jfgfiigpkhlkbnfnbobbkinehhfdhndo
MIT License
1.58k stars 150 forks source link

Search: questions and ideas for enhancement #198

Open oppenheimer- opened 1 month ago

oppenheimer- commented 1 month ago

First: Thanks for this outstanding tool! I love the UI and general ease of use 💪

Doing web search is accomplished by sending the whole user prompt to search engines in the q parameter. Other popular tools like perplexity or morphic augment the user query to enhance the search terms. That might greatly improve quality. Providing multiple (e.g. 3) multi angled search queries could really enhance the experience.

I got a question in this context: Is the content of the resulting search result fed into the prompt for the LLM or the actual contents of the found sources?

Another thing that caught my attention are the follow up questions. In my current build 1.2.3 there no follow up questions visible.

n4ze3m commented 1 month ago

Doing web search is accomplished by sending the whole user prompt to search engines in the q parameter. Other popular tools like perplexity or morphic augment the user query to enhance the search terms. That might greatly improve quality.

Hey, thanks for the suggestions! Currently, the LLM generates a search query based on follow-up questions. I will change the flow so it generates a polished search query from the first message.

I got a question in this context: Is the content of the resulting search result fed into the prompt for the LLM or the actual contents of the found sources?

Currently, all search results are appended directly to the prompt. You can turn off the 'Perform Simple Internet Search' option, and it will perform RAG on the search results instead.