-
-
Notifications
You must be signed in to change notification settings - Fork 365
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
llm schemas family of commands, similar to llm templates #781
Comments
Originally I had planned to have these as schema files saved on dish, for consistency with how On further thought though, the way the Lines 224 to 227 in f5c2cfb
Maybe add a new unique but nullable |
As a reminder, the template commands are:
|
I'm not going to have edit because schemas are immutable once stored. In the future this command will grow aliases support but I'm going to skip that for the initial release. |
Built a prototype:
[
{
"id": "b39546ea507992de3de97f7db00c5e16",
"content": "{\"$schema\":\"http://json-schema.org/draft-07/schema#\",\"type\":\"object\",\"properties\":{\"dogs\":{\"type\":\"array\",\"items\":{\"type\":\"object\",\"properties\":{\"name\":{\"type\":\"string\",\"minLength\":1},\"bio\":{\"type\":\"string\",\"minLength\":1}},\"required\":[\"name\",\"bio\"],\"additionalProperties\":false}}},\"required\":[\"dogs\"],\"additionalProperties\":false}"
},
{
"id": "4d1da05ad315ee72537b4f2c1f2361c4",
"content": "{\"type\":\"object\",\"properties\":{\"dogs\":{\"type\":\"array\",\"items\":{\"type\":\"object\",\"properties\":{\"name\":{\"type\":\"string\"},\"bio\":{\"type\":\"string\"}}}}}}"
},
{
"id": "1291b39a7c4c12ab8cbc22de576d6613",
"content": "{\"type\":\"object\",\"properties\":{\"ui_elements\":{\"type\":\"array\",\"items\":{\"type\":\"object\",\"properties\":{\"name\":{\"type\":\"string\"},\"detailed_description\":{\"type\":\"string\"}}}}}}"
},
{
"id": "dc0de7a644d7cf3b6a43fedc34b0354d",
"content": "{\"type\":\"object\",\"properties\":{\"properties\":{\"name\":{\"type\":\"string\"},\"bio\":{\"type\":\"string\"}}}}"
},
{
"id": "ac43af6c272634e387d2b8116dbc6ab9",
"content": "{\"type\":\"object\",\"properties\":{\"name\":{\"type\":\"string\"},\"bio\":{\"type\":\"string\"}}}"
},
{
"id": "5e49eb108d7f9951a350ea63ce87ec24",
"content": "{\"type\":\"object\",\"properties\":{\"segments\":{\"type\":\"array\",\"items\":{\"type\":\"object\",\"properties\":{\"speaker_name\":{\"type\":\"string\"},\"spoken_text\":{\"type\":\"string\"},\"timestamp_hh_mm_ss\":{\"type\":\"string\"}}}}}}"
},
{
"id": "b888a05042c403ae5d22e2f099f221b7",
"content": "{\"type\":\"object\",\"properties\":{\"segments\":{\"type\":\"array\",\"items\":{\"type\":\"object\",\"properties\":{\"speaker_name\":{\"type\":\"string\"},\"spoken_text\":{\"type\":\"string\"},\"timestamp_mm_ss\":{\"type\":\"string\"}},\"required\":[\"speaker_name\",\"spoken_text\",\"timestamp_mm_ss\"]}}}}"
},
{
"id": "9efb6fb9edc49fdd48bdbccdf34b1ecc",
"content": "{\"type\":\"object\",\"properties\":{\"segments\":{\"type\":\"array\",\"items\":{\"type\":\"object\",\"properties\":{\"speaker_name\":{\"type\":\"string\"},\"spoken_text\":{\"type\":\"string\"},\"timestamp_mm_ss\":{\"type\":\"string\"}}}}}}"
},
{
"id": "a75b7b3f00e065247e6e364304338aa5",
"content": "{\"$schema\":\"http://json-schema.org/draft-07/schema#\",\"type\":\"object\",\"properties\":{\"dogs\":{\"type\":\"array\",\"items\":{\"type\":\"object\",\"properties\":{\"name\":{\"type\":\"string\",\"minLength\":1},\"ten_word_bio\":{\"type\":\"string\",\"minLength\":1}},\"required\":[\"name\",\"ten_word_bio\"],\"additionalProperties\":false}}},\"required\":[\"dogs\"],\"additionalProperties\":false}"
},
{
"id": "1a89f66bee077d318fa38e99c6fb7abe",
"content": "{\"properties\":{\"bio\":{\"type\":\"string\"},\"name\":{\"type\":\"string\"}},\"type\":\"object\"}"
},
{
"id": "520f7aabb121afd14d0c6c237b39ba2d",
"content": "{\"properties\":{\"dogs\":{\"items\":{\"properties\":{\"bio\":{\"type\":\"string\"},\"name\":{\"type\":\"string\"}},\"type\":\"object\"},\"type\":\"array\"}},\"type\":\"object\"}"
}
]
|
I got Claude to build me a JSON schema summary function: https://claude.ai/share/f794bdc8-94ca-4d33-94f6-3d59cca58ebb Looks like this:
|
I'm going to add a count of responses for each schema, and a most recently used. |
Output currently looks like this, not beautiful but good enough for the moment:
And you can search: llm schemas list -q ten - id: a75b7b3f00e065247e6e364304338aa5
summary: |
{dogs: [{name, ten_word_bio}]}
usage: |
3 times, most recently 2025-02-27T15:02:14.520661+00:00 |
|
Idea: add Better would be an option on |
For viewing and managing saved schemas.
The text was updated successfully, but these errors were encountered: