© 2026 Muhammed Göktuğ Temiz

This site runs on the infrastructure of Averis Soft, the company I founded.

03 / 07Ask Göktuğ — Portfolio RAG Assistant

Project 3 of 7

03 / 07

Ask Göktuğ — Portfolio RAG Assistant

An assistant that ran on this site for a while: it cited its sources and did not make things up.

A Turkish/English RAG assistant that answers visitors' questions about me only from its own knowledge base. Search ran on the server, answers came from a cloud language model, and quality was measured with a 40-question accuracy test. I shut it down in October 2026 to free server memory.

Role
Developer
Period
2026 · October
Ask Göktuğ — Portfolio RAG Assistant
average time to first word
~4 s
tokens/s answer speed
~54
accuracy test
39/40

Contents

Stack

  • Python
  • FastAPI
  • RAG
  • SQLite FTS5
  • Embedding
  • Ollama
  • MiniMax
  • Prometheus

01Problem

The question a portfolio visitor has in mind is rarely written in one place on the page: "Which projects used RAG?", "Where does he work now?", "Does he know Elasticsearch?". The answer is spread across the CV, the project pages and the experience rows. Handing this to a general-purpose chatbot brings a different risk: the model can confidently make things up about topics it does not know. On a portfolio, wrong information is worse than none.

02Solution

I built the "Ask Göktuğ" assistant for the bottom-right corner of this site on a RAG (Retrieval-Augmented Generation) architecture. Before answering, the assistant searched a knowledge base about me and answered only from the passages it found. When the knowledge base had nothing on a question, it said it did not know, and it showed the source each answer was based on.

It answered in Turkish and English and was embedded in the site with a single <script> tag.

03Architecture decisions

SQLite instead of Elasticsearch. The knowledge base was only 29 passages; Elasticsearch alone would need about 1.5 GB of memory. Instead I combined two searches inside SQLite:

  1. FTS5 + BM25 — keyword search, with a light stemming step for Turkish
  2. Vector search — semantic similarity with a multilingual embedding model
  3. Reciprocal Rank Fusion — merges the two rankings into one result list

Exact terms such as "ELK" and questions phrased in different words both found the right passage.

Search local, answers in the cloud. In the first version a local language model on the server generated the answers too, but on a 4-core CPU the first word took 25–50 seconds. After measuring, I moved answer generation to MiniMax through an OpenAI-compatible API, while search and the embedding model stayed on the server. The first word dropped to about 4 seconds on average, and answers streamed at about 54 tokens per second. I filtered the model's "thinking" text out of the stream, so visitors saw only the answer. I wrote about this switch in a separate post.

Measure first. To see what breaks when the knowledge base changes, I wrote a 40-question accuracy test. The latest run passed 39 of 40. Instead of loosening the questions or hard-coding answers to pass, I only improved the knowledge base and the system prompt.

Safe deployment on a shared server. The assistant ran on an 8 GB server that also hosts other sites. The API and model service were reachable only from inside the server; the reverse proxy exposed only the chat, session, status and widget paths, and Prometheus metrics stayed private. Per-visitor and daily global question limits capped both abuse and cloud cost.

Observability. Time to first word, speed and errors for every answer were collected as Prometheus metrics; the latest accuracy test result and live service health were shown on a public status page.

The path of a question

On the server: search and embeddings · In the cloud: answer generation only

  1. QuestionTurkish or English
  2. Hybrid searchSQLite FTS5 (BM25) + embedding vectors
  3. Reciprocal Rank FusionTwo rankings merged, best 4 passages kept
  4. Language modelMiniMax; answers only from the passages found
  5. Streamed answerThinking text filtered out, source shown

04Technical details

Building the knowledge base. The source was five hand-written Markdown files: profile, experience, projects, skills and contact. Files were split at ## headings and then into passages of about 700 characters without breaking paragraphs; every passage carried its own heading and source link. The result was a single SQLite file: 29 passages, each with a 768-dimension vector. The file was written to a temporary copy first and swapped in one step, so the service never saw a half-built knowledge base during re-indexing.

Stemming for Turkish. The stock FTS5 tokenizer does not understand Turkish suffixes: "projeler", "projelerde" and "projesi" become three different words. Instead of adding a morphology library I wrote a small rule: drop everything after an apostrophe, lower-case İ and I by the Turkish rule, remove common function words and keep the first five letters of each word. The same function ran at indexing time and at query time, so both sides always produced the same stem.

