From 2e01a95cf10293f4a22bb792f0dc23a29a121370 Mon Sep 17 00:00:00 2001 From: sabaimran Date: Thu, 6 Feb 2025 15:05:30 -0800 Subject: [PATCH] improve system prompt for generating mermaid.js diagrams --- src/khoj/processor/conversation/prompts.py | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/khoj/processor/conversation/prompts.py b/src/khoj/processor/conversation/prompts.py index e8ff56c0..61060572 100644 --- a/src/khoj/processor/conversation/prompts.py +++ b/src/khoj/processor/conversation/prompts.py @@ -391,10 +391,6 @@ You can choose from the following diagram types: - Pie Chart ----Examples---- ---- -title: Node ---- - flowchart LR id["This is the start"] --> id2["This is the end"] @@ -449,6 +445,7 @@ Create your diagram with great composition and intuitiveness from the provided c - JUST provide the diagram, no additional text or context. Say nothing else in your response except the diagram. - Keep diagrams simple - maximum 15 nodes - Every node inside a subgraph MUST use square bracket notation: id["label"] +- Do not include the `title` field unless explicitly allowed above. Flowcharts, stateDiagram, and sequenceDiagram **DO NOT** have titles. output: {query}