Monitor your LLM calls. Test your LLM app.
Project description
RagMetrics
Monitor your LLM calls. Test your LLM app.
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
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
ragmetrics_client-0.1.15.tar.gz
(28.6 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file ragmetrics_client-0.1.15.tar.gz.
File metadata
- Download URL: ragmetrics_client-0.1.15.tar.gz
- Upload date:
- Size: 28.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.11.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
cbddcbbccd12c0d7f7a897f0076bb1f4db37377c5c1c5d2a7ad1338d33b44bb5
|
|
| MD5 |
254966e5399140b01d4cc886f6c88701
|
|
| BLAKE2b-256 |
1cced2c89a3dc5cc5199ac296ab19c52fab7b32a8a356f2610a6e26fd9360483
|
File details
Details for the file ragmetrics_client-0.1.15-py3-none-any.whl.
File metadata
- Download URL: ragmetrics_client-0.1.15-py3-none-any.whl
- Upload date:
- Size: 30.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.11.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
7c1a342afdf1e2ed9e7fa203362eab496cabbad5d668efd54a0112b1ae453fef
|
|
| MD5 |
0de10b1f5863bda7ca22a3a65062b5ec
|
|
| BLAKE2b-256 |
f14be58e06bd55477e54d2038e269e0ab2a475911d0a8323df8da839d271c788
|