You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: _internal/_template/README.md
+13Lines changed: 13 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -20,6 +20,19 @@ poetry run python example.py # Run the example
20
20
21
21
</details>
22
22
23
+
We follow this procedure to create consistent, high volume content.
24
+
25
+
1. Come up with a short readable slug, e.g. `generate-json` and a title.
26
+
2. Create a folder in the [examples repo](https://github.com/SubstrateLabs/examples), copying this folder
27
+
3. Write the code in TS or Python, and keep it simple. Ideally it’s just a script with no additional dependencies.
28
+
1. Consider creating illustrative variations of the script (e.g. `ComputeText` and `MultiComputeText` - [example](https://github.com/SubstrateLabs/examples/tree/main/basics/generate-text))
29
+
2. Translate your script to the other language. (TODO: automated translation with Substrate)
30
+
3. Make sure both examples run and produce simple polished output.
31
+
4. Simplify the code
32
+
1. Wrap lines (multi-line node declarations are easier to read)
33
+
2. Consider inlining variables
34
+
4. Fill out this README with walkthrough text and generate new image assets.
35
+
23
36

24
37
25
38
To generate text with an LLM, use [`ComputeText`](https://www.substrate.run/nodes#ComputeText).
0 commit comments