Skip to content

Observability

The Observability system in AiCore provides comprehensive tools for monitoring, analyzing, and optimizing LLM and embedding operations in real-time.

Key Features

  • Real-time Metrics: Track performance, latency, and usage patterns
  • Request Tracing: Full visibility into request/response cycles
  • Usage Analytics: Monitor token consumption and API costs
  • Performance Monitoring: Identify bottlenecks and optimize operations
  • Custom Dashboards: Visualize metrics with interactive charts

Core Components

  1. Collector - Centralized metrics collection system

    • Tracks all LLM/embedding operations
    • Stores historical performance data
    • Supports custom metric definitions
  2. Dashboard - Interactive visualization interface

    • Real-time monitoring
    • Customizable views
    • Performance trend analysis
  3. SQL Analytics - Powerful query capabilities

    • Configure your environment variables (see .env-example)
    • Standard SQL interface
    • Ad-hoc analysis
    • Integration with existing BI tools
  4. Polars Integration - High-performance data analysis

    • Fast DataFrame operations
    • Large-scale data processing
    • Python-native interface
  5. Logging System - Unified logging infrastructure

    • Structured logging
    • Correlation IDs
    • Multiple output formats

Getting Started

To enable observability in your project:

  1. Configure the collector in your settings
  2. Import the dashboard components
  3. Start tracking operations with minimal code changes

For detailed implementation, see our example dashboard.

Released under the MIT License.