Skip to content

Commit

Permalink
improve system prompt for generating mermaid.js diagrams
Browse files Browse the repository at this point in the history
  • Loading branch information
sabaimran committed Feb 6, 2025
1 parent a2af6be commit 2e01a95
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions src/khoj/processor/conversation/prompts.py
Original file line number Diff line number Diff line change
Expand Up @@ -391,10 +391,6 @@
- Pie Chart
----Examples----
---
title: Node
---
flowchart LR
id["This is the start"] --> id2["This is the end"]
Expand Down Expand Up @@ -449,6 +445,7 @@
- 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}
Expand Down

0 comments on commit 2e01a95

Please sign in to comment.