aimatrix-cli UR² Commands Reference
The aimatrix-cli provides comprehensive command-line access to the UR² (Unified RAG-Reasoning) Framework capabilities within the AMX Engine, enabling developers and operators to assess query difficulty, configure retrieval strategies, monitor performance, and manage the continuous learning pipeline.
Overview
The UR² command suite in aimatrix-cli provides:
- Real-time difficulty assessment for queries
- Configuration management for UR² parameters
- Performance monitoring and metrics collection
- Curriculum training management
- Experience replay buffer operations
- Resource allocation optimization
Installation
|
|
Command Structure
|
|
Global Options
Option | Short | Description | Default |
---|---|---|---|
--engine-url |
-e |
AMX Engine endpoint URL | localhost:8080 |
--output |
-o |
Output format (json, table, yaml) | table |
--verbose |
-v |
Enable verbose logging | false |
--config |
-c |
Path to configuration file | ~/.aimatrix/config |
Core Commands
assess - Difficulty Assessment
Assess the difficulty of a query to determine optimal processing strategy.
|
|
Output Example:
|
|
config - Configuration Management
Manage UR² configuration parameters.
|
|
metrics - Performance Monitoring
Monitor UR² performance metrics and statistics.
|
|
Output Example:
╭─────────────────────────────────────────────────────────────╮
│ UR² Performance Metrics │
├─────────────────────────────────────────────────────────────┤
│ Query Distribution │
│ Simple: 42% (21,543 queries) │
│ Moderate: 31% (15,892 queries) │
│ Complex: 20% (10,256 queries) │
│ Expert: 7% (3,589 queries) │
├─────────────────────────────────────────────────────────────┤
│ Performance Gains │
│ Response Time: -43% (avg: 32ms → 18ms) │
│ Accuracy: +31% (78% → 91%) │
│ API Calls: -58% (10K/hr → 4.2K/hr) │
│ Resource Usage: -35% (normalized) │
├─────────────────────────────────────────────────────────────┤
│ Learning Progress │
│ Episodes: 125,430 │
│ Avg Reward: 0.847 │
│ Convergence: 87% │
╰─────────────────────────────────────────────────────────────╯
train - Curriculum Training Management
Manage curriculum training jobs for continuous improvement.
|
|
replay - Experience Replay Management
Manage the experience replay buffer for reinforcement learning.
|
|
optimize - Resource Optimization
Optimize resource allocation based on workload patterns.
|
|
Advanced Usage
Batch Processing
Process multiple queries with difficulty assessment:
|
|
Pipeline Integration
Integrate UR² commands into CI/CD pipelines:
|
|
Scripting Examples
Python Integration:
|
|
Node.js Integration:
|
|
Configuration Files
UR² Configuration Schema
|
|
Environment Variables
Configure aimatrix-cli UR² behavior using environment variables:
|
|
Troubleshooting
Common Issues
Difficulty assessment timeout:
|
|
Configuration not applying:
|
|
Metrics not collecting:
|
|
Debug Mode
Enable comprehensive debugging for UR² operations:
|
|
Performance Tips
Optimization Strategies
- Batch Processing: Process multiple queries together for better throughput
- Connection Pooling: Reuse engine connections with
--persistent
- Local Caching: Enable local result caching with
--cache
- Async Operations: Use
--async
for non-blocking operations
|
|
Resource Management
Monitor and optimize resource usage:
|
|
Integration Examples
Docker Integration
|
|
Kubernetes CronJob
|
|
Command Reference Summary
Command | Description | Example |
---|---|---|
assess |
Assess query difficulty | aimatrix ur2 assess --query "..." |
config |
Manage configuration | aimatrix ur2 config set key value |
metrics |
View performance metrics | aimatrix ur2 metrics --component all |
train |
Manage training jobs | aimatrix ur2 train start --dataset data/ |
replay |
Manage experience buffer | aimatrix ur2 replay show --limit 100 |
optimize |
Resource optimization | aimatrix ur2 optimize analyze |
batch |
Batch processing | aimatrix ur2 batch process --file q.txt |
health |
Check UR² health | aimatrix ur2 health |
debug |
Debug operations | aimatrix ur2 debug report |
Support
For additional help and support:
|
|
The UR² Framework in aimatrix-cli brings cutting-edge AI optimization directly to your command line, enabling unprecedented control over query processing, resource allocation, and continuous learning.