# Agents and RAG guides

This section holds the guides and tutorials on agents and RAG.

- [Embed documents into a vector table with AI Inference](/en/documentation/guides/ai/agents-and-rag/embed-documents-into-a-vector-table.md): Turn the documents in a bucket into passages with vectors from an AI Inference embedding model, stored in a SQL Database vector table.
- [Answer questions from a vector table](/en/documentation/guides/ai/agents-and-rag/answer-questions-from-a-vector-table.md): Answer a question from a function with the nearest passages of a SQL Database vector table and a chat model on AI Inference that cites them.
- [Pause an agent for approval with KV Store](/en/documentation/guides/ai/agents-and-rag/pause-an-agent-for-approval-with-kv-store.md): Run a tool-calling agent loop in a function, pause it in KV Store before an action a person approves, and record every task event in SQL Database.
