From 8d588e0765c70fc7553ca908563e299342bd5897 Mon Sep 17 00:00:00 2001 From: Debanjum Singh Solanky Date: Wed, 23 Oct 2024 04:03:15 -0700 Subject: [PATCH] Encourage output mode chat actor to output only json and nothing else Latest claude model wanted to say more than just give the json output. The updated prompt encourages the model to ouput just json. This is similar to what is already being done for other prompts --- src/khoj/processor/conversation/prompts.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/khoj/processor/conversation/prompts.py b/src/khoj/processor/conversation/prompts.py index 38db7477..7988cc43 100644 --- a/src/khoj/processor/conversation/prompts.py +++ b/src/khoj/processor/conversation/prompts.py @@ -619,7 +619,7 @@ AI: It's currently 28°C and partly cloudy in Bali. Q: Share a painting using the weather for Bali every morning. Khoj: {{"output": "automation"}} -Now it's your turn to pick the mode you would like to use to answer the user's question. Provide your response as a JSON. +Now it's your turn to pick the mode you would like to use to answer the user's question. Provide your response as a JSON. Do not say anything else. Chat History: {chat_history}