Blog
Mert Özen's blog posts on software development, backend, frontend, and DevOps.
Series
Artificial Intelligence
PART 15
LLM Hallucination and Reliability: Cite, Verify, Measure
Asked for the author of a novel that doesn't exist, gemma3:4b confidently invented a name and a year. We look at why hallucinations happen, force the answer to cite sources with structured output, verify those sources in code and compare three approaches with numbers using a ten-question golden set.
6 Nov 2026
17 min
7
Artificial Intelligence
PART 14
LLMs and RAG: Answering with Data the Model Has Never Seen
Asked about the bookstore's return window, gemma3:4b confidently said 30 days; the right answer is 21. We split the policies into chunks, index them with nomic-embed-text, put the closest chunks into the prompt and get the model to say it doesn't know what isn't in the context. A minimal in-memory RAG in C# and its limits.
6 Nov 2026
11 min
6