stratix-python  by LayerLens

Production AI evaluation SDK and CLI

Created 11 months ago
276 stars

Top 93.6% on SourcePulse

GitHubView on GitHub
Project Summary

Summary

Stratix Python SDK provides a production-grade infrastructure for evaluating AI models and agents, targeting engineers and researchers building AI systems. It offers a comprehensive suite of tools for benchmarking, tracing agent behavior, building custom judges, and integrating evaluation gates into CI/CD pipelines, thereby streamlining the AI development lifecycle and ensuring model quality.

How It Works

Stratix employs a multi-stage evaluation approach, allowing users to progress from simple heuristic checks to sophisticated auto-optimized GEPA judges. It uniquely supports detailed agent trace analysis, enabling the playback and step-by-step evaluation of complex, multi-step agent executions. The SDK provides direct access to over 200 pre-evaluated models and 50+ benchmarks, eliminating the need for manual leaderboard scraping or data wrangling. This approach facilitates prompt-level comparisons and integrates seamlessly with CI/CD workflows for automated quality gating.

Quick Start & Requirements

  • Primary install / run command:
    pip install --extra-index-url https://sdk.layerlens.ai/package layerlens[cli]
    
    (Note: layerlens is hosted on a private index during early access.)
  • Non-default prerequisites and dependencies: An API key obtained from app.layerlens.ai.
  • Links:
    • Docs: layerlens.gitbook.io/stratix-python-sdk
    • Discord: Mentioned for community engagement.

Highlighted Details

  • Access to 200+ models and 50+ benchmarks directly via the SDK (pc.models.get()).
  • Native head-to-head model comparisons with outcome filters for detailed analysis.
  • A 4-generation evaluation ladder: heuristic checks, model-graded scoring, deliberation panels, and auto-optimized GEPA judges.
  • Full agent trace evaluation, including upload, replay, and step-by-step judging.
  • CI/CD evaluation gates (layerlens ci run --threshold 0.8) for automated quality control.
  • OpenTelemetry (OTLP) export support.

Maintenance & Community

The project is actively used by LayerLens and other teams building production AI systems. A Discord community is available for SDK support, sharing custom judges and agent workflows, accessing free Stratix Premium credits, and influencing the roadmap.

Licensing & Compatibility

  • License type: Apache 2.0.
  • Compatibility notes: The Apache 2.0 license is permissive and generally compatible with commercial use and closed-source linking.

Limitations & Caveats

Installation requires using a private package index during early access. Advanced features such as trace analysis, custom judges, scorers, and CI gates are part of Stratix Premium and require purchasing credits. An API key is mandatory for all functionalities.

Health Check
Last Commit

1 week ago

Responsiveness

Inactive

Pull Requests (30d)
1
Issues (30d)
0
Star History
23 stars in the last 30 days

Explore Similar Projects

Starred by Shizhe Diao Shizhe Diao(Author of LMFlow; Research Scientist at NVIDIA), Michael Chiang Michael Chiang(Cofounder of Ollama), and
7 more.

openbench by groq

0%
784
Provider-agnostic LLM evaluation infrastructure
Created 11 months ago
Updated 2 weeks ago
Feedback? Help us improve.