AI Training & Knowledge Base
Train your SwanAI chatbot to answer customer queries accurately by building a knowledge base. The AI uses RAG (Retrieval Augmented Generation) to provide context-aware responses from your documents.
AI Providers
SwanDigitals supports multiple AI providers. Switch between them anytime based on your needs.
Primary AI Engine
Fast, cost-effective, tuned for Hindi and Indian context.
defaultAlternative AI Engine
Robust cloud-based alternative with excellent general-purpose reasoning.
alternative-cloud-modelAdvanced Reasoning Engine
Best for nuanced, detailed responses. Available on higher plans.
advancedSwitching AI: Go to Settings → AI → Provider to change your AI model. Configuration changes apply immediately to all conversations.
Supported Document Types
Product manuals, policies
Word (.docx)
FAQs, guides
URLs
Website pages (auto-scraped)
Text (.txt)
Raw content
Building Your Knowledge Base
Method 1: Manual Upload
- Navigate to AI → Knowledge Base
- Click Add Documents
- Select files from your computer or paste URLs
- Add tags for organization (e.g., "pricing", "support", "products")
- Click Upload & Index
- Wait 1-5 minutes for indexing to complete
Method 2: Website Crawler
Automatically crawl your website and import all content into the knowledge base.
- Go to AI → Knowledge Base → Import from URL
- Enter your website URL (e.g., https://swandigitals.com)
- Set crawl depth (how many clicks deep to go)
- Exclude paths:
/blog, /pricing-old - Click Start Crawl
- Review imported content and remove irrelevant pages
Method 3: Programmatic Build
Use the KB Builder API for automated knowledge base updates.
# Python example with SwanAI SDK
from swanai import KBBuilder
builder = KBBuilder(api_key="your_key")
builder.add_urls([
"https://example.com/faq",
"https://example.com/pricing"
])
builder.add_files(["./policy.pdf", "./faq.docx"])
builder.build()Multilingual Training
Train the AI to respond in Hindi, regional Indian languages, and Hinglish.
Training for Hindi Responses
- Add documents with Hindi content or Hindi-English bilingual content
- Navigate to AI → Settings → Language
- Select Hindi as primary response language
- Enable Hinglish mode for mixed Hindi-English responses
- Test with queries like "मूल्य क्या है?" or " kitna price hai?"
Supported Languages
Testing & Optimization
AI Playground
Test how your chatbot responds to different queries before going live.
- Go to AI → Playground
- Type a customer question
- Review the AI response and source citations
- If answers are poor, add more relevant documents or improve existing content
Tip: Use specific terms from your industry. The AI learns from your documents, so include domain-specific terminology for better accuracy.
Next Steps
- Voice AI — Enable AI-powered phone support
- Automation — Set up routing rules and escalation logic
- Platform Guide — Learn more platform features