Translation RAG Service

A lightweight Retrieval-Augmented Generation (RAG) backend for translation prompts. The service exposes a FastAPI REST API that stores translation pairs in SQLite — kept idempotent through database-level deduplication — retrieves the most relevant examples with TF-IDF cosine similarity, and assembles them into retrieval-augmented prompts for LLM-based translation. An additional heuristic component detects stammering in translated sentences, and the whole system ships Dockerized for easy deployment.

Mohammadhossein Akbari Moafi
Mohammadhossein Akbari Moafi

AI Researcher and Engineer passionate about building practical, efficient intelligent systems across vision, multimodal, and knowledge-driven applications.