Active RAG & Strict Tool Calling With Real-time APIs

Prerequisite: Familiarity with the concepts introduced in Part 3 — Qdrant Hybrid Search. Review it first if the terminology in this part is unfamiliar. In Part 3: Qdrant Hybrid Search - Solving Semantic and Hard Filters, we successfully built a powerful Hybrid search engine combining Dense Semantic and Sparse Lexical Search. However, a practical e-commerce search system goes far beyond merely retrieving static documents from a vector database. For example, a user asks: “I want to buy a 400L Samsung Inverter refrigerator available at the District 1 branch that has an active promotion.” If we rely solely on a Vector Database, we face two critical errors: ...

May 22, 2026 · 8 min · Lê Tuấn Anh

Critique Loop Architecture: Preventing LLM Hallucination

Prerequisite: Familiarity with the concepts introduced in Part 4 — Active Rag Tool Calling. Review it first if the terminology in this part is unfamiliar. In Part 4: Active RAG & Strict Tool Calling - Connecting LLMs to Real-time APIs, we successfully built a cyclic ReAct graph allowing the LLM to call APIs to check inventory and promotions in real-time. However, in a real-world production environment, giving an LLM access to Tools is not enough to guarantee absolute accuracy. ...

May 22, 2026 · 8 min · Lê Tuấn Anh

Production Agentic Search Engine Optimization in Golang

Prerequisite: Familiarity with the concepts introduced in Part 5 — Critique Loop. Review it first if the terminology in this part is unfamiliar. In Part 5: Critique Loop - Preventing LLM Hallucination, we successfully built an automated response auditing module to ensure logical accuracy. However, when deploying this Agentic Search system to a large-scale production environment serving millions of users, you will immediately face practical operational challenges: Unit Economics: Every user search going through multiple LLM calls (from generating answers, calling tools, to self-critiquing) will skyrocket API bills. Latency: Customers won’t patiently wait 5-10 seconds to receive the complete final answer. Observability: How do you trace which nodes a request went through, how many tokens it consumed, and where it encountered errors? This guide addresses these operational challenges by integrating Semantic Caching (Redis), Deterministic Model Routing, Server-Sent Events (SSE) Streaming, and OpenTelemetry Tracing into the Eino (CloudWeGo) framework. ...

May 22, 2026 · 8 min · Lê Tuấn Anh