Merging the two searches. Vectors were normalised, stored in SQLite as binary fields and kept in memory; at this size cosine similarity took milliseconds without a separate vector database. The top 8 results of each search were merged with Reciprocal Rank Fusion (k = 60) and the best 4 passages went to the model. Because RRF looks only at rank, the BM25 score and the cosine similarity never had to be brought to the same scale.

Follow-up questions. A question shorter than five words, such as "and which model?", loses its context when searched on its own. In that case two searches ran: the question itself and the question joined with the previous one; the results were interleaved. Real follow-ups kept their context, and short questions that changed the subject were not drowned out by the old topic.

Streaming. The answer was streamed with Server-Sent Events: first the source list, then the words, and at the end the time to first word and the speed. The model's reasoning text arrived between <think> tags, and those tags could be split across chunks; the filter held back a possibly incomplete tag until the next chunk arrived.

Limits. One question was processed at a time; the next request waited up to 25 seconds and then got a "busy" reply. Limits were 8 questions per 10 minutes and 40 per day per visitor, and 500 per day for the whole site. The chat endpoint only worked with a session token signed by the server with HMAC and valid for 30 minutes. A question could be at most 400 characters, and only the last four messages of the conversation were sent to the model. Questions that tried to override the instructions or leak the system message were answered with a fixed reply and never reached the model.

What was measured. Besides time to first word and speed, Prometheus also recorded queue wait time, the top similarity score of the search, the number of blocked requests and the latest accuracy test rate. A drop in search quality showed up in the similarity score before the answers got worse.

How the accuracy test works. Each test was a question plus phrases that must or must not appear in the answer. Next to the knowledge questions there were out-of-scope questions ("What is the capital of France?"), requests to write code and attempts to leak the system message; staying silent where the assistant should not answer was measured too.

05Result

Instead of searching across pages, visitors asked their question directly and got a sourced answer within a few seconds. How accurate the assistant was is not a guess: it was the result of a test rerun after every knowledge-base change.

Even after the speed-up, the assistant still held about 1 GB of memory on the shared server. In October 2026 I shut it down to leave that memory to other work; the code and knowledge base are still there and it can be brought back when resources allow.

Next projectData Processing & Automation PipelinesCollection, enrichment, classification and reporting — in one flow.→
MGT
AboutProjectsCVWritingContact
let's work together

AI Engineer · Computer Engineer

MuhammedGöktuğ Temiz

I build products where AI meets data systems.

Computer engineer working on AI-driven systems, data pipelines and system integrations. I design automation-oriented, scalable structures that turn complex raw data into something meaningful and usable.

See my workGet in touch
Location
Başakşehir / İstanbul, Türkiye
selected projects
7

Open to new projects

About

As an AI Engineer with a degree in Computer Engineering, I build LLM-based chatbot and AI agent systems, data processing pipelines and system integrations.

I have hands-on experience setting up PII masking, read-only database security and Prometheus/Grafana-based observability layers in production environments. Using Python, REST APIs, SQL and Elasticsearch, I integrate AI-powered systems into real business processes and focus on building secure, scalable and maintainable products.

Role
AI Engineer · Computer Engineer
Location
Başakşehir / İstanbul, Türkiye
  • Large Language Models (LLM)
  • Retrieval-Augmented Generation (RAG)
  • AI Agent Architectures
  • Speech-to-Text (Whisper)
  • Python
  • n8n
  • Elasticsearch
  • Prometheus
  • Grafana
  • Linux / Debian
Recordings processed on Transify (incl. trials)
500+
Languages supported
50+
Turkish transcription accuracy (our own tests)
95%+
Chatbot regression tests
107

Projects

01/ 07

Transify

Your meeting is over. Your summary is ready.

End-to-end developer · 2026 · July – Present

  • Whisper API
  • GPT-4o
  • MiniMax AI
  • FFmpeg
  • Hangfire
Read the detailsLive demo ↗
  1. 01TransifyYour meeting is over. Your summary is ready.Whisper API · GPT-4o · MiniMax AIRead the details →
  2. 02AI Support ChatbotA rule engine, live agent handoff and three-layer data safety.Flask · Gunicorn · MySQLRead the details →
  3. 03Ask Göktuğ — Portfolio RAG AssistantAn assistant that ran on this site for a while: it cited its sources and did not make things up.Python · FastAPI · RAGRead the details →
  4. 04Data Processing & Automation PipelinesCollection, enrichment, classification and reporting — in one flow.Python · n8n · LLMRead the details →
  5. 05Averis Soft — Freelance Web & Software WorkFrom analysis to launch, delivered across eight different industries.Corporate web · E-commerce · Booking systemsRead the details →
  6. 06Monitoring & Observability InfrastructureServer, service and application — all on the same screen.Zabbix · Prometheus · GrafanaRead the details →
  7. 07Blog & Content Management PlatformThe first end-to-end product I wrote with a layered architecture.ASP.NET MVC · C# / .NET · SQL ServerRead the details →

