-
Notifications
You must be signed in to change notification settings - Fork 22
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
souzatharsis
committed
Nov 25, 2024
1 parent
f607f76
commit 2c4f74c
Showing
17 changed files
with
3,286 additions
and
84 deletions.
There are no files selected for viewing
Binary file not shown.
Binary file not shown.
Binary file modified
BIN
+15.1 KB
(120%)
tamingllms/_build/.doctrees/notebooks/structured_output.doctree
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
109 changes: 109 additions & 0 deletions
109
tamingllms/_build/html/_static/structured_output/json.d2
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,109 @@ | ||
schema: { | ||
shape: rectangle | ||
style.stroke: "#E8DCCA" | ||
style.fill: "#FFFAF0" | ||
label: |md | ||
```json | ||
{ | ||
"type": "object", | ||
"properties": { | ||
"name": { | ||
"type": "string" | ||
}, | ||
"level": { | ||
"type": "integer" | ||
}, | ||
"skill": { | ||
"type": "string", | ||
"enum": [ | ||
"Python", | ||
"Java", | ||
"JavaScript", | ||
"Rust" | ||
] | ||
} | ||
}, | ||
"required": [ | ||
"name", | ||
"level", | ||
"skill" | ||
] | ||
} | ||
``` | ||
| | ||
} | ||
|
||
llm: Large\nLanguage\nModels { | ||
shape: rectangle | ||
style.fill: "#E6EEF8" | ||
style.stroke: "#B8D1F3" | ||
} | ||
|
||
outputs: { | ||
shape: rectangle | ||
style.stroke: "#E8DCCA" | ||
style.fill: "#FFFAF0" | ||
|
||
json1: { | ||
label: |md | ||
```json | ||
{ | ||
"name": "Alice", | ||
"level": 5, | ||
"skill": "Python" | ||
} | ||
``` | ||
| | ||
} | ||
|
||
json2: { | ||
label: |md | ||
```json | ||
{ | ||
"name": "Bob", | ||
"level": 3, | ||
"skill": "Java" | ||
} | ||
``` | ||
| | ||
} | ||
|
||
json3: { | ||
label: |md | ||
```json | ||
{ | ||
"name": "Carol", | ||
"level": 4, | ||
"skill": "Rust" | ||
} | ||
``` | ||
| | ||
} | ||
} | ||
|
||
# Labels | ||
schema_label: JSON Schema { | ||
style.font-size: 16 | ||
} | ||
|
||
output_label: Generated JSONs { | ||
style.font-size: 16 | ||
} | ||
|
||
# Connections | ||
schema -> llm: + { | ||
style.stroke: "#8B4513" | ||
style.stroke-width: 2 | ||
} | ||
|
||
llm -> outputs: Constrained\nGeneration { | ||
style.stroke: "#D35400" | ||
style.stroke-width: 2 | ||
} | ||
|
||
# Label connections | ||
schema_label -> schema | ||
output_label -> outputs | ||
|
||
# Layout | ||
direction: right |
Oops, something went wrong.