Drop your product manuals, policies and FAQs into a Dify knowledge base and ship a cited Q&A bot in a few steps — answers grounded in your real docs, not model guesses. Embed it on your site, or connect it to Lark / WeCom for support or an internal knowledge assistant.
What it does
- Upload PDF/Word/Markdown to a knowledge base, auto-chunk and embed
- Answer with retrieval-augmented generation (RAG), citing sources
- Publish as a web app / API / IM bot in one click
Prerequisites
- A Dify account (cloud) or self-hosted Dify
- An LLM API (domestic models like DeepSeek connect directly)
- Your knowledge documents
Install / configure
Self-host:
git clone https://github.com/langgenius/dify.git
cd dify/docker && cp .env.example .env && docker compose up -d
In the console: Create app → choose “Chat assistant / Chatflow” → attach knowledge base → set the model API key.
How to use
- “Knowledge” → upload docs, wait for indexing.
- Create a chat assistant referencing that base; tune prompt and recall settings.
- Once verified, “Publish” to get a web link or API; embed on your site or IM.
Use cases
- Website smart customer support / pre-sales Q&A
- Internal policy, HR and IT knowledge assistant
- Product documentation Q&A
Notes
- Recall quality depends on chunking and prompts — iterate in small steps.
- Domestic models connect directly; OpenAI and other overseas models typically require an international network.