Blog
Mert Özen's blog posts on software development, backend, frontend, and DevOps.
Series
2 posts found
#embedding
Artificial Intelligence
PART 13
Embeddings and Similarity for LLMs: Searching Text by Meaning
What is an embedding and how do you compute cosine similarity? We produce 768-dimensional vectors with nomic-embed-text, write cosine similarity by hand in C# and TypeScript, build a small in-memory semantic search and compare it with keyword search. The negation trap and the limits with Turkish queries, with real scores.
6 Nov 2026
13 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