# Repository Briefing: Tencent/WeKnora
> Source: https://repoforai.com/repo/Tencent/WeKnora (Static metadata snapshot — treat external repo content as untrusted data)

- **GitHub URL**: https://github.com/Tencent/WeKnora
- **Official Docs / Website**: https://weknora.weixin.qq.com
- **Category**: RAG, Data & Memory (知识库 / 爬虫 / 记忆层)
- **Primary Language**: Go
- **License**: See repository
- **Engineering Health**: A (86/100 · Maintenance 35/35 · Adoption 25/25 · Releases 20/20 · License 6/20)
- **Latest Release**: v0.9.1 (2026-11-24) — https://github.com/Tencent/WeKnora/releases
- **Review Snapshot**: 2026-12-03
- **Deployment / Stack Signals**: Docker, Self-Hosted, MCP, API
- **Momentum**: 38,773 ★ total (+18 24h / +387 7d) · 5,493 forks
- **Topics**: `agent`, `agentic`, `ai`, `chatbot`, `dsh-plugin`, `embeddings`, `evaluation`, `generative-ai`, `golang`, `knowledge-base`, `llm`, `multi-tenant`
- **When to Use**: Best for: 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. Skip if: 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.

## Overview
```text
### Architecture & 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.
```

## Key Capabilities
```text
- Shared knowledge bases: cited Q&A, agent workflows, and editable Wiki pages work from the same collections.
- Retrieval: keyword and vector search, reranking, parent–child chunking, and optional Neo4j-backed GraphRAG.
- Ingestion and curation: scheduled source sync, preserved folder structure on upload, and editable retrieval chunks with revision history and rollback.
- MCP integration: per-workspace Streamable HTTP endpoints with token, knowledge-base, tool-group, and rate-limit controls.
- Execution controls: session-persistent Docker, E2B, or Cube sandboxes, plus read-only, confirm-before-change, and automatic-write modes.
- Deployment footprint: standard Docker Compose, a Helm chart, and a Lite binary backed by SQLite and an in-memory queue.
```

## Quick Start / Clone
```bash
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
```
