lingmengcan
AIGC Application Platform: Lingmengcan AI, large language model, aigc, stable diffusion, langchainjs, nestjs, vue3, naive ui, DeepSeek, chromadb
GitHub Stars
36
User Rating
Not Rated
Favorites
0
Views
8
Forks
2
Issues
1
Lingmengcan AI Platform
English | δΈζ
Lingmengcan is an end-to-end AI application development platform powered by large language models. It provides comprehensive solutions including knowledge base management, intelligent conversations, workflow orchestration, and AI image generation. Built with modern microservice architecture, supporting fully local deployment to ensure enterprise data security.
β¨ Key Features
- π€ Multi-Model Support: Compatible with OpenAI, Ollama, and other LLMs
- π¬ Intelligent Chat: Multi-turn conversations, context memory, role-playing
- π Knowledge Base RAG: Document upload, vectorization, intelligent retrieval enhancement
- π¨ AI Image Generation: Integrated Stable Diffusion for text-to-image generation
- π Workflow: Visual process orchestration with complex business logic support
- π₯ Permission Management: Complete RBAC permission system
- π Private Deployment: Fully local operation without external dependencies
ποΈ Architecture
Frontend Layer (web/
)
Vue 3 + TypeScript + Vite
βββ UI Framework: TDesign + Tailwind CSS
βββ State Management: Pinia
βββ Routing: Vue Router
βββ HTTP Client: Axios
Service Layer (service/
)
NestJS + TypeScript
βββ Database: TypeORM + MySQL
βββ Authentication: JWT + Passport
βββ AI Integration: LangChain + OpenAI API
βββ File Storage: Local + Cloud Storage
βββ Vector Database: ChromaDB
Core Modules
- User Management: Registration, login, permission control
- Chat System: Multi-turn conversations, history, streaming output
- Knowledge Base: Document parsing, vectorization, similarity search
- Model Management: Multi-model configuration, load balancing, monitoring
- Workflow: Node orchestration, conditional branches, loop control
- Drawing System: Stable Diffusion integration, parameter adjustment
π Quick Start
Requirements
Component | Version | Description |
---|---|---|
Node.js | 18+ | Frontend & Backend runtime |
Python | 3.10+ | AI model environment |
MySQL | 8.0+ | Primary database |
pnpm | Latest | Package manager |
1οΈβ£ Clone Repository
git clone https://github.com/lingmengcan/lingmengcan.git
cd lingmengcan
2οΈβ£ Database Setup
# Create database
mysql -u root -p -e "CREATE DATABASE lingmengcan_ai CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci;"
# Import schema
mysql -u root -p lingmengcan_ai < doc/lingmengcan-ai.sql
3οΈβ£ Backend Service
cd service
# Install dependencies
pnpm install
# Configure environment
cp .env.example .env
# Edit config.development.yaml for database connection
# Start development server
pnpm run start:dev
4οΈβ£ Frontend Application
cd web
# Install dependencies
pnpm install
# Start development server
pnpm dev
5οΈβ£ AI Model Deployment (Optional)
Option 1: Ollama (Recommended)
Ollama is the simplest local LLM deployment solution, supporting various open-source models.
# macOS/Linux Installation
curl -fsSL https://ollama.ai/install.sh | sh
# Windows: Download from https://ollama.ai/download/windows
# Download and run models
ollama pull llama2 # Meta Llama 2
ollama pull qwen:7b # Alibaba Qwen
ollama pull codellama # Code-specialized model
# Start service (default port 11434)
ollama serve
# Test model
ollama run llama2
Option 2: LM Studio (GUI Interface)
LM Studio provides a user-friendly graphical interface, suitable for non-technical users.
# 1. Download and install LM Studio
# Official website: https://lmstudio.ai/
# 2. Search and download models in LM Studio:
# - Qwen/Qwen2-7B-Instruct-GGUF
# - microsoft/Phi-3-mini-4k-instruct-gguf
# - TheBloke/Llama-2-7B-Chat-GGUF
# 3. Start local server
# Click "Local Server" tab in LM Studio
# Select model and click "Start Server"
# Default address: http://localhost:1234/v1
Option 3: Stable Diffusion WebUI (AI Image Generation)
# Clone repository
git clone https://github.com/AUTOMATIC1111/stable-diffusion-webui.git
cd stable-diffusion-webui
# Start with API mode
./webui.sh --api --listen --port 7860
# Or Windows: webui-user.bat --api --listen --port 7860
# API address: http://localhost:7860
Model Configuration
Add model configuration in backend config file service/config.development.yaml
:
# Stable Diffusion Configuration
stablediffusion:
apiUrl: "http://localhost:7860"
enabled: true
6οΈβ£ Access Application
- π Frontend: http://localhost:8089
- π§ Backend API: http://localhost:3000
- π€ Default Account:
admin
/123456
π± Screenshots
β οΈ Important Notice: The following screenshots are from early versions. Current version has significant UI and feature updates - screenshots need to be updated urgently!
π¬ Intelligent Chat System
New Features:
- β Multi-turn conversations with context understanding
- β Knowledge base RAG enhancement
- β Streaming output with typewriter effect
- β Real-time model switching and comparison
- β Conversation history management
- β Export conversation records


