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.1.1.tar.gz (6.2 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.1.1-py3-none-any.whl (6.1 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: rag_forge_observability-0.1.1.tar.gz
  • Upload date:
  • Size: 6.2 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.1.1.tar.gz
Algorithm Hash digest
SHA256 ad9720aa31555e028364845692295e63241033eec72dfdc51b3b3bc51768cddb
MD5 b639e31139557087cf780deb45f8c6b1
BLAKE2b-256 f1383959f6c443dcc09090332e4a6280a9ae5e887e5339f56afaaad31a2f9441

See more details on using hashes here.

Provenance

The following attestation bundles were made for rag_forge_observability-0.1.1.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.1.1-py3-none-any.whl.

File metadata

File hashes

Hashes for rag_forge_observability-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 82a26f66aa563bdadeb5712685c1d0c96ba8829ac5abf06da32a5d126568494f
MD5 6e3a12c8ab23cf01a18fdfc1245cbbd0
BLAKE2b-256 d0ff09df068eabb626a92b591db05e65a3000786afc15580d4bbb8ced05d7c64

See more details on using hashes here.

Provenance

The following attestation bundles were made for rag_forge_observability-0.1.1-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