observers  by cfahlgren1

Lightweight library for AI observability

created 9 months ago
250 stars

Top 100.0% on SourcePulse

GitHubView on GitHub
Project Summary

Observers is a lightweight Python library designed for AI observability, enabling developers to track and store interactions with generative AI models. It targets AI developers and researchers who need to monitor LLM usage, debug issues, and analyze model performance. The library provides a unified interface for various LLM providers and storage backends, simplifying the observability workflow.

How It Works

Observers wrap around generative AI API calls, capturing interaction data. This data is then passed to "stores," which are responsible for persisting the observations to different backends. This separation of concerns allows for flexible integration with various LLM providers and data storage solutions, such as Hugging Face Datasets, DuckDB, Argilla, and OpenTelemetry.

Quick Start & Requirements

  • Install with pip install observers.
  • Install with LLM provider integrations: pip install observers[aisuite] or pip install observers[litellm].
  • Install for OpenTelemetry: pip install observers[opentelemetry].
  • Requires Python.

Highlighted Details

  • Supports sync and async versions for OpenAI-compliant APIs, Hugging Face Transformers, Hugging Face Inference Client, AISuite, and Litellm.
  • Offers multiple storage backends including Hugging Face Datasets, DuckDB (default), Argilla, and OpenTelemetry.
  • Allows querying stored data via Hugging Face Datasets Viewer or DuckDB CLI.

Maintenance & Community

No specific details on contributors, sponsorships, or community channels are provided in the README.

Licensing & Compatibility

The README does not explicitly state the license type.

Limitations & Caveats

The README does not detail any specific limitations, known bugs, or deprecation notices. The OpenTelemetry store's feature availability is noted as dependent on the specific provider used.

Health Check
Last commit

5 months ago

Responsiveness

Inactive

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

Explore Similar Projects

Starred by Chip Huyen Chip Huyen(Author of "AI Engineering", "Designing Machine Learning Systems") and Omar Khattab Omar Khattab(Author of DSPy, ColBERT; Professor at MIT).

langwatch by langwatch

0.9%
2k
LLM ops platform for traces, analytics, evaluations, datasets, and prompt optimization
created 1 year ago
updated 1 day ago
Starred by Omar Sanseviero Omar Sanseviero(DevRel at Google DeepMind), Chip Huyen Chip Huyen(Author of "AI Engineering", "Designing Machine Learning Systems"), and
4 more.

argilla by argilla-io

0.2%
5k
Collaboration tool for building high-quality AI datasets
created 4 years ago
updated 5 days ago
Feedback? Help us improve.