Mert Özen Further With Every Line

Blog

Mert Özen's blog posts on software development, backend, frontend, and DevOps.

Series
16 posts found #rag
Choosing an Embedding Model: Dimensions, Multilinguality, Turkish and Cost
Artificial Intelligence PART 02

Choosing an Embedding Model: Dimensions, Multilinguality, Turkish and Cost

Choose an embedding model by measuring it in your own language on your own question set, not by the leaderboard average: on the same content nomic-embed-text ranked the right section first for 26 of 30 questions in English but only 16 in Turkish. We measure with recall@k and MRR and look at prefixes, Matryoshka dimensions, storage, silent truncation and the risk of old vectors after a model switch, with real output.

8 Nov 2026 13 min 6
Production RAG Architecture: Ingestion and Query Pipelines, and Why Minimal RAG Breaks
Artificial Intelligence PART 01

Production RAG Architecture: Ingestion and Query Pipelines, and Why Minimal RAG Breaks

On a real document set, minimal RAG answered only 20 of 30 questions correctly; most failures come from retrieval, chunking, stale data and unauthorized documents rather than the model. Using Bookstore's Turkish documents we classify the failures, separate the ingestion and query pipelines, and build a query pipeline skeleton with a permission filter and a trace log.

8 Nov 2026 14 min 5
LLM Hallucination and Reliability: Cite, Verify, Measure
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 24
LLMs and RAG: Answering with Data the Model Has Never Seen
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 18
Blog Map