Skip to content

AI-powered professional document generation(企业级智能长文档生成平台)

Notifications You must be signed in to change notification settings

zhuzhaoyun/OpenSpec

Repository files navigation

English | 中文

Enterprise-Grade AI Professional Long-Document Generation Platform

Powered by RAG + multi-agent workflows, delivering high-quality automated long-document generation for architecture design, automotive repair, healthcare, bidding & tendering, and more.

Latest release GitHub Stars GitHub Forks


What is OpenSpec?

OpenSpec is an enterprise-grade intelligent platform for professional long-document generation.

In specialized fields such as architecture design, automotive repair, healthcare, and bidding & tendering, professionals need to produce large volumes of structurally complex, technically rigorous, and standards-compliant long documents. These documents typically share the following characteristics:

  • Lengthy — Often tens or even hundreds of pages, with multiple chapters and sub-chapters;
  • Highly specialized — Content must reference industry standards and regulatory provisions, with no room for fabrication;
  • Strictly formatted — Must follow specific document templates and layout standards;
  • Repetitive — Documents of the same type share similar structures, but details vary by project.

OpenSpec was built to solve this pain point. Users simply input basic project information, and the system will:

  1. Intelligent Retrieval — Retrieve relevant standards, historical cases, and reference materials from the knowledge base;
  2. Chapter-by-Chapter Generation — A multi-agent workflow (Researcher + Auditor) generates standards-compliant professional content chapter by chapter;
  3. Human-AI Collaboration — Supports chapter-level review, rewriting, and supplementation for efficient human-AI collaboration;
  4. One-Click Export — Generate PDF, Markdown, AutoCAD title blocks, and other professional formats.

OpenSpec 2-Minute Video Introduction (Architecture Design Scenario): https://www.bilibili.com/video/BV1DoFUzBEmW/?share_source=copy_web&vd_source=d91cce476d06006159a799f4db6b9171

Use Cases

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
More Any structured long document that needs to be generated from a knowledge base

UI Showcase

Project List Document Editor
AI Chat Assistant Knowledge Base Retrieval

Online Demo

Try OpenSpec online: https://archspec.aizzyun.com/

  • Email: test@qq.com
  • Password: test

Quick Start

Requirements

Component Version
Docker >= 20.10
Docker Compose >= 2.0

One-Click Deployment

# 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 -d

Once started, visit http://localhost to use the platform.

Environment Variables

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.

Local Development

Expand to view local development guide

Frontend

cd apps/web
npm install
npm run dev
# Visit http://localhost:5173

AI Agent

cd 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.0

Backend

cd apps/backend
mvn spring-boot:run

Open Source vs Enterprise

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

Contact Us

For enterprise edition details or business cooperation, feel free to reach out:

  • Email: dlutyaol@qq.com

  • WeChat: Scan the QR code below

    WeChat

License

Copyright (c) 2024-2026 OpenSpec Contributors.

Licensed under The GNU General Public License v3.0 (GPLv3).

About

AI-powered professional document generation(企业级智能长文档生成平台)

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 3

  •  
  •  
  •