doc: add prompt composition observation
This commit is contained in:
parent
379fa33935
commit
6ab2bf7011
2
core
2
core
|
|
@ -1 +1 @@
|
|||
Subproject commit ccbb5168b79c1b349159bc4a3c6e581d33056466
|
||||
Subproject commit a7cc80af75b33c555e7f0f1e552483303c188ccd
|
||||
|
|
@ -31,3 +31,12 @@
|
|||
```
|
||||
|
||||
`u/optimize` generates and judges candidate prompts, emitting the best to stdout; `b/q` acts on it. Any tool that reads stdin and writes stdout is already a pipeline stage.
|
||||
|
||||
**Prompt composition** — `s/bfg` outputs can be nested to arbitrary depth using shell command substitution. The inner prompt completes, its output becomes part of the outer prompt:
|
||||
|
||||
```
|
||||
; echo 'translate to japanese: '`echo 'say hello' | s/bfg` | s/bfg
|
||||
こんにちは!👋
|
||||
```
|
||||
|
||||
This enables prompt pipelines where each stage transforms, filters, or augments the previous stage's output — all with standard shell syntax.
|
||||
|
|
|
|||
Loading…
Reference in New Issue