Résumé

Muhammed Göktuğ Temiz

AI Engineer · Computer Engineer

Experience

2026 · January – Present
AI Engineer · Telpass İletişim Hizmetleri A.Ş.

Built a pipeline with n8n and Python services that collects data from different sources, enriches and classifies it with an LLM and reports on it; automated the manual collect–join–report loop. Secured a rule-based enterprise support chatbot with 16 flows and 107 regression tests; applied three-layer read-only access to the production database and PII masking at the source. Kept cost and reproducibility under control by using the LLM only where reasoning is needed (classification, field extraction from free text) and leaving deterministic work to code. Cut query time and database load by moving high-volume search from the relational database to Elasticsearch. Brought server, application and log monitoring into one dashboard and wrote alert rules that fire only on actionable situations; problems are now learned from alerts, not from customers. Split services into VMs and containers on the virtualisation layer, setting up resource isolation, snapshots and backups.

2025 · April – May
Backend Developer (Intern) · Türkiye Finans Katılım Bankası

Supported software development within the Credit Card Payment Systems department. Contributed to data analysis, SQL query optimisation and reporting on Microsoft SQL Server. Gained experience with service integrations and layered architecture in C#/.NET enterprise applications.

2023 · July – August
.NET Developer (Intern) · Memoria Bilişim ve Medya A.Ş.

Built a blog platform with user and content management features using ASP.NET MVC, SQL Server and Entity Framework. Designed the application structure with a layered architecture and implemented database management and CRUD operations.

Education

2020 – 2025
BSc Computer Engineering · Giresun University

Bachelor's degree, Faculty of Engineering, Department of Computer Engineering.

Certificate
Cisco 1 – Computer Networking Fundamentals · Başakşehir Living Lab

Certificate of participation.

Skills

AI & Generative AI

  • Large Language Models (LLM)
  • Retrieval-Augmented Generation (RAG)
  • AI Agent Architectures
  • Embedding & Vector Search
  • Speech-to-Text (Whisper)
  • AI Chatbot Development
  • Prompt Engineering

Programming & AI Engineering

  • Python
  • Data Processing & Automation
  • REST API
  • API Integrations
  • Flask
  • n8n

Databases & Search

  • Microsoft SQL Server
  • MySQL / MariaDB
  • Elasticsearch
  • ELK Stack (Elasticsearch, Logstash, Kibana)
  • SQL Optimisation
  • Data Modelling

Infrastructure & Monitoring

  • Linux / Debian
  • Proxmox
  • Zabbix
  • Prometheus
  • Grafana

Languages

  • English — B1
web version →Download CV (EN)View CV ↗

Writing

  • 11 November 2026How I tested an LLM assistant: a 40-question accuracy testA language model answers a little differently every time. Still, to measure whether my RAG assistant worked correctly after every change, I built a simple test set that does the job. What I tested, what I deliberately did not do, and how the test lied to me.→
  • 28 October 2026SQLite instead of Elasticsearch: hybrid search on a small knowledge baseI know Elasticsearch well, so why didn't I use it for my RAG assistant? How I combined BM25 and vector search inside SQLite for a 29-passage knowledge base, and how the Turkish language got involved.→
  • 14 October 2026Cutting my RAG assistant's first word from 50 seconds to 4The first version of the RAG assistant I built for my portfolio kept visitors waiting 25–50 seconds before an answer began. What I measured, what I kept on my server and what I moved to the cloud, and what that decision cost.→
  • 14 October 2026Connecting an AI bot to a production database: three layers of read-onlyA support bot had to read the production database without ever writing a single row. Why I built three layers instead of trusting one safeguard, and how I masked sensitive data before it could ever reach the logs.→

Contact

Got something in mind?

If you want to talk about AI, data systems or automation work, drop me a line — I usually reply the same day.

goktugtemiz60@gmail.com
  • GitHub ↗
  • LinkedIn ↗
  • WhatsApp ↗