π¨ AI Image Generation Studio
New Features:
- β Text-to-Image generation
- β Image style transfer and editing
- β Advanced parameter fine-tuning
- β Batch generation and management
- β ControlNet precise control
- β Image version history management

π€ Model Library

βοΈ System Management Center
Complete enterprise-level admin system
π₯ User Permission Management | π Role Permission System |
---|---|
![]() |
![]() |
β’ User information management β’ Permission assignment β’ Login logs |
β’ RBAC permission model β’ Fine-grained control β’ Permission inheritance |
π Menu Route Management |
---|
![]() |
β’ Dynamic menu configuration β’ Route permissions β’ Menu icons |
π Knowledge Base Management (New Feature)
- π Multi-format document upload (PDF, Word, Markdown)
- π Intelligent document parsing and chunking
- π§ Vectorization storage and retrieval
- π‘ Knowledge base Q&A with citations
- π Usage statistics
- π Version management and rollback
π Workflow Orchestrator (New Feature)
- π¨ Visual process designer
- π Conditional branches and loop control
- π€ Multi-AI model collaboration
- β° Scheduled task execution
- π Execution monitoring and logs
- π§ Custom node development
π Project Structure
lingmengcan/
βββ π web/ # Frontend (Vue 3 + TypeScript)
β βββ src/
β β βββ api/ # API layer
β β βββ components/ # Reusable components
β β βββ views/ # Page views
β β βββ store/ # State management (Pinia)
β β βββ router/ # Route configuration
β β βββ utils/ # Utility functions
β βββ package.json
βββ π service/ # Backend (NestJS + TypeScript)
β βββ src/
β β βββ controllers/ # Controller layer
β β βββ services/ # Business logic layer
β β βββ entities/ # Data models
β β βββ modules/ # Feature modules
β β βββ dtos/ # Data transfer objects
β β βββ utils/ # Utility classes
β βββ package.json
βββ π doc/ # Documentation
β βββ lingmengcan-ai.sql # Database schema
β βββ *.md # Documentation files
βββ π images/ # Screenshots
βββ README.md
π§ Configuration
Backend Config (service/config.development.yaml
)
# Database configuration
database:
host: localhost
port: 3306
username: root
password: your_password
database: lingmengcan_ai
# AI model configuration
llm:
openai:
apiKey: your_openai_key
baseURL: https://api.openai.com/v1
ollama:
baseURL: http://localhost:11434
# Stable Diffusion configuration
stablediffusion:
apiUrl: http://localhost:7860
Frontend Config (web/.env.development
)
# API base URL
VITE_API_BASE_URL=http://localhost:3000
# Application title
VITE_APP_TITLE=Lingmengcan AI Platform
π€ Contributing
We welcome all forms of contributions!
- π΄ Fork the repository
- πΏ Create feature branch (
git checkout -b feature/AmazingFeature
) - πΎ Commit changes (
git commit -m 'Add some AmazingFeature'
) - π€ Push to branch (
git push origin feature/AmazingFeature
) - π Open Pull Request
Development Guidelines
- Code Style: ESLint + Prettier
- Commit Convention: Conventional Commits
- Test Coverage: Add tests for new features
π License
This project is licensed under the MIT License
π Star History
π¬ Community
- π¬ QQ Group: 651535270
- π§ Email: lingmengcan@example.com
- π Issues: GitHub Issues
π Acknowledgments
Thanks to the following open source projects:
- Vue.js - Progressive JavaScript Framework
- NestJS - Enterprise Node.js Framework
- LangChain - AI Application Development Framework
- Stable Diffusion - AI Image Generation
- TDesign - Vue 3 Component Library
β If this project helps you, please give us a Star!
Made with β€οΈ by Lingmengcan