Skip to content

An intelligent AI platform built with modern web technologies, providing comprehensive AI model management, knowledge base operations, and conversational AI capabilities.

License

Notifications You must be signed in to change notification settings

Austin-Patrician/LuminaBrain-Frontend

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

92 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

LuminaBrain 🧠

An intelligent AI platform built with modern web technologies, providing comprehensive AI model management, knowledge base operations, and conversational AI capabilities.

LuminaBrain React TypeScript Ant Design Vite

δΈ­ζ–‡ | English

✨ Features

πŸ€– AI Chat & Conversation

  • 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 Management

  • 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

πŸ”§ AI Model Management

  • 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

πŸ›  Agent & Application Management

  • 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

πŸ‘₯ User & Permission System

  • Role-based Access: Comprehensive RBAC system
  • Organization Management: Multi-tenant organization support
  • Permission Control: Granular permission management
  • User Profiles: Complete user management system

πŸ“Š Analytics & Monitoring

  • Dashboard: Real-time analytics and metrics
  • Usage Statistics: Detailed usage tracking and reporting
  • Performance Monitoring: System performance insights
  • Audit Logs: Comprehensive activity logging

πŸš€ Quick Start

Prerequisites

  • Node.js: >= 20.x
  • pnpm: >= 9.1.0 (recommended package manager)

Installation

# Clone the repository
git clone https://github.com/d3george/slash-admin.git
cd slash-admin

# Install dependencies
pnpm install

# Start development server
pnpm dev

Environment Configuration

Create environment files based on your deployment:

# Development
cp .env.development .env.local

# Production
cp .env.production .env.local

Configure 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=development

πŸ— Project Structure

src/
β”œβ”€β”€ 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

🎨 Tech Stack

Frontend Framework

  • 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

UI & Styling

  • 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

State Management & Data

  • Zustand: Lightweight state management
  • TanStack React Query: Powerful data synchronization
  • React Router: Declarative routing

Development Tools

  • Biome: Fast formatter and linter
  • Lefthook: Git hooks management
  • Commitlint: Conventional commit enforcement

πŸ“– Usage Guide

Creating a Knowledge Base

  1. Navigate to Knowledge Management
  2. Click "New" button
  3. Configure basic information:
    • Name and description
    • Select chat and embedding models
    • Optionally configure rerank model
    • Enable OCR if needed
  4. Set advanced token configurations
  5. Click "Create Knowledge Base"

Importing Knowledge Content

  1. Open your knowledge base
  2. Click "Import" dropdown
  3. 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
  4. Configure processing options
  5. Upload and process content

Starting an AI Conversation

  1. Go to Chat interface
  2. Select an AI model from the dropdown
  3. Optionally enable Thinking Mode
  4. Attach files if needed
  5. Type your message and click Send

Managing AI Agents

  1. Access Agent Management
  2. Create new agent with specific instructions
  3. Configure model parameters
  4. Set function choices and behaviors
  5. Test and deploy agent

πŸ”§ Configuration

Permission System

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

🚒 Deployment

Build for Production

  • 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 preview

Docker Deployment

FROM node:20-alpine
WORKDIR /app
COPY package*.json ./
RUN pnpm install
COPY . .
RUN pnpm build
EXPOSE 3000
CMD ["pnpm", "preview"]

Environment Variables for Production

VITE_APP_BASE_API=https://your-api-domain.com
VITE_APP_ENV=production

🀝 Contributing

We welcome contributions! Please see our Contributing Guide for details.

Development Workflow

  1. Fork the repository
  2. Create a feature branch: git checkout -b feature/amazing-feature
  3. Commit your changes: git commit -m 'feat: add amazing feature'
  4. Push to the branch: git push origin feature/amazing-feature
  5. Submit a Pull Request

Commit Convention

We use Conventional Commits:

  • feat: New features
  • fix: Bug fixes
  • docs: Documentation changes
  • style: Code style changes
  • refactor: Code refactoring
  • test: Test additions or modifications
  • chore: Build process or auxiliary tool changes

πŸ“„ License

This project is licensed under the MIT License - see the LICENSE file for details.

πŸ™‹β€β™‚οΈ Support

πŸ—Ί Roadmap

  • 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

🌟 Acknowledgments

  • 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

Star History

Star History Chart


Made with ❀️ by the LuminaBrain Team

Follow us on GitHub Star this repo

About

An intelligent AI platform built with modern web technologies, providing comprehensive AI model management, knowledge base operations, and conversational AI capabilities.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •