Blog
Mert Özen's blog posts on software development, backend, frontend, and DevOps.
Series
2 posts found
#structured-output
Artificial Intelligence
PART 10
Putting Context into the Prompt: Citations, Context Budget and "I Don't Know" on Low Scores
Packing chunks as short id-tagged blocks within a token budget, getting the answer and source ids via structured output and validating the ids in code makes citations trustworthy; but a valid citation is not a correct answer. Because Turkish similarity scores overlap, a pre-model "I don't know" threshold only catches the obvious cases.
8 Nov 2026
12 min
4
Artificial Intelligence
PART 10
Structured Output with LLMs: JSON Mode, JSON Schema and GetResponseAsync<T>
We see why parsing free text with a regex breaks, why JSON mode is not enough and how a JSON schema pins the format. We use Zod in TypeScript and GetResponseAsync<T> in C#, catch an answer that matches the schema but is wrong, and build two layers of validation.
6 Nov 2026
11 min
15