Enterprise-Grade AI Platform for Professional Long-Document Generation
Turn your knowledge base into standards-compliant, publication-ready documents in minutes — not days.
Live Demo • Video Introduction • Quick Start • Contact Us
Generic AI (ChatGPT, Claude, Qwen, etc.) falls short on professional long documents:
| Problem | Generic AI | OpenSpec |
|---|---|---|
| Documents over 50 pages | Context lost, inconsistencies | Chapter-by-chapter generation, fully coherent |
| Industry standards & regulations | Hallucination, makes things up | RAG retrieval from your own knowledge base |
| Document formatting & templates | Cannot control layout | PDF / Markdown / AutoCAD export |
| Quality assurance | Single-pass, no review | Three-agent workflow (Researcher + Generator + Auditor) |
OpenSpec is not another AI writing tool. It is a document engineering platform built for professionals who need accuracy, compliance, and scale.
┌───────────────────────────────────────┐
│ Knowledge Base (RAG) │
│ (Standards, Cases, Project Docs) │
└──┬──────────────┬──────────────┬─────┘
│ │ │
query on query on query on
demand demand demand
│ │ │
┌──────────┐ ┌──────────▼──┐ ┌─────▼──────┐ ┌▼───────────┐ ┌──────────┐
│ User │────▶│ Researcher │────▶│ Generator │────▶│ Auditor │────▶│ Human-AI│
│ Input │ │ (Research │ │ (Write │ │ (Review & │ │ Editing │
│ │ │ & Gather) │ │ Content) │ │ Verify) │ │ │
└──────────┘ └─────────────┘ └────────────┘ └──────┬─────┘ └────┬─────┘
▲ │ │
└───── revise ──────┘ ▼
┌──────────────┐
│ One-Click │
│ Export │
│ (PDF/MD/CAD) │
└──────────────┘
The system is powered by a three-agent workflow, where each agent can autonomously query the knowledge base when it needs more context:
- Researcher Agent — Gathers relevant standards, historical cases, and reference materials from the knowledge base to build a solid research foundation
- Generator Agent — Produces standards-compliant professional content chapter by chapter, based on the research context
- Auditor Agent — Reviews the generated content for compliance, consistency, and accuracy; queries the knowledge base for cross-validation and sends revisions back to the Generator if needed
- Human-AI Collaboration — Review, rewrite, and refine at the chapter level
- One-Click Export — PDF, Markdown, AutoCAD title blocks, and more
| Domain | Typical Documents |
|---|---|
| Architecture Design | Construction drawing design notes, feasibility study reports |
| Automotive Repair | Repair technical manuals, fault diagnosis reports |
| Healthcare | Clinical trial reports, diagnosis & treatment standard documents |
| Bidding & Tendering | Technical proposals, tender document preparation |
| Any Industry | Any structured long document generated from a knowledge base |
![]() |
![]() |
![]() |
![]() |
Video Demo (Architecture Design Scenario): Watch on Bilibili
Try OpenSpec online: https://archspec.aizzyun.com/
- Email:
test@qq.com - Password:
test123456
| Layer | Technology |
|---|---|
| Frontend | Vue 3, TypeScript, Vite |
| Backend | Spring Boot 3, Java 17 |
| AI Agent | Python, LangGraph, LangChain |
| Knowledge Retrieval | RAGFlow |
| Observability | Langfuse (LLM tracing & cost analytics) |
| Database | PostgreSQL |
| Deployment | Docker, Docker Compose |
| Component | Version |
|---|---|
| Docker | >= 20.10 |
| Docker Compose | >= 2.0 |
# 1. Clone the repository
git clone https://github.com/zhuzhaoyun/OpenSpec.git
cd OpenSpec
# 2. Copy and edit environment variables
cp deploy/docker/.env.example deploy/docker/.env
# Edit .env and fill in required configurations (RAGFlow, LLM API Key, etc.)
# 3. Start all services
cd deploy/docker
docker compose up -dOnce started, visit http://localhost to use the platform.
| Variable | Description | Required |
|---|---|---|
RAGFLOW_API_KEY |
RAGFlow API key | Yes |
RAGFLOW_BASE_URL |
RAGFlow service URL | Yes |
DASHSCOPE_API_KEY |
LLM API key (default: Qwen) | Yes |
LANGFUSE_SECRET_KEY |
Langfuse secret key (Prompt management) | No |
LANGFUSE_PUBLIC_KEY |
Langfuse public key | No |
LANGFUSE_BASE_URL |
Langfuse service URL | No |
For the full list of environment variables, see deploy/docker/.env.example.
Expand to view local development guide
cd apps/web
npm install
npm run dev
# Visit http://localhost:5173cd apps/agent
pip install -r requirements.txt
cp ../../deploy/docker/.env.example .env
# Edit .env and fill in required configurations
uvicorn app:app --reload --port 5000 --host 0.0.0.0cd apps/backend
mvn spring-boot:run| Feature | Open Source | Enterprise |
|---|---|---|
| Intelligent Retrieval & Chapter Generation | ✅ | ✅ |
| Human-AI Collaborative Editing | ✅ | ✅ |
| PDF / Markdown Export | ✅ | ✅ |
| AutoCAD Plugin (File Import) | ❌ | ✅ |
| Training & Q&A Support | ❌ | ✅ |
| Data Processing Consulting | ❌ | ✅ |
We welcome contributions! Feel free to:
- Star this project to show your support
- Submit Issues for bug reports and feature requests
- Open Pull Requests for improvements
For enterprise edition details or business cooperation, feel free to reach out:
Copyright (c) 2024-2026 OpenSpec Contributors.
Licensed under The GNU General Public License v3.0 (GPLv3).




