Skip to content

Commit

Permalink
Docs fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
ddebowczyk committed Jun 5, 2024
1 parent 62b6dc3 commit 963733a
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 3 deletions.
5 changes: 5 additions & 0 deletions docs/data_model.md
Original file line number Diff line number Diff line change
Expand Up @@ -204,3 +204,8 @@ var_dump($person);
// ]
// }
```


## Dynamic data schemas with `Structure` class

See [Structures](structures.md) for more details on how to work with dynamic data schemas.
9 changes: 6 additions & 3 deletions docs/structures.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
# Structures

Structures allow dynamically define the shape of data to be extracted
by LLM. Classes may not be the best fit for this purpose, as declaring
or modifying them at a runtime is not possible.
If you want to define the shape of data during runtime, you can use `Structure` class.

Structures allow you to define and modify arbitrary shape of data to be extracted by
LLM. Classes may not be the best fit for this purpose, as declaring or changing them
during execution is not possible.

With structures, you can define custom data shapes dynamically, for example based
on the user input or context of the processing, to specify the information you need
Expand Down Expand Up @@ -159,6 +161,7 @@ dump($person->toArray());
?>
```
## Working with `Structure` objects
Structure object properties can be accessed using `get()` and `set()` methods,
Expand Down

0 comments on commit 963733a

Please sign in to comment.