Update README.md
Browse files
README.md
CHANGED
@@ -1,3 +1,82 @@
|
|
1 |
-
---
|
2 |
-
license: apache-2.0
|
3 |
-
---
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
---
|
2 |
+
license: apache-2.0
|
3 |
+
---
|
4 |
+
Apologies for the oversight! Let's adjust the README to match the actual prompt template, which does not use the instruction field in the input.
|
5 |
+
|
6 |
+
---
|
7 |
+
|
8 |
+
# Flowchart Generation Model
|
9 |
+
|
10 |
+
## Overview
|
11 |
+
|
12 |
+
This model generates Mermaid diagrams from a sequence of steps provided in the input. It processes the input text and automatically outputs a flowchart that visually represents the steps. The model strictly follows a defined template and does not require any additional prompt engineering.
|
13 |
+
|
14 |
+
## How It Works
|
15 |
+
|
16 |
+
The model takes a set of sequential instructions as input and produces a flowchart diagram in Mermaid format.
|
17 |
+
|
18 |
+
### Input Format
|
19 |
+
|
20 |
+
The input is a sequence of steps written as plain text:
|
21 |
+
|
22 |
+
```text
|
23 |
+
Step 1: Do something.
|
24 |
+
Step 2: Do the next thing.
|
25 |
+
Step 3: Complete the task.
|
26 |
+
```
|
27 |
+
|
28 |
+
### Output Format
|
29 |
+
|
30 |
+
The output is a Mermaid diagram:
|
31 |
+
|
32 |
+
```mermaid
|
33 |
+
graph TD;
|
34 |
+
Step1 --> Step2;
|
35 |
+
Step2 --> Step3;
|
36 |
+
...
|
37 |
+
```
|
38 |
+
|
39 |
+
### Example
|
40 |
+
|
41 |
+
**Input:**
|
42 |
+
|
43 |
+
```text
|
44 |
+
Fill the coffee maker with water.
|
45 |
+
Add coffee grounds to the filter.
|
46 |
+
Turn on the coffee maker.
|
47 |
+
Wait for brewing to finish.
|
48 |
+
Pour the coffee.
|
49 |
+
Optional: Add sugar or milk.
|
50 |
+
Enjoy your coffee.
|
51 |
+
```
|
52 |
+
|
53 |
+
**Output:**
|
54 |
+
|
55 |
+
```mermaid
|
56 |
+
graph TD;
|
57 |
+
A[Fill Coffee Maker] --> B[Add Water];
|
58 |
+
B --> C[Add Coffee Grounds];
|
59 |
+
C --> D[Turn On Coffee Maker];
|
60 |
+
D --> E[Wait for Brewing];
|
61 |
+
E --> F[Pour Coffee];
|
62 |
+
F --> G{Add Sugar & Milk?};
|
63 |
+
G--Yes-->H[Mix In];
|
64 |
+
H-->I[Enjoy Coffee];
|
65 |
+
G--No-->I;
|
66 |
+
```
|
67 |
+
|
68 |
+
## Features
|
69 |
+
|
70 |
+
- Transforms plain text instructions into Mermaid flowcharts.
|
71 |
+
- Follows a consistent input-output template.
|
72 |
+
- Simple and direct without requiring additional prompt adjustments.
|
73 |
+
|
74 |
+
## Use Cases
|
75 |
+
|
76 |
+
- Visualizing step-by-step processes.
|
77 |
+
- Converting written instructions into clear, easy-to-read diagrams.
|
78 |
+
- Ideal for documentation, workflows, and tutorials.
|
79 |
+
|
80 |
+
---
|
81 |
+
|
82 |
+
This version aligns with your actual input structure and eliminates any confusion about fields not used in the prompt template.
|