LLM

6 articles in LLM

Context engineering: what goes into the model's window at each step
AI Agents
LLM
RAG
Context Engineering for Agents: What Goes in the Window, and When

A million-token context window did not make context management optional; it made the bill bigger. This post treats the context window as a budget, shows the arithmetic that makes agent runs expensive, and walks through the five techniques that actually move the needle: just-in-time retrieval, tool-result hygiene, compaction, memory files and sub-agents.

Tin Nguyen Van Trung
Tin Nguyen Van Trung
16 min read
0 views
Context engineering: cái gì được đưa vào cửa sổ của model ở mỗi bước
AI Agents
LLM
RAG
Context Engineering cho agent: cái gì vào context window, và khi nào

Context window một triệu token không làm việc quản lý context thành tuỳ chọn; nó chỉ làm hoá đơn to hơn. Bài này coi context window như một ngân sách, làm phép tính khiến mỗi lần chạy agent đắt đỏ, và đi qua năm kỹ thuật thực sự có tác dụng: retrieval đúng lúc, vệ sinh tool result, compaction, memory file và sub-agent.

Tin Nguyen Van Trung
Tin Nguyen Van Trung
16 phút đọc
0 views
The agent loop: model, tool call, tool result, repeat
AI Agents
AI Development
LLM
The Agent Loop: The 40 Lines Every AI Agent Is Built On

Strip away the frameworks and every AI agent is the same small loop: call the model, run the tool it asked for, feed the result back, repeat. Here is that loop in plain Python, where it breaks in production, and the four controls I never ship without.

Tin Nguyen Van Trung
Tin Nguyen Van Trung
14 min read
0 views
Vòng lặp agent: model, tool call, tool result, lặp lại
AI Agents
AI Development
LLM
Agent Loop: 40 dòng code mà mọi AI agent đều được xây trên đó

Bỏ framework ra, AI agent nào cũng chỉ là một vòng lặp nhỏ: gọi model, chạy tool nó yêu cầu, trả kết quả về, lặp lại. Bài này viết vòng lặp đó bằng Python thuần, chỉ ra chỗ nó vỡ khi lên production, và bốn thứ tôi không bao giờ ship thiếu.

Tin Nguyen Van Trung
Tin Nguyen Van Trung
14 phút đọc
0 views
Production RAG Systems
LLM
RAG
AI Architecture
Building Production-Grade RAG Systems: Lessons from the Trenches

Deep dive into production-ready RAG architecture patterns, chunking strategies, embedding selection, and retrieval optimization techniques based on real-world deployments.

Tin Nguyen Van Trung
Tin Nguyen Van Trung
15 min read
267 views
LLM Fine-tuning
LLM
AI Training
MLOps
Fine-tuning LLMs: LoRA vs Full Fine-tuning - Trade-offs and When to Use Each

Comprehensive guide to LLM fine-tuning techniques, comparing LoRA (Low-Rank Adaptation) with full fine-tuning, including performance metrics and cost analysis.

Tin Nguyen Van Trung
Tin Nguyen Van Trung
13 min read
245 views