An intelligent AI platform built with modern web technologies, providing comprehensive AI model management, knowledge base operations, and conversational AI capabilities.
δΈζ | English
- Multi-Model Support: Support for various AI models (ChatGPT, Claude, etc.)
- Real-time Streaming: Support for both streaming and non-streaming responses
- Context Management: Intelligent conversation history and context preservation
- File Attachments: Upload and process various file formats
- Thinking Mode: Visual representation of AI thinking process
- Knowledge Base Creation: Create and manage knowledge repositories
- Multi-format Import: Support for PDF, Word, Excel, text, and web links
- QA Processing: Specialized Q&A format support with templates
- OCR Support: Optical Character Recognition for image-based content
- Rerank Models: Advanced search ranking with rerank model integration
- Model Configuration: Manage chat, embedding, and rerank models
- Provider Integration: Support for multiple AI providers
- Model Type Classification: Organized model management by type
- Dynamic Loading: Real-time model availability and configuration
- AI Agents: Create and manage specialized AI agents
- Application Types: Support for chat, Text2SQL, and custom applications
- Flow Management: Visual workflow design and execution
- Integration Ready: API-first design for easy integration
- Role-based Access: Comprehensive RBAC system
- Organization Management: Multi-tenant organization support
- Permission Control: Granular permission management
- User Profiles: Complete user management system
- Dashboard: Real-time analytics and metrics
- Usage Statistics: Detailed usage tracking and reporting
- Performance Monitoring: System performance insights
- Audit Logs: Comprehensive activity logging
- Node.js: >= 20.x
- pnpm: >= 9.1.0 (recommended package manager)
# Clone the repository
git clone https://github.com/d3george/slash-admin.git
cd slash-admin
# Install dependencies
pnpm install
# Start development server
pnpm devCreate environment files based on your deployment:
# Development
cp .env.development .env.local
# Production
cp .env.production .env.localConfigure the following environment variables:
# API Configuration
VITE_APP_BASE_API=http://localhost:8080/api
VITE_APP_HOMEPAGE=/dashboard/workbench
VITE_APP_BASE_PATH=/
# Router Mode
VITE_APP_ROUTER_MODE=permission
# Environment
VITE_APP_ENV=developmentsrc/
βββ api/ # API services and client configuration
β βββ apiClient.ts # Axios configuration and interceptors
β βββ services/ # Domain-specific API services
βββ components/ # Reusable UI components
β βββ animate/ # Animation components
β βββ chart/ # Chart components
β βββ editor/ # Rich text editor
β βββ icon/ # Icon components
β βββ ...
βββ layouts/ # Layout components
β βββ dashboard/ # Dashboard layout
β βββ simple/ # Simple layout
βββ pages/ # Feature pages
β βββ Chat/ # AI conversation interface
β βββ knowledge/ # Knowledge base management
β βββ agent/ # AI agent management
β βββ application/ # Application management
β βββ management/ # System management
β βββ ...
βββ router/ # Routing configuration
β βββ routes/ # Route definitions
β βββ hooks/ # Router hooks
βββ store/ # State management (Zustand)
βββ theme/ # Theme system and styling
βββ types/ # TypeScript type definitions
βββ utils/ # Utility functions
- React 18.2.0: Modern React with hooks and concurrent features
- TypeScript: Full type safety and enhanced development experience
- Vite: Lightning-fast build tool and development server
- Ant Design 5.22.1: Enterprise-class UI design language
- Tailwind CSS: Utility-first CSS framework
- Framer Motion: Production-ready motion library
- Vanilla Extract: Zero-runtime CSS-in-JS
- Zustand: Lightweight state management
- TanStack React Query: Powerful data synchronization
- React Router: Declarative routing
- Biome: Fast formatter and linter
- Lefthook: Git hooks management
- Commitlint: Conventional commit enforcement
- Navigate to Knowledge Management
- Click "New" button
- Configure basic information:
- Name and description
- Select chat and embedding models
- Optionally configure rerank model
- Enable OCR if needed
- Set advanced token configurations
- Click "Create Knowledge Base"
- Open your knowledge base
- Click "Import" dropdown
- Choose import type:
- File Import: PDF, Word, Excel, PPT, etc.
- Link Import: Web pages and articles
- Text Import: Direct text input
- QA Import: Structured Q&A data
- Configure processing options
- Upload and process content
- Go to Chat interface
- Select an AI model from the dropdown
- Optionally enable Thinking Mode
- Attach files if needed
- Type your message and click Send
- Access Agent Management
- Create new agent with specific instructions
- Configure model parameters
- Set function choices and behaviors
- Test and deploy agent
The system uses a comprehensive RBAC (Role-Based Access Control) model:
- Roles: Define user roles with specific permissions
- Permissions: Granular access control for features
- Organizations: Multi-tenant support
-
AI Model Provider Recommendation: https://api.token-ai.cn as a model provider platform, cost-effective and stable, with support for multiple models.
-
Qdrant: Supports Docker deployment, recommended to try Qdrant Cloud for a free basic server trial, completely free.
# Build the application
pnpm build
# Preview production build
pnpm previewFROM node:20-alpine
WORKDIR /app
COPY package*.json ./
RUN pnpm install
COPY . .
RUN pnpm build
EXPOSE 3000
CMD ["pnpm", "preview"]VITE_APP_BASE_API=https://your-api-domain.com
VITE_APP_ENV=productionWe welcome contributions! Please see our Contributing Guide for details.
- Fork the repository
- Create a feature branch:
git checkout -b feature/amazing-feature - Commit your changes:
git commit -m 'feat: add amazing feature' - Push to the branch:
git push origin feature/amazing-feature - Submit a Pull Request
We use Conventional Commits:
feat: New featuresfix: Bug fixesdocs: Documentation changesstyle: Code style changesrefactor: Code refactoringtest: Test additions or modificationschore: Build process or auxiliary tool changes
This project is licensed under the MIT License - see the LICENSE file for details.
- π§ Email: [email protected]
- π¬ Discord: Join our community
- π Documentation: docs.luminabrain.com
- π Issues: GitHub Issues
- Multi-language Support: Internationalization for global users
- Mobile App: React Native mobile application
- API Documentation: Comprehensive API documentation
- Plugin System: Extensible plugin architecture
- Advanced Analytics: Enhanced analytics and reporting
- Cloud Integration: Native cloud service integrations
- Ant Design for the excellent UI components
- React for the powerful frontend framework
- Vite for the blazing fast build tool
- AntSK Blazor version AI platform
- Slash-Admin A Modern React Admin Template
- auto-promt AI Prompt Optimization Platform
- All contributors who help make this project better
Made with β€οΈ by the LuminaBrain Team