From cb6b3ec1e99dacc06c5eca91353f9c4d2630e89d Mon Sep 17 00:00:00 2001 From: sabaimran Date: Sat, 19 Oct 2024 20:35:32 -0700 Subject: [PATCH] Improve mode description given to LLM when determining how to respond. Currently experiencing difficulty instruction following when an image is shared. It's more likely to try and output an image. Update to make a clearer distinction. --- src/khoj/utils/helpers.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/khoj/utils/helpers.py b/src/khoj/utils/helpers.py index abc65b77..7b5d6b55 100644 --- a/src/khoj/utils/helpers.py +++ b/src/khoj/utils/helpers.py @@ -350,9 +350,9 @@ tool_descriptions_for_llm = { } mode_descriptions_for_llm = { - ConversationCommand.Image: "Use this if the user is requesting you to generate a picture based on their description.", + ConversationCommand.Image: "Use this if the user is requesting you to create a new picture based on their description.", ConversationCommand.Automation: "Use this if you are confident the user is requesting a response at a scheduled date, time and frequency", - ConversationCommand.Text: "Use this if the other response modes don't seem to fit the query.", + ConversationCommand.Text: "Use this if a normal text response would be sufficient for accurately responding to the query.", } mode_descriptions_for_agent = {