mirror of
https://github.com/Hopiu/llm.git
synced 2026-03-27 01:40:24 +00:00
Basic docs for llm schema list, closes #781
This commit is contained in:
parent
c126b5d04c
commit
edc9e2dd7e
1 changed files with 13 additions and 0 deletions
|
|
@ -159,6 +159,7 @@ You can also save the JSON schema to a file and reference the filename using `--
|
|||
```bash
|
||||
llm --schema dogs.schema.json 'invent two dogs'
|
||||
```
|
||||
|
||||
Or save your schema {ref}`to a template <prompt-templates>` like this:
|
||||
|
||||
```bash
|
||||
|
|
@ -166,6 +167,18 @@ llm --schema dogs.schema.json --save dogs
|
|||
# Then to use it:
|
||||
llm -t dogs 'invent two dogs'
|
||||
```
|
||||
Schemas are logged to your database. You can view stored schemas with:
|
||||
```bash
|
||||
llm schemas
|
||||
```
|
||||
And add `-q` one or more times to search:
|
||||
```bash
|
||||
llm schemas -q dogs -q bio
|
||||
```
|
||||
You can then use a stored schema ID as an argument to `--schema`:
|
||||
```bash
|
||||
llm --schema a75b7b3f00e065247e6e364304338aa5 'five dogs
|
||||
```
|
||||
|
||||
Be warned that different models may support different dialects of the JSON schema specification.
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue