A powerful enterprise-grade AI framework built with Rust for creating intelligent applications
π Project Status Update: LumosAI has completed comprehensive project enhancement work!
- β All compilation issues have been fixed
- β Complete testing framework established (7/7 tests passing)
- β Enterprise-grade features fully preserved
- β Production-ready status achieved
π See Project Completion Report for detailed information
π Documentation | π Quick Start | π‘ Examples | π€ Contributing
- Multi-Model Support: OpenAI GPT, Anthropic Claude, local models
- Specialized Agents: Research, writing, analysis, and custom roles
- Tool Integration: Extensible tool system with built-in tools
- Conversation Memory: Persistent context and conversation history
- Document Processing: PDF, text, markdown, and web content
- Smart Chunking: Recursive, semantic, and custom chunking strategies
- Vector Storage: Memory, PostgreSQL, Qdrant, Weaviate backends
- Hybrid Retrieval: Semantic search + keyword matching
- Multi-Agent Collaboration: Sequential, parallel, and conditional workflows
- Task Management: Complex task decomposition and execution
- Event-Driven Architecture: Real-time event processing and routing
- Error Handling: Robust retry mechanisms and fallback strategies
- Authentication: JWT, OAuth2, API keys, multi-factor authentication
- Authorization: Role-based access control (RBAC) with fine-grained permissions
- Multi-Tenant: Isolated tenant environments with custom configurations
- Audit Logging: Comprehensive security and compliance logging
- Real-time Metrics: Performance, usage, and health monitoring
- Distributed Tracing: Request tracing across agent interactions
- Custom Dashboards: Grafana and Prometheus integration
- Alerting: Intelligent alerting for system anomalies
- Rust Performance: Memory-safe, zero-cost abstractions
- Async/Await: Non-blocking I/O for high concurrency
- Caching: Intelligent caching at multiple layers
- Scalability: Horizontal scaling with load balancing
Add LumosAI to your Cargo.toml
:
[dependencies]
lumosai = "0.1.3"
tokio = { version = "1.0", features = ["full"] }
use lumosai::prelude::*;
#[tokio::main]
async fn main() -> Result<()> {
// π€ Create a simple agent
let agent = Agent::builder()
.name("assistant")
.model("gpt-4")
.system_prompt("You are a helpful AI assistant")
.build()
.await?;
// π¬ Have a conversation
let response = agent.chat("Hello, how are you?").await?;
println!("Agent: {}", response);
Ok(())
}
use lumosai::prelude::*;
#[tokio::main]
async fn main() -> Result<()> {
// π¦ Create vector storage
let storage = VectorStorage::memory().await?;
// π§ Create RAG system
let rag = RagSystem::builder()
.storage(storage)
.embedding_provider("openai")
.chunking_strategy("recursive")
.build()
.await?;
// π Add documents
rag.add_document("AI is transforming industries...").await?;
// π Search and generate
let results = rag.search("What is AI?", 5).await?;
println!("Found {} relevant documents", results.len());
Ok(())
}
Our comprehensive example suite demonstrates real-world usage patterns:
Example | Description | Complexity |
---|---|---|
π€ Basic Agent | Simple agent creation and conversation | β |
π§ RAG System | Document processing and retrieval | ββ |
π οΈ Tool Integration | Adding tools to agents | ββ |
πΎ Memory System | Conversation memory and context | ββ |
π Vector Storage | Vector database operations | ββ |
π Streaming Response | Real-time streaming responses | βββ |
π₯ Multi-Agent Workflow | Agent collaboration patterns | βββ |
π Enhanced Features | Advanced framework capabilities | βββ |
β‘ Performance Benchmark | Performance testing and optimization | βββ |
π Authentication | Enterprise security features | ββββ |
π Monitoring | System monitoring and metrics | ββββ |
π― Complete API Demo | Full framework demonstration | βββββ |
# Basic agent example
cargo run --example basic_agent
# RAG system with document processing
cargo run --example rag_system
# Multi-agent collaboration
cargo run --example multi_agent_workflow
# Complete API demonstration
cargo run --example simplified_api_complete_demo
LumosAI follows a modular, layered architecture designed for scalability and maintainability:
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
β Application Layer β
β βββββββββββββββ βββββββββββββββ βββββββββββββββββββββββββββ β
β β Web UI β β CLI β β Custom Applications β β
β βββββββββββββββ βββββββββββββββ βββββββββββββββββββββββββββ β
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
β API Layer β
β βββββββββββββββ βββββββββββββββ βββββββββββββββββββββββββββ β
β β REST API β β GraphQL β β WebSocket API β β
β βββββββββββββββ βββββββββββββββ βββββββββββββββββββββββββββ β
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
β Service Layer β
β βββββββββββββββ βββββββββββββββ βββββββββββββββββββββββββββ β
β β Agents β β Workflows β β Authentication β β
β β Memory β β RAG β β Monitoring β β
β β Tools β β Events β β Security β β
β βββββββββββββββ βββββββββββββββ βββββββββββββββββββββββββββ β
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
β Core Layer β
β βββββββββββββββ βββββββββββββββ βββββββββββββββββββββββββββ β
β β Traits β β Types β β Utilities β β
β β Errors β β Config β β Macros β β
β βββββββββββββββ βββββββββββββββ βββββββββββββββββββββββββββ β
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
β Infrastructure Layer β
β βββββββββββββββ βββββββββββββββ βββββββββββββββββββββββββββ β
β β Databases β β Storage β β External APIs β β
β β Cache β β Queues β β Providers β β
β βββββββββββββββ βββββββββββββββ βββββββββββββββββββββββββββ β
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
- π€ Agent System: Intelligent agents with specialized capabilities
- π§ RAG Engine: Advanced retrieval-augmented generation
- π Workflow Engine: Multi-agent orchestration and task management
- πΎ Memory System: Persistent context and conversation management
- π οΈ Tool System: Extensible tool integration framework
- π Security Layer: Authentication, authorization, and audit logging
- π Monitoring: Real-time metrics, tracing, and observability
- π Getting Started Guide - Your first steps with LumosAI
- π Overview - Project overview and introduction
- ποΈ Architecture - System architecture and design
- βοΈ Tech Stack - Technology stack and dependencies
- π§ Core Components - Core framework components
- π API Reference - Complete API documentation
- π οΈ Development Guide - Development setup and guidelines
- π Deployment Guide - Production deployment strategies
- π§ Vector Databases - Vector database integration guide
- π Vector API Reference - Vector operations API
- β‘ Chain Operations - Best practices for chain operations
- π§ DSL Macros - Domain-specific language macros
- π Release Guide - Release management and versioning
- π§ͺ Testing Guide - Testing strategies and best practices
- β FAQ - Frequently asked questions
- π Quick Start - Quick start guide
We welcome contributions of all kinds! Whether you're fixing bugs, adding features, improving documentation, or sharing feedback, your contributions help make LumosAI better for everyone.
- π΄ Fork the repository
- πΏ Create your feature branch (
git checkout -b feature/amazing-feature
) - β Make your changes (follow our coding standards)
- π§ͺ Add tests for your changes
- π Update documentation if needed
- β¨ Commit your changes (
git commit -m 'Add amazing feature'
) - π€ Push to the branch (
git push origin feature/amazing-feature
) - π Open a Pull Request
- π Bug Reports: Help us identify and fix issues
- π‘ Feature Requests: Suggest new capabilities and improvements
- π Documentation: Improve guides, examples, and API docs
- π§ͺ Testing: Add test coverage and improve test quality
- π¨ Examples: Create real-world usage examples
- π§ Performance: Optimize performance and resource usage
- π‘οΈ Security: Enhance security features and practices
# Clone the repository
git clone https://github.com/louloulin/lumos.ai.git
cd lumosai
# Install Rust (if not already installed)
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh
# Build the project
cargo build
# Run tests
cargo test
# Run examples
cargo run --example basic_agent
# Check code quality
cargo clippy
cargo fmt --check
- π¦ Rust Best Practices: Follow Rust idioms and conventions
- π Documentation: Document all public APIs with examples
- π§ͺ Testing: Maintain high test coverage (aim for >80%)
- π Code Quality: Pass
cargo clippy
andcargo fmt
checks - β‘ Performance: Consider performance implications of changes
- π‘οΈ Security: Follow secure coding practices
good first issue
- Perfect for newcomershelp wanted
- Community contributions welcomebug
- Something isn't workingenhancement
- New feature or improvementdocumentation
- Documentation improvementsperformance
- Performance-related changessecurity
- Security-related issues
- π¬ Discord: Join our Discord server for real-time discussions
- π§ Mailing List: Subscribe to our newsletter for updates
- π¦ Twitter: Follow @LumosAI for announcements
- πΊ YouTube: LumosAI Channel for tutorials and demos
- π Documentation: Check our comprehensive docs
- π‘ Examples: Browse example applications
- π Issues: Report bugs on GitHub Issues
- π¬ Discussions: Ask questions in GitHub Discussions
- π§ Email: Contact us at support@lumosai.com
Thanks to all our amazing contributors! π
For enterprise customers, we offer:
- π― Priority Support: Dedicated support channels
- ποΈ Custom Development: Tailored solutions for your needs
- π Training & Consulting: Expert guidance and training
- π Security & Compliance: Enhanced security features
- π SLA Guarantees: Service level agreements
Contact us at enterprise@lumosai.com for more information.
This project is licensed under the MIT License - see the LICENSE file for details.
MIT License
Copyright (c) 2024 LumosAI
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
β Star us on GitHub if you find LumosAI helpful!
β Star | π Report Bug | π‘ Request Feature | π Documentation
Built with β€οΈ by the LumosAI team