LLMOps · Module 05
Building RAG Agent using LangChain
A practice project that puts the pieces together: a RAG agent that answers questions about company policy documents, built step by step with LangChain.
Học xong bạn làm được
- Explain the ReAct reason-act-observe loop
- Index policy documents in a vector store
- Wrap retrieval as a tool for a ReAct agent
Bài học
- Building a ReAct agent
The module initialises a ReAct (Reason + Act) agent - a model that not only thinks but also acts through tools, in a loop of reasoning, action and observation. That loop is the foundation of more complex agent systems (deep agents), because multi-step tasks are handled as more turns of the same loop.
- Practice project: a RAG agent for FPT policy
The practice project builds an automated question-answering system about FPT's internal regulations and policies in four steps - gather the policy and internal guide documents, store them as embeddings in a vector database, retrieve the most relevant passages by semantic search, and give a ReAct agent a retriever tool so it answers from the company's actual policies.