System Architecture Overview
Three-Layer Design
- Real-Time File Monitoring Layer
- Real-time detection of file system changes (creation/renaming/deletion)
Filename indexing (milisecond-level response)
File content indexing (processed uniformly during off-peak hours at midnight)
- Asynchronous batch processing for index updates (separate coroutines for read, write, and delete operations)
- Full audit at 12:00 AM daily to ensure eventual consistency
- Intelligent Indexing Layer
- Snowflake algorithm for generating document IDs (capable of generating 400,000+ IDs per second)
- Automatic format recognition supporting over 70 file types
- Multimodal Search Layer
- Four-dimensional combined search:
Full-text search (name/content/tags/summary)
Filename fuzzy matching
Filename exact matching
Semantic search (currently supports images only)
Core Advantages
🚀Ultra-Fast Index Building
- Test data: Total size 65.5GB, 200,000 files
- Hardware configuration: 4-core N100 CPU, 500GB HDD
💡Intelligent Resource Scheduling
- On-demand loading mechanism: Model files are downloaded based on actual usage needs, enabling lightweight and fast startup
- Dynamic throttling strategy:
Maximum documents processed per session: 100,000 per type
Maximum processing time: 5 minutes per type
- Write barrier protection: Prevents CPU spikes caused by high-frequency writes
Use Cases
- Knowledge Base Management: Quickly locate documents
- Multimedia Archiving: Search for images/videos vy content
- Compliance Auditing: Accurately track file change history
- Team collaboration: Cross-format content association retrieval
Full-Text Search Supported Formats and Processing Methods Table
Note: Formats marked with ★ require the ZimaOS-AI module to be enabled. Full processing capability depends on hardware configuration. The system continuously updates the supported format list; refer to official documentation for the latest support.
🌐 AI-Enhanced Search
- Image processing: MiniCPM-o-2.6 OCR + tag recognition
- Audio/video processing: Whisper-large-v3 subtitle generation
- Semantic analysis: MiniLM-L6 semantic vectorization
- Reference document: Enable AI search for ZimaOS