Skip to main content

RagMetrics

Monitor your LLM calls. Test your LLM app.

PyPI Version

RagMetrics offers:

  • The best LLM judge on the market (>95% human agreement)
  • A/B testing for your entire LLM pipeline
  • Evaluations for retrievals, not just generation

With this package, you can log your LLM calls to RagMetrics and use them as labeled data

Quickstart

pip install ragmetrics-client
import ragmetrics
from openai import OpenAI

## login to ragmetrics account via portal key
ragmetrics.login(key="your_ragmetrics_key")
openai_client = OpenAI()

## Monitor OpenAI, LangChain or LiteLLM clients
ragmetrics.monitor(openai_client)

## Then use as usual. All calls will be logged
resp = openai_client.chat.completions.create(
    model="gpt-3.5-turbo",
    messages=[{"role": "user", "content": f"What is the capital of Spain?"}]
)

Get your key and read docs at RagMetrics.ai

Metadata

Release files for ragmetrics-client 0.2.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for ragmetrics-client 0.2.1
File Size Uploaded Provenance Actions
ragmetrics_client-0.2.1.tar.gz 35.0 kB Without provenance Details for ragmetrics_client-0.2.1.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for ragmetrics-client 0.2.1
File Interpreter ABI Platform Actions
ragmetrics_client-0.2.1-py3-none-any.whl Python 3 none any Details for ragmetrics_client-0.2.1-py3-none-any.whl

Total release size: 71.8 kB

Release files / ragmetrics_client-0.2.1.tar.gz

Download URL ragmetrics_client-0.2.1.tar.gz
Size 35.0 kB
Tags Source
SHA-256 checksum
How to use checksums
ec7cf46c556fcf3514ab6bd2dd68ebccc4168332554eb6d253bff118615a931a
BLAKE2b-256 checksum
How to use checksums
6e29d8be3258cdabd5847ebf7749b137895b976faba64f1fe627e8186699ff90
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.11.12

Release files / ragmetrics_client-0.2.1-py3-none-any.whl

Download URL ragmetrics_client-0.2.1-py3-none-any.whl
Size 36.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
03c75ad9c94e2503c2d581d495ade653fa4d1b3f29cacaaab439cca21a482232
BLAKE2b-256 checksum
How to use checksums
129635390a210d10c10a50797b0166be89b5d9584a3d6916ba7daafa5e2f3dcc
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.11.12

Security for ragmetrics-client 0.2.1

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page