Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
souzatharsis committed Nov 27, 2024
1 parent d813fa0 commit 9fa6ef2
Show file tree
Hide file tree
Showing 11 changed files with 8 additions and 9 deletions.
Binary file modified tamingllms/_build/.doctrees/environment.pickle
Binary file not shown.
Binary file modified tamingllms/_build/.doctrees/notebooks/structured_output.doctree
Binary file not shown.
Binary file added tamingllms/_build/html/_images/json.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 0 additions & 1 deletion tamingllms/_build/html/_images/json.svg

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -298,11 +298,11 @@
"JSON mode is a feature provided by most LLM API providers, such as OpenAI, that allows the model to generate output in JSON format. This is particularly useful when you need structured data as a result, such as when parsing the output programmatically or integrating it with other systems that require JSON input. As depicted in {numref}`json-mode`, JSON mode is implemented by instructing theLLM model to use JSON as response format and optionally defining a target schema.\n",
"\n",
"\n",
"```{figure} ../_static/structured_output/json.svg\n",
"```{figure} ../_static/structured_output/json.png\n",
"---\n",
"name: json-mode\n",
"alt: JSON Mode\n",
"scale: 60%\n",
"scale: 50%\n",
"align: center\n",
"---\n",
"Conceptual overview of JSON mode.\n",
Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion tamingllms/_build/html/notebooks/structured_output.html
Original file line number Diff line number Diff line change
Expand Up @@ -447,7 +447,7 @@ <h4><a class="toc-backref" href="#id21" role="doc-backlink"><span class="section
<h4><a class="toc-backref" href="#id22" role="doc-backlink"><span class="section-number">3.3.2.3. </span>JSON Mode</a><a class="headerlink" href="#json-mode" title="Permalink to this heading"></a></h4>
<p>JSON mode is a feature provided by most LLM API providers, such as OpenAI, that allows the model to generate output in JSON format. This is particularly useful when you need structured data as a result, such as when parsing the output programmatically or integrating it with other systems that require JSON input. As depicted in <a class="reference internal" href="#id1"><span class="std std-numref">Fig. 3.1</span></a>, JSON mode is implemented by instructing theLLM model to use JSON as response format and optionally defining a target schema.</p>
<figure class="align-center" id="id1">
<a class="reference internal image-reference" href="../_images/json.svg"><img alt="JSON Mode" height="559" src="../_images/json.svg" width="878" /></a>
<a class="reference internal image-reference" href="../_images/json.png"><img alt="JSON Mode" src="../_images/json.png" style="width: 822.0px; height: 506.5px;" /></a>
<figcaption>
<p><span class="caption-number">Fig. 3.1 </span><span class="caption-text">Conceptual overview of JSON mode.</span><a class="headerlink" href="#id1" title="Permalink to this image"></a></p>
</figcaption>
Expand Down
2 changes: 1 addition & 1 deletion tamingllms/_build/jupyter_execute/markdown/intro.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"cells": [
{
"cell_type": "markdown",
"id": "b344321e",
"id": "5ff22881",
"metadata": {},
"source": [
"(intro)=\n",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -298,11 +298,11 @@
"JSON mode is a feature provided by most LLM API providers, such as OpenAI, that allows the model to generate output in JSON format. This is particularly useful when you need structured data as a result, such as when parsing the output programmatically or integrating it with other systems that require JSON input. As depicted in {numref}`json-mode`, JSON mode is implemented by instructing theLLM model to use JSON as response format and optionally defining a target schema.\n",
"\n",
"\n",
"```{figure} ../_static/structured_output/json.svg\n",
"```{figure} ../_static/structured_output/json.png\n",
"---\n",
"name: json-mode\n",
"alt: JSON Mode\n",
"scale: 60%\n",
"scale: 50%\n",
"align: center\n",
"---\n",
"Conceptual overview of JSON mode.\n",
Expand Down
Binary file added tamingllms/_static/structured_output/json.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 2 additions & 2 deletions tamingllms/notebooks/structured_output.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -298,11 +298,11 @@
"JSON mode is a feature provided by most LLM API providers, such as OpenAI, that allows the model to generate output in JSON format. This is particularly useful when you need structured data as a result, such as when parsing the output programmatically or integrating it with other systems that require JSON input. As depicted in {numref}`json-mode`, JSON mode is implemented by instructing theLLM model to use JSON as response format and optionally defining a target schema.\n",
"\n",
"\n",
"```{figure} ../_static/structured_output/json.svg\n",
"```{figure} ../_static/structured_output/json.png\n",
"---\n",
"name: json-mode\n",
"alt: JSON Mode\n",
"scale: 60%\n",
"scale: 50%\n",
"align: center\n",
"---\n",
"Conceptual overview of JSON mode.\n",
Expand Down

0 comments on commit 9fa6ef2

Please sign in to comment.