Codele / LLMs, RAG and agentic AI
Build an agent, end to end
Time to put it all together. A small support agent searches its documents, uses a tool, loops within a limit, cites its source, refuses to guess and asks a person before a refund.
- This agent joins every part of the track: a prompt in, search over documents (RAG), a tool call, a loop with a step limit, and guardrails.
- It answers only from its sources and shows which one, so a person can check. When nothing matches, it says so instead of guessing.
- A refund moves money, so it waits for a human yes. Risky actions should always have a person in the loop.
- The step limit stops endless loops. If the limit is hit, the agent reports that it stopped.
- This is a toy: simple rules play the model, search counts shared words, and the person always says yes. A real agent needs much more testing, logging and care.
Loading the playable lesson…