-
Notifications
You must be signed in to change notification settings - Fork 1.6k
en usage knowledge readme
LangBot natively supports RAG (Retrieval-Augmented Generation). You can create a knowledge base and bind it to a pipeline, allowing the pipeline to answer questions based on the contents of the knowledge base.
Knowledge bases are powered by Knowledge Engine plugins, with different Knowledge Engines providing different indexing and retrieval strategies. You can find available Knowledge Engine plugins in the Plugin Marketplace.
On the knowledge base page, click the Create Knowledge Base button:
- Fill in the knowledge base name
- Select a Knowledge Engine (provided by installed plugins)
- Fill in the relevant parameters based on the selected engine's configuration form (e.g., embedding model, chunk size, etc.)
- Click the
Createbutton
Note
Different Knowledge Engines have different configuration parameters, depending on the engine's creation_schema definition. Some engines may require configuring an embedding model first. Please read Configure Models.
If the selected Knowledge Engine supports document upload (declares DOC_INGESTION capability), after creation go to the "Documents" tab of your knowledge base and upload documents. LangBot will automatically parse and index these in the background.
Go to your pipeline configuration, under the "AI" tab, choose Local Agent as the runner, then select the knowledge base you just created.
After selecting a knowledge base, you can configure a Rerank Model below to improve retrieval quality:
- Rerank Model: Select a configured rerank model (if none available, add one in Model Configuration first)
- Rerank Top-K: Number of most relevant results to keep after reranking, default is 5
Tip
Rerank models are optional. When configured, candidate documents from knowledge base retrieval are re-scored by the rerank model, keeping only the top-K most relevant results before passing them to the LLM, significantly reducing noise from irrelevant content.
Note
LangBot's built-in knowledge base can be used only when the runner is set to Local Agent. For other runners, refer to their documentation.
Now you can use the knowledge base in Chat Debug, or through the bot linked to this pipeline:
If existing Knowledge engine plugins don't meet your needs, you can develop your own Knowledge engine plugin. See Component: Knowledge Engine for development details.
Automatically synchronized from langbot-app/langbot-wiki.
简体中文
指南
开发者
- 插件开发
- 插件 SDK API
- 核心开发
文章
- 浏览
- 产品动态
- 技术解析
- 教程与集成
- 公告
API 参考
- Service API
English
Guides
Developers
-
Plugin Development
- Plugin Development Tutorial
- Completing Plugin Configuration Information
- Plugin Directory Structure
- Component Development
- Code Style Guide
- Migration Guide
- Publish Plugin
- Plugin SDK API
- Core Development
Articles
- Browse
- Product Updates
- Engineering
-
Tutorials & Integrations
- LangTARS: Open-Source AI Agent for Remote PC Control — Works with Dify, n8n & 10+ Messaging Platforms
- How to Connect DeepSeek R1 to WeChat, Discord & Telegram in 5 Minutes (FREE)
- Deploy Your Own AI Bot to Discord, Telegram & WeChat in 5 Minutes
- Finally Got My Dify Agent Working in Discord, Telegram and Slack
- How I Built a Multi-Platform AI Bot with Langflow's Drag-and-Drop Workflows
- How I Built a Multi-Platform AI Chatbot with n8n and LangBot
- LangBot 4.6.0 External Knowledge Base Tutorial: Integrating Dify with LangBot for RAG-powered Conversations
- Announcements
API Reference
- Service API
Other pages
日本語
ガイド
開発者
- プラグイン開発
- プラグイン SDK API
- コア開発
記事
- 一覧
- 製品アップデート
- エンジニアリング
-
チュートリアルと連携
- LangTARS:Dify・n8n と連携するオープンソース PC 操作 Agent
- DeepSeek R1 を WeChat・Discord・Telegram に5分で接続する方法
- AI Bot を Discord・Telegram・WeChat に5分でデプロイ
- Dify Agent を Discord・Telegram・Slack で動かす
- Langflow のドラッグ&ドロップでマルチプラットフォーム AI Bot を構築
- n8n と LangBot でマルチプラットフォーム AI Chatbot を構築
- LangBot 4.6.0 外部ナレッジベース入門:Dify と連携した RAG 会話
- お知らせ
API リファレンス
- Service API