Без опису

anhuiqiang 664e531d4c 国际化 1 тиждень тому
docs 664e531d4c 国际化 1 тиждень тому
libreoffice-server fdef15aeaf 国际化 1 тиждень тому
nginx 0702802317 init 3 тижнів тому
server 664e531d4c 国际化 1 тиждень тому
web 664e531d4c 国际化 1 тиждень тому
.antigravityrules 3de01b797f 智能体与知识图谱设计 1 тиждень тому
.cursorrules 08127bc9a7 fix rule 2 тижнів тому
.dockerignore 202b276dc6 fix build error 1 тиждень тому
.gitignore 01b49c4b51 fix merge error 1 тиждень тому
AGENTS.md 65a87a31c1 代码风格规范更新 1 тиждень тому
CLAUDE.md 6f45f9f75e Merge AuraK-improveOrgUserManager into AuraK-3.0 1 тиждень тому
FEATURE_SUMMARY.md 50df79fabb feature 2 тижнів тому
INTERNAL_DEPLOYMENT_GUIDE.md 50df79fabb feature 2 тижнів тому
INTERNAL_DEPLOYMENT_SUMMARY.md 50df79fabb feature 2 тижнів тому
LICENSE 0702802317 init 3 тижнів тому
QUICK_START.md 8164995420 new version 3 тижнів тому
README.md 664e531d4c 国际化 1 тиждень тому
all_used_keys.txt 005974129a bug fix 2 тижнів тому
apply_cjk_translations.js 08127bc9a7 fix rule 2 тижнів тому
apply_cjk_translations.py 08127bc9a7 fix rule 2 тижнів тому
apply_translations.js 558d96e5ec bugfix 2 тижнів тому
auto_dict.json a0959d23b1 国际化 1 тиждень тому
auto_replace.js a0959d23b1 国际化 1 тиждень тому
auto_translator.js a0959d23b1 国际化 1 тиждень тому
backend_cjk.txt a0959d23b1 国际化 1 тиждень тому
build_and_push.bat 87bb5a2578 create docker image and push & auto deploy 1 тиждень тому
build_and_push.sh 87bb5a2578 create docker image and push & auto deploy 1 тиждень тому
check_all_dbs.js 57eed1b8e5 能力测试 1 тиждень тому
check_schema.js 57eed1b8e5 能力测试 1 тиждень тому
cjk_extract.json a0959d23b1 国际化 1 тиждень тому
cjk_files.txt a0959d23b1 国际化 1 тиждень тому
clean_translations.js 50df79fabb feature 2 тижнів тому
clean_translations.py 50df79fabb feature 2 тижнів тому
deploy.sh 87bb5a2578 create docker image and push & auto deploy 1 тиждень тому
docker-compose.yml 87bb5a2578 create docker image and push & auto deploy 1 тиждень тому
extract_cjk.js 08127bc9a7 fix rule 2 тижнів тому
extract_cjk.py 08127bc9a7 fix rule 2 тижнів тому
extract_keys.js 50df79fabb feature 2 тижнів тому
extract_logs.js 558d96e5ec bugfix 2 тижнів тому
extract_strings.js 558d96e5ec bugfix 2 тижнів тому
files_to_translate.json 558d96e5ec bugfix 2 тижнів тому
final_cleanup.js 50df79fabb feature 2 тижнів тому
final_fix_braces.js 50df79fabb feature 2 тижнів тому
fix_empty_translations.js 50df79fabb feature 2 тижнів тому
identifier.sqlite 0702802317 init 3 тижнів тому
lint_output.txt 005974129a bug fix 2 тижнів тому
log_dups.txt 005974129a bug fix 2 тижнів тому
package-lock.json e6b6d31452 fix merge error 1 тиждень тому
package.json 8164995420 new version 3 тижнів тому
query_columns.js 57eed1b8e5 能力测试 1 тиждень тому
query_db.js 57eed1b8e5 能力测试 1 тиждень тому
remaining_4.txt a0959d23b1 国际化 1 тиждень тому
remaining_cjk.txt a0959d23b1 国际化 1 тиждень тому
sync_translations.js 50df79fabb feature 2 тижнів тому
test_admin_features.md 50df79fabb feature 2 тижнів тому
tmp_duplicates.txt 005974129a bug fix 2 тижнів тому
translation_map.json 664e531d4c 国际化 1 тиждень тому
true_code.txt a0959d23b1 国际化 1 тиждень тому
yarn.lock 9ec81b3f1b feishu plugin 1 тиждень тому

README.md

AuraK

AuraK is a multi-tenant intelligent AI knowledge base platform. Built with React + NestJS, it's a full-stack RAG (Retrieval-Augmented Generation) system with external API support, RBAC, and tenant isolation.

