From f8cabfad6bd7a800aad1ffdda16af724f5486463 Mon Sep 17 00:00:00 2001 From: Sam Date: Wed, 21 Jun 2023 20:07:55 +1000 Subject: [PATCH] FEATURE: Try to hone search so it reduces search terms in subsequent rounds (#95) Teach via system message that you can reduce search terms to get more results --- lib/modules/ai_bot/commands/search_command.rb | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/lib/modules/ai_bot/commands/search_command.rb b/lib/modules/ai_bot/commands/search_command.rb index 09ceb92f..32371f40 100644 --- a/lib/modules/ai_bot/commands/search_command.rb +++ b/lib/modules/ai_bot/commands/search_command.rb @@ -73,7 +73,11 @@ module DiscourseAi::AiBot::Commands end def custom_system_message - "You were trained on OLD data, lean on search to get up to date information about this forum" + <<~TEXT + You were trained on OLD data, lean on search to get up to date information about this forum + When searching try to SIMPLIFY search terms + Discourse search joins all terms with AND. Reduce and simplify terms to find more results. + TEXT end end