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.2.1.tar.gz
(35.0 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.2.1.tar.gz.
File metadata
- Download URL: ragmetrics_client-0.2.1.tar.gz
- Upload date:
- Size: 35.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.11.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ec7cf46c556fcf3514ab6bd2dd68ebccc4168332554eb6d253bff118615a931a
|
|
| MD5 |
a8300871e3fa3de8df446ca5d164a928
|
|
| BLAKE2b-256 |
6e29d8be3258cdabd5847ebf7749b137895b976faba64f1fe627e8186699ff90
|
File details
Details for the file ragmetrics_client-0.2.1-py3-none-any.whl.
File metadata
- Download URL: ragmetrics_client-0.2.1-py3-none-any.whl
- Upload date:
- Size: 36.8 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 |
03c75ad9c94e2503c2d581d495ade653fa4d1b3f29cacaaab439cca21a482232
|
|
| MD5 |
a4f3f33304c168b1731ddfed73f9efa0
|
|
| BLAKE2b-256 |
129635390a210d10c10a50797b0166be89b5d9584a3d6916ba7daafa5e2f3dcc
|