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
This directory contains YAML schema files for custom data extraction. Each YAML file defines both the extraction schema and the system prompt in a single, organized format.
4
+
5
+
## Schema Structure
6
+
7
+
Each YAML schema file must contain the following required fields:
8
+
9
+
```yaml
10
+
# Schema metadata
11
+
name: "Schema Name"
12
+
description: "Brief description of what this schema extracts"
13
+
14
+
# System prompt for the LLM
15
+
system_prompt: |
16
+
Detailed instructions for the LLM on how to extract data.
17
+
This can be multiple lines and should provide clear guidance
18
+
on what information to look for and how to handle edge cases.
19
+
20
+
# JSON Schema definition
21
+
schema:
22
+
type: object
23
+
properties:
24
+
field_name:
25
+
type: string
26
+
description: "Description of this field"
27
+
# Add more properties as needed
28
+
required: ["field_name"]
29
+
additionalProperties: false
30
+
```
31
+
32
+
## Available Commands
33
+
34
+
### List Available Custom Schemas
35
+
```bash
36
+
structured-output list-schemas
37
+
```
38
+
39
+
### Extract Using Custom YAML Schema
40
+
```bash
41
+
structured-output extract-custom SCHEMA_NAME --text "Your text here"
0 commit comments