Tencent/WeKnora
Self-hosted RAG, agents, and a Wiki on shared document knowledge bases
Automated SPDX check for reference only — not legal advice. Disclaimer
GitHub Star History
Full-history star trajectory from GitHub official history. Switch ranges or hover any point for exact counts.
Evidence-Backed Technical Brief
AI Deep ReviewArchitecture & Core Mechanics
WeKnora is a Go application with a separate Web UI and three workflows over shared knowledge bases: citation-backed RAG, multi-step agent execution, and Wiki curation. Documents pass through parsing, chunking, vectorization, retrieval, and model inference. The retrieval path supports keyword and vector search, reranking, and parent–child chunks. Office parsing runs in-process via anydoc, and curators can revise retrieval chunks rather than treating the index as a black box.
The Go module targets 1.26 and lists Gin, Connect RPC, SQLite vector bindings, Elasticsearch v7 and v8 clients, and AWS S3 and Alibaba Cloud OSS SDKs. Those dependencies indicate integration surfaces, not a requirement to run all of them. The pipeline is modular, and the MCP interfaces serve two distinct roles: agents can consume external tools, while the built-in per-workspace /mcp/ endpoint exposes scoped capabilities to clients over Streamable HTTP. The older Python mcp-server/ is deprecated.
Key Capabilities & Differentiators
Ingestion covers more than ten formats, including PDF, Word, images, Excel, and XMind. Folder uploads preserve directory structure, and connectors can sync sources such as Feishu, Confluence, GitLab, and Notion. Answers can link to passages in the original document; Wiki pages add cross-links, revision diffs, and rollback. Neo4j supports optional GraphRAG, while compatible multimodal embeddings enable opt-in image retrieval. The evaluation tooling includes recall and BLEU/ROUGE; use these alongside spot checks for whether citations actually support the answer.
The model catalog covers 31 built-in vendors, including OpenAI, DeepSeek, Qwen, Gemini, and Hunyuan; local Ollama is also supported. The ReAct agent can combine knowledge-base search, web search, MCP tools, browser access, and skills in session-persistent Docker, E2B, or Cube sandboxes. Workspaces have four-role RBAC and audit logs. Execution modes range from read-only to confirm-before-change and automatic write, giving operators a way to distinguish document lookup from actions that change state.
Trade-offs & Limitations
Compared with an API-only RAG stack, WeKnora saves integration work when a team also needs a browser UI, content curation, access controls, and shared workflows. If identity and editorial tools already exist and the only missing piece is retrieval in an existing app, a smaller stack gives operators fewer services and permission paths to maintain. Hybrid retrieval, reranking, multimodal processing, and graph retrieval add options, but tune them against representative queries and documents before enabling them broadly.
Self-hosting controls where the application runs, not where every document, prompt, or credential can travel. Review hosted model endpoints, connectors, external MCP tools, and sandbox egress separately. Start with read-only access or confirmation for writes, particularly when a browser session is signed in; also check the upgrade note that sandbox commands run as root. The tree contains LICENSE and THIRD_PARTY_NOTICES.md, but the exact terms are not established here. Verify them before commercial redistribution.
Hardware & Deployment Guide
The standard self-hosted path requires Git, Docker, and Docker Compose: copy .env.example to .env, configure the environment, run docker compose pull, then docker compose up -d. The documented local endpoints are http://localhost for the UI and http://localhost:8080 for the API. Optional Compose profiles include neo4j, minio, and langfuse; helm/ provides the Kubernetes path. Lite uses SQLite and an in-memory queue, but a self-contained application runtime is not the same as offline inference. For a local model path, configure Ollama and verify that the features you enable do not depend on external services.
For production, keep the service on a private network, restrict ingress, and pin WEKNORA_VERSION for deliberate upgrades. Back up the database, file storage, and encryption key; read the migration notes and pull images explicitly so the UI is not left on a cached version. v0.9.0 added execution permission modes and durable human approval prompts; v0.9.1 added session-isolated desktops, browser login handoff, and per-document ingestion and Wiki status. Size hosted-model deployments around ingestion, indexing, and concurrency; budget separately for local models and enabled sandboxes.
Internal knowledge teams that need to sync multiple document sources, answer with traceable citations, and maintain a shared Wiki while exposing scoped access through the UI, API, or MCP.
You only need a retrieval API for an existing application, or you need verified offline operation or redistribution rights before you can assess model, connector, and license choices.
Quick Start & Installation
git clone https://github.com/Tencent/WeKnora.git cd WeKnora cp .env.example .env # Edit .env as needed, see comments in the file docker compose pull # Pull the latest images docker compose up -d # Start core services
Comparison vs. Top RAG, Data & Memory Alternatives
Full comparison →| Repository | Stars | 7d Trend | Stack | License | Core Positioning |
|---|---|---|---|---|---|
| WeKnora ★ | 38.8k | +387 | Go | — | Self-hosted RAG, agents, and a Wiki on shared document knowledge bases |
| ragflow | 95.1k | +297 | Go | Apache-2.0 | Go-based RAG platform for parsing complex documents and grounding answers in sou |
| open-notebook | 42.4k | +164 | TypeScript | MIT | Self-hosted RAG notebooks for source-cited research, with local or cloud models |
| private-gpt | 57.7k | +14 | Python | Apache-2.0 | Self-hosted API for cited document RAG and tool use on local models |
AI Context Briefing (for Claude / Cursor / Windsurf)
Standardized architecture summary & quickstart commands ready to paste into coding agents.
curl -sL https://repoforai.com/repo/Tencent/WeKnora.md
Active README embeds unlock Hot-Tier 6h Telemetry Refresh automatically (zero pay-to-rank).
Frequently Asked Questions about WeKnora
How should another application connect to a WeKnora knowledge base?
/mcp/ endpoint for an MCP client. It uses Streamable HTTP and can be limited by token, knowledge-base scope, tool group, and rate limit. Use scoped API keys for direct application integration. The Python mcp-server/ is deprecated.Does self-hosting require a GPU, and how should we size the host?
Can we use it commercially and keep all data inside our network?
LICENSE and THIRD_PARTY_NOTICES.md, but the exact license terms are not established here. Review both files before commercial use or redistribution. For data residency, separately check where inference, source connectors, MCP services, and sandbox execution run; a private deployment does not automatically keep those operations local.When is WeKnora a better fit than an API-only RAG stack?
Upstream README & Documentation
This profile focuses on independent engineering analysis and live telemetry. Read the full upstream README, changelog, and examples directly on GitHub.
Top 10 Breakout Open-Source AI Repos, Every Thursday
Signal-only digest of fast-growing AI repos, SPDX license alerts, and architecture picks. Zero spam.
Zero spam · 1-click unsubscribe · Privacy Policy