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
Copy file name to clipboardExpand all lines: Chapter5/llm.ipynb
+99Lines changed: 99 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -244,6 +244,105 @@
244
244
"source": [
245
245
"[Link to Outlines](https://github.com/outlines-dev/outlines)."
246
246
]
247
+
},
248
+
{
249
+
"cell_type": "markdown",
250
+
"id": "ff519c06",
251
+
"metadata": {},
252
+
"source": [
253
+
"### Mirascope: Extract Structured Data Extraction From LLM Outputs"
254
+
]
255
+
},
256
+
{
257
+
"cell_type": "code",
258
+
"execution_count": null,
259
+
"id": "dc12a009",
260
+
"metadata": {
261
+
"tags": [
262
+
"hide-cell"
263
+
]
264
+
},
265
+
"outputs": [],
266
+
"source": [
267
+
"!pip install mirascope"
268
+
]
269
+
},
270
+
{
271
+
"cell_type": "markdown",
272
+
"id": "0ea9cc6f",
273
+
"metadata": {},
274
+
"source": [
275
+
"Large Language Models (LLMs) are powerful at producing human-like text, but their outputs lack structure, which can limit their usefulness in many practical applications that require organized data.\n",
276
+
"\n",
277
+
"Mirascope offers a solution by enabling the extraction of structured information from LLM outputs reliably.\n",
278
+
"\n",
279
+
"The following code uses Mirascope to extract meeting details such as topic, date, time, and participants."
<h2><spanclass="section-number">6.16.3. </span>Mirascope: Extract Structured Data Extraction From LLM Outputs<aclass="headerlink" href="#mirascope-extract-structured-data-extraction-from-llm-outputs" title="Permalink to this heading">#</a></h2>
<p>Large Language Models (LLMs) are powerful at producing human-like text, but their outputs lack structure, which can limit their usefulness in many practical applications that require organized data.</p>
680
+
<p>Mirascope offers a solution by enabling the extraction of structured information from LLM outputs reliably.</p>
681
+
<p>The following code uses Mirascope to extract meeting details such as topic, date, time, and participants.</p>
<spanclass="n">description</span><spanclass="o">=</span><spanclass="s2">"Discuss the upcoming product launch on June 15th at 3 PM with John, Sarah, and Mike."</span>
Copy file name to clipboardExpand all lines: docs/_sources/Chapter5/llm.ipynb
+99Lines changed: 99 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -244,6 +244,105 @@
244
244
"source": [
245
245
"[Link to Outlines](https://github.com/outlines-dev/outlines)."
246
246
]
247
+
},
248
+
{
249
+
"cell_type": "markdown",
250
+
"id": "ff519c06",
251
+
"metadata": {},
252
+
"source": [
253
+
"### Mirascope: Extract Structured Data Extraction From LLM Outputs"
254
+
]
255
+
},
256
+
{
257
+
"cell_type": "code",
258
+
"execution_count": null,
259
+
"id": "dc12a009",
260
+
"metadata": {
261
+
"tags": [
262
+
"hide-cell"
263
+
]
264
+
},
265
+
"outputs": [],
266
+
"source": [
267
+
"!pip install mirascope"
268
+
]
269
+
},
270
+
{
271
+
"cell_type": "markdown",
272
+
"id": "0ea9cc6f",
273
+
"metadata": {},
274
+
"source": [
275
+
"Large Language Models (LLMs) are powerful at producing human-like text, but their outputs lack structure, which can limit their usefulness in many practical applications that require organized data.\n",
276
+
"\n",
277
+
"Mirascope offers a solution by enabling the extraction of structured information from LLM outputs reliably.\n",
278
+
"\n",
279
+
"The following code uses Mirascope to extract meeting details such as topic, date, time, and participants."
0 commit comments