Skip to content

Commit

Permalink
Update tutorials/structured-output-instructor/structured_output_instr…
Browse files Browse the repository at this point in the history
…uctor.ipynb

Co-authored-by: Hatice Ozen <139392640+hozen-groq@users.noreply.github.com>
  • Loading branch information
S4mpl3r and hozen-groq authored Sep 9, 2024
1 parent 7be6d42 commit 4ccc0ee
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"metadata": {},
"source": [
"# Structured Output with Groq and Instructor\n",
"While large language models (LLMs) are often employed for building chatbots or conversational agents, numerous real-world applications require a different approach - one that goes beyond mere dialogue and involves producing structured, machine-readable outputs.\n",
"While Large Language Models (LLMs) are often employed for building chatbots or conversational agents, numerous real-world applications require a different approach - one that goes beyond mere dialogue and involves producing structured, machine-readable outputs.\n",
"\n",
"Consider a typical scenario: we want to produce structured JSON data from an LLM. While tools like Python's `json` module allow us to handle this data, they also come with their own set of challenges, such as validating data types and ensuring consistency across outputs. Manually checking these aspects can be tedious and error-prone. LLMs also tend to forget to include a comma or a closing bracket ('}') somewhere in the produced JSON from time to time, which would invalidate the whole JSON output.\n",
"\n",
Expand Down

0 comments on commit 4ccc0ee

Please sign in to comment.