Introduction
PandaWiki is an open-source knowledge base system that leverages large language models to help teams build and maintain intelligent documentation. Built by Chaitin Technology, it provides AI-powered content creation, conversational Q&A for visitors, and semantic search across your entire knowledge base.
What PandaWiki Does
- Creates and organizes documentation pages with a rich text editor and hierarchical structure
- Generates draft content from outlines or prompts using connected LLM providers
- Provides an AI chatbot widget that answers visitor questions based on your documentation
- Offers semantic search that understands intent rather than just matching keywords
- Supports multiple knowledge bases for different products or teams from one instance
Architecture Overview
PandaWiki uses a TypeScript frontend with React for the editor and public-facing pages. The backend is built in Go, handling API requests, content storage in PostgreSQL, and vector embeddings in a built-in vector store. LLM integration supports OpenAI-compatible APIs, allowing connection to cloud or local models. The AI Q&A system chunks documents, generates embeddings, and performs retrieval-augmented generation to answer questions grounded in your content.
Self-Hosting & Configuration
- Deploy with Docker Compose; the stack includes the app, PostgreSQL, and Redis
- Configure your LLM provider by setting
LLM_API_KEYandLLM_BASE_URLenvironment variables - Supports OpenAI, Claude, or any OpenAI-compatible endpoint including local Ollama
- Set
SITE_URLfor proper link generation and SEO in the public knowledge base - Manage multiple knowledge bases, users, and permissions through the admin dashboard
Key Features
- AI content assistant that drafts, expands, and summarizes documentation from prompts
- Embeddable chatbot widget for your website that answers questions from your docs
- Multi-language support with AI-powered translation for international teams
- SEO-optimized public pages with clean URLs, sitemaps, and meta tags
- Import from Markdown, HTML, or Notion exports to migrate existing documentation
Comparison with Similar Tools
- BookStack — Traditional wiki without AI capabilities; PandaWiki adds intelligent search and content generation
- Docusaurus — Static site generator for docs; PandaWiki is a full CMS with dynamic AI features
- Outline — Team wiki with real-time editing; PandaWiki focuses on public-facing docs with AI Q&A
- GitBook — Commercial docs platform; PandaWiki is fully open source and self-hosted
- Mintlify — AI docs with vendor lock-in; PandaWiki runs on your infrastructure with your choice of LLM
FAQ
Q: Can PandaWiki work without an LLM provider? A: Yes. The knowledge base, editor, and full-text search work without AI. The chatbot and content generation features require an LLM connection.
Q: How does the AI chatbot stay accurate? A: The chatbot uses retrieval-augmented generation, pulling relevant document chunks before answering. It cites sources and can be configured to decline questions outside your documentation scope.
Q: Is there version control for pages? A: Yes. PandaWiki maintains a revision history for each page, allowing you to compare versions and restore previous content.
Q: Can I customize the public site appearance? A: Yes. The public knowledge base supports custom logos, colors, CSS, and domain mapping for full brand control.