Get started with LLM Auto Optimizer in 5 minutes.
- Rust 1.75+ - Install
- Docker & Docker Compose - Install
- PostgreSQL 15+ (optional, can use Docker)
- Redis (optional, can use Docker)
git clone https://github.com/globalbusinessadvisors/llm-auto-optimizer.git
cd llm-auto-optimizer
# Build the project
cargo build --release# Start PostgreSQL, Redis, and Kafka
docker-compose up -d
# Wait for services to be ready
sleep 10# Copy example configuration
cp config.example.yaml config.yaml
# Edit configuration (optional)
# Set your database URL, Kafka brokers, etc.# Start the optimizer service
cargo run --release --bin llm-optimizer-service
# Or use the pre-built binary
./target/release/llm-optimizer-service# Check health endpoint
curl http://localhost:8080/health
# Expected response:
# {"status":"healthy","version":"0.1.0"}- User Guide: Read the User Guide for detailed usage
- API Documentation: View API Reference
- Configuration: See Configuration Reference
- Examples: Check examples/ directory
# Run tests
cargo test --all
# Check logs
docker-compose logs -f optimizer
# Stop services
docker-compose down
# Clean build
cargo clean && cargo build --release# Change port in config.yaml
server:
port: 9090 # Use different port# Check PostgreSQL is running
docker-compose ps postgres
# Verify connection string
export DATABASE_URL="postgresql://user:pass@localhost:5432/optimizer"# Update Rust toolchain
rustup update stable
# Clear cache and rebuild
cargo clean
cargo build --releaseuse llm_auto_optimizer::{Optimizer, Config};
#[tokio::main]
async fn main() -> Result<(), Box<dyn std::error::Error>> {
// Load configuration
let config = Config::from_file("config.yaml")?;
// Initialize optimizer
let optimizer = Optimizer::new(config).await?;
// Start optimization loop
optimizer.run().await?;
Ok(())
}- Issues: GitHub Issues
- Discussions: GitHub Discussions
- Documentation: Full Documentation