Internal documentation and routine operational inquiries consume disproportionate hours across human resources, IT support, sales enablement, and operations teams. While general-purpose AI chat assistants can synthesize public information, they lack context regarding company-specific policies, proprietary product specifications, and standard operating procedures (SOPs). Within the Baidu AI ecosystem, business teams and knowledge workers can solve this challenge without engineering overhead by building custom agent bots on the Ernie Bot AgentBuilder platform (agents.baidu.com).
By combining Baidu's Ernie large language models with a native Retrieval-Augmented Generation (RAG) knowledge engine, AgentBuilder allows non-technical teams to turn static handbooks, policies, and spreadsheets into interactive conversational agents. These bots deliver grounded, cited answers while mitigating hallucination risks.
Core Architecture: How Ernie AgentBuilder Solves Internal Knowledge Retrieval
Traditional keyword-based enterprise search often forces employees to read through dense twenty-page manuals just to find a single reimbursement limit or VPN configuration setting. Standard LLMs, on the other hand, generate plausible but unverified guesses when queried about proprietary information.
Ernie Bot's AgentBuilder bridges this gap through a visual, zero-code pipeline:
- Document Ingestion & Chunking: The platform accepts internal documents (PDF, DOCX, TXT, Markdown, PPT) and structured tables (XLSX, CSV). It automatically strips markup, splits text into semantic segments (chunks), and converts them into dense vector embeddings.
- Hybrid Semantic Retrieval: When an employee submits a query in natural language, the engine performs hybrid semantic and keyword matching across the vectorized knowledge index to retrieve the most relevant text chunks.
- Prompt Grounding: Retrieved context snippets are injected alongside the user query into the underlying Ernie model, accompanied by strict grounding instructions.
- Attributed Generation: The agent synthesizes a direct, natural-language response and surfaces citation tags linked to specific source paragraphs, enabling employees to verify policy details immediately.
Step-by-Step Implementation Guide
Setting up an automated FAQ and knowledge retrieval agent on AgentBuilder requires five concrete phases: preparation, creation, knowledge ingestion, prompt orchestration, and debugging.
Step 1: Prepare and Structure Knowledge Assets
The quality of an agent's answers depends directly on how source material is structured. AgentBuilder supports two primary knowledge formats:
- Structured FAQ Question-and-Answer Pairs (Recommended for Policies):
For definitive, high-frequency rules (such as expense policies, leave policies, and IT access requests), create a two-column or three-column spreadsheet (
.xlsxor.csv). Define the Standard Question, optional Extended/Variant Questions (e.g., "How do I claim mileage?" vs. "Travel reimbursement vehicle rules"), and the authoritative Standard Answer. Structured Q&A pairs guarantee near-100% precision and bypass semantic ambiguity. - Unstructured Operational Manuals:
For broad guidelines, architecture diagrams, and product manuals, upload clean
.pdf,.docx, or.mdfiles. Before uploading, remove redundant headers, conflicting historical versions, and low-contrast scanned graphics that could impair OCR parsing.
Step 2: Create the Agent in AgentBuilder
- Navigate to the Ernie AgentBuilder Console (
https://agents.baidu.com/) and sign in with your enterprise or authorized Baidu account. - Click Create Agent (创建智能体).
- Select the creation mode:
- Zero-Code / Natural Language Creation: Allows you to describe your intent (e.g., "Build an HR onboarding assistant that answers employee benefits questions based on uploaded documents"), and the system auto-generates the initial persona and settings.
- Low-Code Visual Configuration (Recommended): Gives granular control over system prompts, knowledge base binding, tool calling, and workflow triggers.
- Fill in basic metadata: Agent Name (e.g., OpsDesk Internal Bot), Avatar, and a clear Description summarizing its scope.
Step 3: Configure and Bind Knowledge Bases
- In the agent configuration dashboard, locate the Knowledge Base (知识库) module and select Add Knowledge Base.
- Click Create New Knowledge Base or attach an existing repository.
- Upload your structured FAQ tables and unstructured documents.
- Inspect the Chunking Strategy:
- For standard procedural documents, use the platform's automated semantic chunking.
- For dense technical guides, adjust chunk lengths and preview chunk boundaries to ensure entire clauses or numbered steps remain intact in a single slice.
- Enable Strict Retrieval / Forced Knowledge Call: When building internal policy bots, configure the retrieval threshold so the bot prioritizes uploaded documentation over the general knowledge of the foundation model.
Step 4: Craft the System Prompt and Guardrails
The system prompt defines how the Ernie model interprets queries and treats missing information. Avoid vague instructions. Instead, provide explicit behavioral constraints:
# Role & Purpose
You are OpsDesk, the internal knowledge assistant for our operations team. Your role is to answer employee inquiries accurately using only the attached knowledge base.
# Guidelines
1. Grounded Answers: Base your answers strictly on the retrieved knowledge base segments. Do not extrapolate, assume, or invent details not present in the documents.
2. Citations: Reference the exact section, clause, or policy title whenever presenting factual rules.
3. Fallback Handling: If the user's question cannot be answered using the attached knowledge base, state clearly: "I cannot find this information in the current internal documentation. Please contact the Operations Helpdesk at #ops-support on our internal messenger." Never fabricate company policy.
4. Tone: Professional, direct, concise, and helpful.
Configure Starter Questions (引导问题) and a welcoming Greeting Message (开场白) so team members immediately understand what questions the agent is equipped to answer (e.g., "Ask about travel reimbursement limits", "How to request a software license", "Hardware replacement cycle").
Step 5: Test, Debug, and Verify Citations
Use the real-time preview panel on the right side of the AgentBuilder interface to conduct rigorous verification:
- Paraphrase Testing: Enter the same core question using slang, typos, abbreviations, or indirect phrasing to verify that vector semantic retrieval catches the right FAQ pair.
- Out-of-Scope Testing: Ask questions completely absent from the documentation (e.g., asking about executive compensation in an IT manual). Ensure the bot executes the fallback disclaimer instead of hallucinating.
- Citation Inspection: Click the generated reference markers below the answer to confirm that the text highlighted in the knowledge viewer directly justifies the generated response.
- Threshold Tuning: If the agent reports missing information for topics covered in the files, lower the relevance recall threshold slightly or add common synonym queries to the FAQ spreadsheet.
Step 6: Deploy and Distribute Internally
Once verified, click Publish (发布):
- Internal / Restricted Link Sharing: Generate an access URL designated for internal team members. Employees can interact with the bot directly via browser bookmarks or mobile web views without public exposure.
- Ernie Bot Ecosystem Access: If desired, make the agent accessible across Baidu Ernie Bot (
yiyan.baidu.com) or enterprise collaborative workspaces, allowing team members to summon the assistant during daily research.
AgentBuilder vs. Baidu Qianfan: Selecting the Right Platform
Organizations evaluating Baidu's ecosystem often compare AgentBuilder with the Baidu Intelligent Cloud Qianfan platform (cloud.baidu.com/product/qianfan.html):
| Feature Dimension | Ernie AgentBuilder (agents.baidu.com) | Baidu Qianfan Platform (cloud.baidu.com) |
|---|---|---|
| Primary Audience | Business teams, knowledge workers, HR, operations | Software engineers, ML engineers, enterprise architects |
| Setup Complexity | Zero-code / Low-code visual configuration | API/SDK integration, code-first workflows |
| Knowledge Management | Direct file upload, automatic parsing & chunking | Vector database integration, custom embedding pipelines |
| Customization | System prompts, starter questions, built-in tools | Model fine-tuning (SFT, LoRA), custom APIs, VPC hosting |
| Security & Deployment | Hosted cloud agent, link/whitelist sharing | Private cloud, on-premises deployment, VPC isolation |
| Ideal Use Case | Departmental FAQ, employee handbooks, sales enablement | Mission-critical core software, high-throughput API endpoints |
For departmental knowledge retrieval and standard operational FAQs, AgentBuilder delivers immediate turnaround without requiring engineering resources or infrastructure management.
Best Practices for Long-Term Knowledge Maintenance
To keep your Ernie agent accurate and trusted over time, follow three operational practices:
- Maintain Single Sources of Truth: When company policy changes, update the existing document in the knowledge base rather than uploading duplicate files with version numbers. Delete superseded documents immediately to prevent retrieval collisions.
- Review Unanswered Queries: Regularly review conversation logs in the AgentBuilder analytics tab. Identify recurring user questions that triggered the fallback response and draft new FAQ pairs to fill those knowledge gaps.
- Separate Broad Concepts from Precise Rules: Use narrative handbooks for conceptual overviews, but maintain a dedicated Excel FAQ sheet for exact numbers, dates, tier qualifications, and escalation contacts.
Implementing a custom Ernie Bot agent empowers business teams to democratize internal knowledge access, eliminate repetitive manual support inquiries, and ensure corporate policies remain consistently accessible around the clock.