---
title: Knowledge
sidebarTitle: Overview
---

## Introduction

Knowledge in Dify is a collection of your own data that can be integrated into your AI apps. It allows you to provide LLMs with domain-specific information as context, ensuring their responses are more accurate, relevant, and less prone to hallucinations.

This is made possible through Retrieval-Augmented Generation (RAG). It means that instead of relying solely on its pre-trained public data, the LLM uses your custom knowledge as an additional source of truth:

1. (Retrieval) When a user asks a question, the system first **retrieves the most relevant** information from the incorporated knowledge.

2. (Augmented) This retrieved information is then combined with the user's original query and sent to the LLM as **augmented context**.

3. (Generation) The LLM uses this context to generate a **more precise** answer.

<Tip>
    Learn more about [RAG](/en/learn-more/extended-reading/retrieval-augment/README).
</Tip>

Knowledge is stored and managed in knowledge bases. You can create multiple knowledge bases, each tailored to different domains, use cases, or data sources, and selectively integrate them into your application as needed.

To populate a knowledge base, you can upload local files in various formats, import pages directly from online documents like Notion, sync content from websites, or connect to external knowledge bases such as AWS Bedrock. 

## Build with Knowledge

With Dify knowledge, you can build AI apps that are grounded in your own data and domain-specific expertise. Here are some common use cases:

1. **Customer support chatbots**: Build smarter support bots that provide accurate answers from your up-to-date product documentation, FAQs, troubleshooting guides, and support ticket history.

2. **Internal knowledge portals**: Build AI-powered search and Q&A systems for employees to quickly access company policies and procedures.

3. **Content generation tools**: Build intelligent writing tools that generate reports, articles, or emails based on specific background materials.

4. **Research & analysis applications**: Build applications that assist in research by retrieving and summarizing information from specific knowledge repositories like academic papers, market reports, or legal documents.

## Create Knowledge

- **[Quick create](/en/guides/knowledge-base/knowledge-base-creation/introduction)**: Import data, define processing rules, and let Dify handle the rest. Fast and beginner-friendly. 

- **[Create from a knowledge pipeline](/en/guides/knowledge-base/knowledge-pipeline/readme)**: Orchestrate more complex, flexible data processing workflows with custom steps and various plugins.

- **[Connect to an external knowledge base](/en/guides/knowledge-base/connect-external-knowledge-base)**: Sync directly from external knowledge bases via APIs to leverage existing data without migration.

## Manage & Optimize Knowledge

- **[Manage content](/en/guides/knowledge-base/knowledge-and-documents-maintenance/maintain-knowledge-documents)**: View, add, modify, or delete documents and text chunks to keep your knowledge current, accurate, and retrieval-ready.

- **[Test and validate retrieval](/en/guides/knowledge-base/test-retrieval)**: Simulate user queries to test how well your knowledge base retrieves relevant information.

- **[Enhance retrieval with metadata](/en/guides/knowledge-base/metadata)**: Add metadata to documents to enable filter-based searches and further improve retrieval precision.

- **[Adjust settings](/en/guides/knowledge-base/knowledge-and-documents-maintenance/introduction)**: Modify the index method, embedding model, and retrieval strategy at any time.

## Use Knowledge

- **[Integrate into applications](/en/guides/knowledge-base/integrate-knowledge-within-application)**: Ground your AI app in your own data.

- **[Provide source citations](/en/guides/application-orchestrate/app-toolkits/readme#citation-and-attribution)**: Enable your app to display the specific knowledge source when generating responses based on knowledge base content.

---

**Read More**:

- [Dify v0.15.0: Introducing Parent-child Retrieval for Enhanced Knowledge](https://dify.ai/blog/introducing-parent-child-retrieval-for-enhanced-knowledge)

- [Enhance Dify RAG with InfraNodus: Expand Your LLM's Context](https://dify.ai/blog/enhance-dify-rag-with-infranodus-expand-your-llm-s-context)

- [Dify v1.1.0: Filtering Knowledge Retrieval with Customized Metadata](https://dify.ai/blog/dify-v1-1-0-filtering-knowledge-retrieval-with-customized-metadata)

- [Dify.AI x Jina AI: Dify now Integrates Jina Embedding Model](https://dify.ai/blog/integrating-jina-embeddings-v2-dify-enhancing-rag-applications)

- [Introducing Hybrid Search and Rerank to Improve the Retrieval Accuracy of the RAG System](https://dify.ai/blog/hybrid-search-rerank-rag-improvement)

- [Dify.AI's New Dataset Feature Enhancements: Citations and Attributions](https://dify.ai/blog/difyai-new-dataset-features)

- [Text Embedding: Basic Concepts and Implementation Principles](https://dify.ai/blog/text-embedding-basic-concepts-and-implementation-principles)


{/*
Contributing Section
DO NOT edit this section!
It will be automatically generated by the script.
*/}

---

[Edit this page](https://github.com/langgenius/dify-docs/edit/main/en/guides/knowledge-base/readme.mdx) | [Report an issue](https://github.com/langgenius/dify-docs/issues/new?template=docs.yml)