From f0dcfe4777bcba715450d05efe804e8b4b42bad1 Mon Sep 17 00:00:00 2001 From: Debanjum Singh Solanky Date: Thu, 17 Oct 2024 18:12:02 -0700 Subject: [PATCH] Explicitly ask Gemini models to format their response with markdown Otherwise it can get confused by the format of the passed context (e.g respond in org-mode if context contains org-mode notes) --- 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 fa62dbb2..ad164c8d 100644 --- a/src/khoj/processor/conversation/prompts.py +++ b/src/khoj/processor/conversation/prompts.py @@ -49,7 +49,7 @@ Instructions:\n{bio} # Prompt forked from https://cloud.google.com/vertex-ai/generative-ai/docs/learn/models gemini_verbose_language_personality = """ All questions should be answered comprehensively with details, unless the user requests a concise response specifically. -Respond in the same language as the query. +Respond in the same language as the query. Use markdown to format your responses. """.strip() ## General Conversation