Project 3 of 7
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.
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.
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.
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:
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.
On the server: search and embeddings · In the cloud: answer generation only
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.
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.
AI Engineer · Computer Engineer
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.
Open to new projects
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.
01/ 07
01TransifyYour meeting is over. Your summary is ready.Read the details
02AI Support ChatbotA rule engine, live agent handoff and three-layer data safety.Read the details
04Data Processing & Automation PipelinesCollection, enrichment, classification and reporting — in one flow.Read the details
05Averis Soft — Freelance Web & Software WorkFrom analysis to launch, delivered across eight different industries.Read the details
06Monitoring & Observability InfrastructureServer, service and application — all on the same screen.Read the details
07Blog & Content Management PlatformThe first end-to-end product I wrote with a layered architecture.Read the details Résumé
AI Engineer · Computer Engineer
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.
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.
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.
Bachelor's degree, Faculty of Engineering, Department of Computer Engineering.
Certificate of participation.
Contact
If you want to talk about AI, data systems or automation work, drop me a line — I usually reply the same day.