Skip to content

Commit 3b44cec

Browse files
committed
✏️ Update Index.razor for content clarity
- Modified content for better understanding. - Enhanced explanations for structured output. - Improved overall readability of the document. Generated by Copilot
1 parent b1f4fc2 commit 3b44cec

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

TestArena/Blog/AI/OpenAI/openai-rest-api/Index.razor

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -63,13 +63,13 @@
6363

6464
<Section Heading="What is Structured Output?" Level="4">
6565
<p>
66-
Think of it as the difference between an essay and a spreadsheet.
66+
Think of it as the difference between an essay and a spreadsheet. Unstructured output is free-flowing text that is easy for humans to read but hard for programs to parse reliably. Structured output, on the other hand, is organized in a predictable format like JSON, which applications can easily process.
6767
</p>
68-
<ul>
69-
<li><strong>Unstructured Output:</strong> A free-flowing paragraph of text. It's easy for humans to read but hard for a program to parse reliably. Example: <em>"The Matrix is a 1999 sci-fi action film directed by the Wachowskis. It's about a hacker who discovers the world is a simulation."</em></li>
70-
<li><strong>Structured Output:</strong> Data organized in a predictable format, like JSON (JavaScript Object Notation). It has clear keys and values that a program can easily read and process.</li>
71-
</ul>
72-
<CodeSnippet Language="json" Description="Example: Structured JSON Output">
68+
<CodeSnippet Language="diff" Description="Unstructured vs. Structured Output">
69+
- Unstructured Text:
70+
"The Matrix is a 1999 sci-fi action film directed by the Wachowskis. It's about a hacker who discovers the world is a simulation."
71+
72+
+ Structured JSON:
7373
{
7474
"title": "The Matrix",
7575
"year": 1999,
@@ -110,7 +110,7 @@ Extract the movie title, year, and director from the following text. Return the
110110
Text: "My favorite movie is The Matrix, which came out in 1999 and was directed by the Wachowskis."
111111
</CodeSnippet>
112112
<p>
113-
<strong>Why it's brittle?</strong> The model might not perfectly follow instructions. It could add extra text before or after the JSON, use different key names, or generate invalid JSON, causing your parsing code to fail.
113+
<strong>Why it's brittle?</strong> The model might not perfectly follow instructions, leading to common parsing failures. For example, it could add extraneous text, use different key names than requested, or generate malformed JSON.
114114
</p>
115115
</SubSection>
116116

0 commit comments

Comments
 (0)