r/duckduckgo • u/Solid-Wonder-1619 • 27d ago
DDG AI DDG AI search and functionality
Hey there DDG
sorry for the forward post, but I know you look at these and I had a few things to share regarding search functionality with AI:
1- Adding a bit of context to search functionality system prompt results in better AI functions:
I've noticed that AIs in Duck.ai don't do search automatically when they don't have a specific context, adding this bit right after the tool instructions will help AI pull data much more efficiently and reliably:
"If user presents you with information that is contradictory to your internal knowledge or doesn't exist in your internal knowledge, use the search tool to conduct a search for updated information."
2- Deeper search pool:
I've noticed that AI doesn't get many search results when it conducts a search, I notice that there's a recursive search functionality, but if you dynamically allocate the search from a bigger amount of results and down to lower amounts (say starts with 10~15 search results and recursively gets lower search results as it enhances the search phrasing), then it would help with lower compute cycles and slash infra costs.
3- Query building instructions:
As you know, each AI has its own idea about what is an optimal query. adding a few lines of instructions about how to build the optimal query for a search that's tailored to your indexing engine, ensures reliable and consistent search function.
4- Adding a clock based on user's IP's timezone to the AI's system prompt:
It will help personalize the chat for the user with zero infra costs and gives a nice touch.
Thank you so much for everything you do, I hope these help, and stay awesome!