Skip to main content
Navigate to Knowledge at the top, then click Create > Build a custom knowledge base. There are three ways for you to get started.

Build from Scratch

Build from Scratch
Click Blank Knowledge Pipeline to build a custom pipeline from scratch. Choose this option when you need custom processing strategies based on specific data source and business requirements.

Templates

Dify offers two types of templates: Built-in Pipeline and Customized. Both template cards display name of knowledge base, description, and tags (including chunk structure).
Create Knowledge Pipeline 4 01

Built-in Pipeline

Built-in pipelines are official knowledge base templates pre-configured by Dify. These templates are optimized for common document structures and use cases. Simply click Choose to get started.
Built-in Templates
Types To preview the selected built-in pipeline, click Details on any template card. Then, check information in the popup window, including: orchestration structure, pipeline description, and chunk structure. Click Use this Knowledge Pipeline for orchestration.
Template Details

Customized

Customized Templates
Customized templates are user-created and published knowledge pipeline. You can choose a template to start, export the DSL, or view detailed information for any template.
Template Actions
To create a knowledge base from a template, click Choose on the template card. You can also create knowledge base by clicking Use this Knowledge Pipeline when previewing a template. Click More to edit pipeline information, export pipeline, or delete the template.

Import Pipeline

Import DSL
Import a pipeline of a previously exported knowledge pipeline to quickly reuse existing configurations and modify them for different scenarios or requirements. Navigate to the bottom left of the page and click Import from a DSL File. Dify DSL is a YAML-based standard that defines AI application configurations, including model parameters, prompt design, and workflow orchestration. Similar to workflow DSL, knowledge pipeline uses the same YAML format standard to define processing workflows and configurations within a knowledge base. What’s in a knowledge pipeline DSL:
Last modified on July 10, 2026