What is WeKnora?
WeKnora is an open-source, LLM-powered knowledge framework from Tencent, built for understanding documents, searching them by meaning, and reasoning over the results. It is self-hostable and modular, so you can swap the language model, vector database, and storage backend to fit your setup. It sits in the RAG Frameworks & Platforms category of the Retrieval & Knowledge (RAG) tools and is open-source, written in Go.
Overview
WeKnora is an open-source, LLM-powered knowledge framework from Tencent, built for understanding documents, searching them by meaning, and reasoning over the results. It is self-hostable and modular, so you can swap the language model, vector database, and storage backend to fit your setup.
It is organized around three core jobs. RAG-based Quick Q&A answers everyday questions over your knowledge base. A ReAct agent handles harder, multi-step tasks by orchestrating retrieval, MCP tools, and web search on its own. Wiki Mode has agents turn raw documents into a structured, interlinked Markdown knowledge base with an interactive knowledge graph.
WeKnora can pull content in from sources like Feishu, Notion, and Yuque, handles formats including PDF, Word, images, and Excel, and can serve answers through chat channels such as WeCom, Feishu, Slack, and Telegram. It works with major LLM providers including OpenAI, Anthropic (Claude), DeepSeek, Qwen, Gemini, and Ollama.
What it does
- Three knowledge modes: RAG-based Quick Q&A, a ReAct agent that autonomously orchestrates retrieval, MCP tools, and web search, plus a Wiki Mode that auto-generates interlinked Markdown pages with a knowledge graph
- Wide model support: OpenAI, Azure OpenAI, Anthropic (Claude), DeepSeek, Qwen, Zhipu, Hunyuan, Gemini, MiniMax, NVIDIA, and Ollama, with swappable embeddings and vector databases
- Multi-format ingestion across PDF, Word, Txt, Markdown, HTML, images, CSV, Excel, PPT, and JSON, plus auto-sync from Feishu, Notion, and Yuque
- Multiple retrieval strategies including BM25 sparse search, dense retrieval, GraphRAG, parent-child chunking, and HNSW-accelerated pgvector
- Enterprise access control with tenant RBAC (Owner / Admin / Contributor / Viewer roles), per-knowledge-base ownership, and a per-tenant audit log
- Built-in Langfuse observability for tracing ReAct loops, token usage, tool calls, and the document-parsing pipeline
Getting started
WeKnora runs through Docker Compose. You need Docker, Docker Compose, and Git installed, then clone the repo, set up the environment file, and bring up the services.
Clone and start the services
Clone the repository, copy the example environment file (edit it as needed), then start the core services with Docker Compose.
git clone https://github.com/Tencent/WeKnora.git
cd WeKnora
cp .env.example .env # Edit .env as needed
docker compose up -d # Start core servicesOpen the Web UI
Once the services are running, visit http://localhost to start. The backend API is available at http://localhost:8080.
Enable optional services
Add Docker Compose profile flags to turn on extra components such as the Neo4j knowledge graph, MinIO object storage, or Langfuse tracing. Profiles can be combined.
docker compose --profile full up -d # All features
docker compose --profile neo4j --profile minio up -dDrive it from the CLI
The official weknora CLI lets you log in, manage knowledge bases, upload documents, and chat straight from the terminal.
weknora auth login --host https://kb.example.com
weknora kb list
weknora doc upload notes.md
weknora chat "summarise the design doc"Commands and code are distilled from the project's own documentation — always check the official repo for the latest.
When to use it
- Build a private, self-hosted question-answering system over internal PDFs, Word docs, and spreadsheets, keeping all data on your own infrastructure
- Auto-generate a maintained internal wiki from scattered documents, complete with interlinked pages and a knowledge graph
- Deploy a ReAct agent that combines document retrieval, MCP tools, and web search to handle complex multi-step research questions
- Serve knowledge-base answers directly inside chat channels like WeCom, Feishu, Slack, or Telegram for team self-service
How WeKnora compares
WeKnora alongside other open-source rag frameworks & platforms tools AI/TLDR tracks, ranked by GitHub stars.
| Tool | Stars | What it does |
|---|---|---|
| Dify | ★ 162k | An open-source platform with a visual workflow builder for creating LLM and RAG applications without writing much code. |
| graphify | ★ 155k | Turns a folder of code, docs, PDFs and images into a local knowledge graph with tree-sitter AST parsing and Leiden communities — queryable by agents over MCP, no vector store. |
| RAGFlow | ★ 95k | A RAG engine built around deep document understanding that turns complex files into a grounded, citation-backed question-answering layer. |
| Context7 | ★ 65.7k | Context7 pulls current, version-specific documentation and code examples for any library and feeds them into your LLM, available as a CLI skill or an MCP server. |
| Pathway | ★ 61.9k | A Python framework with a Rust streaming engine that keeps ETL, real-time analytics and RAG pipelines continuously up to date as source data changes. |
| LightRAG | ★ 41k | A graph-based RAG system that builds an entity-and-relationship knowledge graph for fast retrieval and easy incremental updates. |
| PageIndex | ★ 40.8k | PageIndex turns long PDFs into a table-of-contents tree and uses LLM reasoning to retrieve relevant sections, with no vector database and no chunking. |
| WeKnora | ★ 38.5k | Open-source RAG framework that turns documents into a queryable knowledge base |