✨ Features

  • 🔐 User System: Complete user registration, login, and permission management
  • 🤖 Multi-Model Support: OpenAI-compatible interfaces + Google Gemini native support
  • 📚 Intelligent Knowledge Base: Document upload, chunking, vectorization, hybrid search
  • 💬 Streaming Chat: Real-time display of processing status and generated content
  • 🔍 Citation Tracking: Clear display of source documents and related segments for answers
  • 🌍 Multi-Language Support: Japanese, Chinese, and English for interface and AI responses
  • 👁️ Vision Capabilities: Supports multimodal models for image processing
  • ⚙️ Flexible Configuration: User-specific API keys and inference parameter customization
  • 🎯 Dual-Mode Processing: Fast mode (Tika) + High-precision mode (Vision Pipeline)
  • 💰 Cost Management: User quota management and cost estimation

🏗️ Tech Stack

Frontend

  • Framework: React 19 + TypeScript + Vite
  • Styling: Tailwind CSS
  • Icons: Lucide React
  • State Management: React Context

Backend

  • Framework: NestJS + TypeScript
  • AI Framework: LangChain
  • Database: SQLite (metadata) + Elasticsearch (vector storage)
  • File Processing: Apache Tika + Vision Pipeline
  • Authentication: JWT
  • Document Conversion: LibreOffice + ImageMagick

🏢 Internal Network Deployment

This system supports deployment in internal networks. Main modifications include:

  • External Resources: KaTeX CSS moved from external CDN to local resources
  • AI Models: Supports configuring internal AI model services without external API access
  • Build Configuration: Dockerfiles can be configured to use internal image registries

See Internal Deployment Guide for detailed configuration instructions.

🚀 Quick Start

Prerequisites

  • Node.js 18+
  • Yarn
  • Docker & Docker Compose

1. Clone the Project

git clone <repository-url>
cd simple-kb

2. Install Dependencies

yarn install

3. Start Basic Services

docker-compose up -d elasticsearch tika libreoffice

4. Configure Environment Variables

# Backend environment setup
cp server/.env.sample server/.env
# Edit server/.env file (set API keys, etc.)

# Frontend environment setup
cp web/.env.example web/.env
# Edit web/.env file (modify frontend settings as needed)

See the comments in server/.env.sample and web/.env.example for detailed configuration.

5. Start Development Server

yarn dev

Access http://localhost:5173 to get started!

📖 User Guide

1. User Registration/Login

  • Account registration is required for first-time use.
  • Each user has their own independent knowledge base and model settings.

2. AI Model Configuration

  • Add AI models from "Model Management".
  • Supports OpenAI, DeepSeek, Claude and other compatible interfaces.
  • Supports Google Gemini native interface.
  • Configure LLM, Embedding, and Rerank models.

3. Document Upload

  • Supports various formats: PDF, Word, PPT, Excel, etc.
  • Choose between Fast mode (text-only) or High-precision mode (image + text mixed).
  • Adjustable chunk size and overlap for documents.
  • Select embedding model for vectorization.

4. Start Intelligent Q&A

  • Ask questions based on uploaded documents.
  • View search and generation process in real-time.
  • Check answer sources and related document fragments.

🔧 Configuration Guide

Model Settings

  • LLM Model: Used for dialogue generation (e.g., GPT-4, Gemini-1.5-Pro)
  • Embedding Model: Used for document vectorization (e.g., text-embedding-3-small)
  • Rerank Model: Used for re-ranking search results (optional)

Inference Parameters

  • Temperature: Controls answer randomness (0-1)
  • Max Tokens: Maximum output length
  • Top K: Number of document segments to search
  • Similarity Threshold: Filters low-relevance content

📁 Project Structure

simple-kb/
├── web/                 # Frontend application
│   ├── components/      # React components
│   ├── services/        # API services
│   ├── contexts/        # React Context
│   └── utils/          # Utility functions
├── server/             # Backend application
│   ├── src/
│   │   ├── auth/       # Authentication module
│   │   ├── chat/       # Chat module
│   │   ├── knowledge-base/ # Knowledge base module
│   │   ├── model-config/   # Model configuration module
│   │   └── user/       # User module
│   └── data/           # Data storage
├── docs/               # Project documentation
└── docker-compose.yml  # Docker configuration

📚 Documentation

🐳 Docker Deployment

Development Environment

# Start basic services
docker-compose up -d elasticsearch tika

# Local development
yarn dev

Production Environment

# Build and start all services
docker-compose up -d

🤝 Contributing

  1. Fork the project
  2. Create a feature branch (git checkout -b feature/AmazingFeature)
  3. Commit your changes (git commit -m 'Add some AmazingFeature')
  4. Push to the branch (git push origin feature/AmazingFeature)
  5. Open a Pull Request

📄 License

This project is provided under the MIT license. See the LICENSE file for details.

🙏 Acknowledgments

📞 Support

For questions or suggestions, please submit an Issue or contact the maintainers.