> ## Documentation Index
> Fetch the complete documentation index at: https://agno-v2-service-account.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# Knowledge

> Runnable knowledge examples: RAG basics, retrieval building blocks, production patterns, advanced customization, and integrations.

Examples for giving agents searchable knowledge, ordered from a first RAG agent to production deployment.

## Getting Started

| Example                                                                | Description                                                               |
| ---------------------------------------------------------------------- | ------------------------------------------------------------------------- |
| [Basic RAG](/examples/knowledge/getting-started/basic-rag)             | Context injection, the simplest way to give an agent access to documents. |
| [Agentic RAG](/examples/knowledge/getting-started/agentic-rag)         | The agent gets a `search_knowledge_base` tool and decides when to query.  |
| [Loading Content](/examples/knowledge/getting-started/loading-content) | Load from local files, URLs, raw text, topics, and batch operations.      |

## Building Blocks

| Example                                                                        | Description                                               |
| ------------------------------------------------------------------------------ | --------------------------------------------------------- |
| [Chunking Strategies](/examples/knowledge/building-blocks/chunking-strategies) | Side-by-side comparison of document splitting strategies. |
| [Search Types](/examples/knowledge/building-blocks/hybrid-search)              | Vector, keyword, and hybrid search compared.              |
| [Reranking](/examples/knowledge/building-blocks/reranking)                     | Rerank results to improve quality on complex queries.     |
| [Filtering](/examples/knowledge/building-blocks/filtering)                     | Narrow search results with document metadata.             |
| [Agentic Filtering](/examples/knowledge/building-blocks/agentic-filtering)     | The agent builds metadata filters from the user query.    |
| [Embedders](/examples/knowledge/building-blocks/embedders)                     | Choose and configure embedding models.                    |

## Production

| Example                                                                   | Description                                                         |
| ------------------------------------------------------------------------- | ------------------------------------------------------------------- |
| [Multi-Source RAG](/examples/knowledge/production/multi-source-rag)       | Combine PDFs, web pages, and text in one knowledge base.            |
| [Knowledge Lifecycle](/examples/knowledge/production/knowledge-lifecycle) | Insert, update, remove, and track content with a contents database. |
| [Multi-Tenant](/examples/knowledge/production/multi-tenant)               | Isolate per-tenant data with `isolate_vector_search`.               |
| [AgentOS](/examples/knowledge/production/agent-os)                        | Serve agents and knowledge as API endpoints.                        |
| [Error Handling](/examples/knowledge/production/error-handling)           | Ingestion patterns that survive bad files and failed loads.         |
| [SSRF Hardening](/examples/knowledge/production/ssrf-allowed-hosts)       | Restrict URL-fetching readers with `allowed_hosts`.                 |

## Advanced

| Example                                                               | Description                                                       |
| --------------------------------------------------------------------- | ----------------------------------------------------------------- |
| [Custom Retriever](/examples/knowledge/advanced/custom-retriever)     | Full control over retrieval logic, bypassing the Knowledge class. |
| [Custom Chunking](/examples/knowledge/advanced/custom-chunking)       | Implement your own chunking strategy.                             |
| [Graph RAG](/examples/knowledge/advanced/graph-rag)                   | Build a knowledge graph from documents with LightRAG.             |
| [Knowledge Tools](/examples/knowledge/advanced/knowledge-tools)       | Think, search, and analyze tools for reasoning over knowledge.    |
| [Knowledge Protocol](/examples/knowledge/advanced/knowledge-protocol) | Custom knowledge sources via the `KnowledgeProtocol` interface.   |
| [Prefix Search](/examples/knowledge/advanced/prefix-search)           | Search-as-you-type matching on partial words.                     |

## Integrations

### Cloud

| Example                                                                           | Description                                                |
| --------------------------------------------------------------------------------- | ---------------------------------------------------------- |
| [AWS](/examples/knowledge/integrations/cloud/aws)                                 | Load files and folders from S3 buckets.                    |
| [Azure](/examples/knowledge/integrations/cloud/azure)                             | Load from Azure Blob Storage containers.                   |
| [Azure (SAS Token)](/examples/knowledge/integrations/cloud/azure-sas)             | Blob Storage access with SAS token authentication.         |
| [GCP](/examples/knowledge/integrations/cloud/gcp)                                 | Load from Google Cloud Storage buckets.                    |
| [SharePoint](/examples/knowledge/integrations/cloud/sharepoint)                   | Load from SharePoint document libraries.                   |
| [GitHub Dynamic Repo](/examples/knowledge/integrations/cloud/github-dynamic-repo) | Override the source repository per request.                |
| [Multi-Source](/examples/knowledge/integrations/cloud/multi-source)               | Combine multiple remote sources in one Knowledge instance. |

### RAG

| Example                                                                                                  | Description                                    |
| -------------------------------------------------------------------------------------------------------- | ---------------------------------------------- |
| [Agentic RAG with Infinity Reranker](/examples/knowledge/integrations/rag/agentic-rag-infinity-reranker) | Agentic RAG with an Infinity reranker backend. |
| [Agentic RAG with LightRAG](/examples/knowledge/integrations/rag/agentic-rag-with-lightrag)              | Agentic RAG backed by LightRAG.                |
| [Local RAG with LangChain and Qdrant](/examples/knowledge/integrations/rag/local-rag-langchain-qdrant)   | Fully local RAG with LangChain and Qdrant.     |

### Readers

| Example                                                                                         | Description                                            |
| ----------------------------------------------------------------------------------------------- | ------------------------------------------------------ |
| [Documents](/examples/knowledge/integrations/readers/documents)                                 | PDF, DOCX, PPTX, and Excel with auto-detected readers. |
| [Data](/examples/knowledge/integrations/readers/data)                                           | CSV, JSON, and field-labeled CSV readers.              |
| [Web](/examples/knowledge/integrations/readers/web)                                             | Website, YouTube, ArXiv, and Firecrawl readers.        |
| [Docling: PDF](/examples/knowledge/integrations/readers/docling/docling-pdf)                    | PDF processing with different output formats.          |
| [Docling: Office Documents](/examples/knowledge/integrations/readers/docling/docling-documents) | Microsoft Office document processing.                  |
| [Docling: Images](/examples/knowledge/integrations/readers/docling/docling-images)              | OCR for image files.                                   |
| [Docling: Audio](/examples/knowledge/integrations/readers/docling/docling-audio)                | Speech-to-text transcription for audio files.          |
| [Docling: Markup](/examples/knowledge/integrations/readers/docling/docling-markup)              | Markup and structured document formats.                |
| [Docling: Data Files](/examples/knowledge/integrations/readers/docling/docling-xlsx)            | Spreadsheet and data file processing.                  |

### Vector Databases

| Example                                                          | Description                                              |
| ---------------------------------------------------------------- | -------------------------------------------------------- |
| [Qdrant](/examples/knowledge/integrations/vector-dbs/qdrant)     | The recommended vector database for production.          |
| [Local](/examples/knowledge/integrations/vector-dbs/local)       | Embedded ChromaDB and LanceDB for prototyping.           |
| [Managed](/examples/knowledge/integrations/vector-dbs/managed)   | Serverless Pinecone with zero infrastructure management. |
| [PgVector](/examples/knowledge/integrations/vector-dbs/pgvector) | Vector search inside PostgreSQL.                         |
