Skip to main content

Observability stack: OpenTelemetry tracing, Langfuse integration, and drift detection

Project description

rag-forge-observability

OpenTelemetry tracing and query drift detection for the RAG-Forge toolkit.

Installation

pip install rag-forge-observability

Usage

from rag_forge_observability.drift import DriftDetector, DriftBaseline

baseline = DriftBaseline(embeddings=[[1.0, 0.0, 0.0]])
detector = DriftDetector(threshold=0.15)
report = detector.analyze(current_embeddings=[[0.9, 0.1, 0.0]], baseline=baseline)
print(f"Drift detected: {report.is_drifting}")

Features

  • OpenTelemetry tracing for all RAG pipeline stages
  • Query drift detection with baseline comparison
  • Centroid-based cosine distance analysis

License

MIT

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

rag_forge_observability-0.2.2.tar.gz (6.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

rag_forge_observability-0.2.2-py3-none-any.whl (6.1 kB view details)

Uploaded Python 3

File details

Details for the file rag_forge_observability-0.2.2.tar.gz.

File metadata

  • Download URL: rag_forge_observability-0.2.2.tar.gz
  • Upload date:
  • Size: 6.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for rag_forge_observability-0.2.2.tar.gz
Algorithm Hash digest
SHA256 2a722e73969a61406b8cd5dd6a42a6140cccaed3587cd28713d1274623a1d0bb
MD5 29366d7f94f71429fe0b71c0420a0b9d
BLAKE2b-256 6edd5f5728595c62eec2cc858c297ac1b8f81221d7a2bd9c7e449cdb9a888d3f

See more details on using hashes here.

Provenance

The following attestation bundles were made for rag_forge_observability-0.2.2.tar.gz:

Publisher: publish.yml on hallengray/rag-forge

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file rag_forge_observability-0.2.2-py3-none-any.whl.

File metadata

File hashes

Hashes for rag_forge_observability-0.2.2-py3-none-any.whl
Algorithm Hash digest
SHA256 10c9f8659bb62c92de57950baa866eda01e28e6cebfb885d609a7c5da5ae4002
MD5 a4c9664dff87a3d2f9425c641948add7
BLAKE2b-256 91c494e20ae25af77d383dd94542adcb96f479961c57c3a1793043ed0223356c

See more details on using hashes here.

Provenance

The following attestation bundles were made for rag_forge_observability-0.2.2-py3-none-any.whl:

Publisher: publish.yml on hallengray/rag-forge

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page