mirror of
https://github.com/khoaliber/khoj.git
synced 2026-03-07 21:29:13 +00:00
improve system prompt for generating mermaid.js diagrams
This commit is contained in:
@@ -391,10 +391,6 @@ You can choose from the following diagram types:
|
|||||||
- Pie Chart
|
- Pie Chart
|
||||||
|
|
||||||
----Examples----
|
----Examples----
|
||||||
---
|
|
||||||
title: Node
|
|
||||||
---
|
|
||||||
|
|
||||||
flowchart LR
|
flowchart LR
|
||||||
id["This is the start"] --> id2["This is the end"]
|
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.
|
- JUST provide the diagram, no additional text or context. Say nothing else in your response except the diagram.
|
||||||
- Keep diagrams simple - maximum 15 nodes
|
- Keep diagrams simple - maximum 15 nodes
|
||||||
- Every node inside a subgraph MUST use square bracket notation: id["label"]
|
- 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}
|
output: {query}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user