10°46′N 106°42′E
LinkedInGitHub
Tyler@tyler-void

Folio V10°46′N 106°42′E

Vietnamese RAG assistant (FSoft AI Academy, AIA-14)

Legend
Kind
Team project, 2026-08 to 2026-09
My scope
Retrieval accuracy and evaluation
Stack
Python, FastAPI, BM25, ChromaDB, sentence-transformers, AWS EC2
Status
Filed

A Vietnamese vaccination-information RAG assistant, built as a team project at FSoft AI Academy (AIA-14). My scope was retrieval accuracy and evaluation.

Vietnamese users commonly query without diacritics, so I shipped diacritic folding with bigram indexing. On a 5-question no-diacritic band, a reconstructed vanilla BM25 baseline returned nothing for 2 of the 5, and one further question moved from rank 4 to rank 1. One of the misses had 0.75 Jaccard token overlap with the correct article's title, so the failure was diacritics, not lexical overlap.

An inherited cosine-similarity threshold rejected 0 of 10 off-topic queries. I replaced it with an absolute BM25 relevance floor derived from the corpus's measured score distribution, which rejected 8 of 10 with no loss on in-scope queries.

I reproduced and documented a cross-request defect in an LLM gateway that returned other requests' responses: 15 of 16 replies were wrong at 12,000-character prompts, across processes sharing an API key. The mitigation was a token-plausibility check, a retry at an alternate prompt width, and an explicit warning to the user on suspect replies.

The evaluation harness runs four interchangeable retrieval backends over a 287-article corpus and a 28-question set I wrote. Then I audited the harness itself: its topic-level regex ground truth gave a random retriever roughly 26% Hit@5, so it measured topic match, not document match. I re-scoped the reported results to what the measurement supported, and committed the harness and the audit script so the numbers are reproducible.

Back to the map