Local LLM & RAG System
Designing, deploying, and optimizing a local LLM stack for latency-sensitive conversational applications.
Professional project | Architecture and application details anonymized

The system separates model serving, retrieval, and session context so each layer can be tested independently. Performance was validated through both end-to-end AWS integration tests and a separate controlled concurrency benchmark.

Developed and validated the same modular LLM service across cloud, local GPU, lab-server, and CPU environments. Hardware comparisons were used to isolate inference bottlenecks, not presented as one controlled before/after benchmark.
The challenge
A latency-sensitive conversational AI system needed to move toward local, privacy-conscious inference on controlled infrastructure while remaining responsive enough for real-time interaction.
The system also needed contextual retrieval, conversation isolation, streaming responses, and an architecture that could support future model replacement rather than being tied permanently to one LLM.
My responsibility
My approach
The result
End-to-end AWS integration: running 7B open-weight LLM on an NVIDIA data-center GPU, 2/2 real integration calls completed successfully across 16 conversation turns. Warm latency measured approximately 375 ms mean TTFT, 398 ms P95 TTFT, 890 ms mean generation time, and 1.19 s P95 generation time. Streaming, RAG, memory, call/session continuity, isolation, and cleanup all passed.
Separate concurrency benchmark: testing from 1 to 8 simultaneous requests completed with 100% successful requests and zero timeouts. Observed throughput reached approximately 6.7 requests/s, with practical saturation around 2–4 concurrent requests.
These are complementary tests from different benchmark contexts and are not presented as one direct before/after comparison.
The current performance was achieved through model selection, GPU-backed serving, streaming, context management, RAG design, and pipeline-level engineering without model fine-tuning. The system remains under active development, with additional smaller and alternative local models planned for evaluation.


