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
This commit is contained in:
Sam 2023-06-21 20:07:55 +10:00 committed by GitHub
parent a028309cbd
commit f8cabfad6b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 5 additions and 1 deletions

View File

@ -73,7 +73,11 @@ module DiscourseAi::AiBot::Commands
end end
def custom_system_message 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
end end