Prompt to search query
Hello humans… and bots.
I have a question regarding getting LLM to spit out advanced search queries for search engines.
Prompt example: I want to search the subreddit LLM devs and get all the threads where Hugging Face is mentioned. The threads should be created from 2022 and forward.
Output: site:reddit.com/r/LLMdevs “hugging face” after:2021-12-31
So this seems like a simple example, but C-GPT models get it wrong constantly for some reason.
Prompt example 2: I am interested to know what the Samsung Frame 55 costs in UK.
Output 2: “Samsung” AND “the frame” AND “55” AND (“price” OR “buy” OR “shipping) AND -review
As you can see the output I expect can be pretty advanced. I as a human need to understand what to expect out of the Google result.
- What unique words may a e-commerce contain?
- How ambiguous should the keywords be
- When to use exact match (quotes)
- What result may come up that is not e-commerce websites, how can I filter them
As I said the result from C-GPT is not very impressive, it ls either to narrow or to broad.
Any suggestions?
Posted Mar 8, 2025, 12:39 PM UTC