Skip to main content

Monitor your LLM calls. Test your LLM app.

Project description

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

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

ragmetrics_client-0.1.17.tar.gz (28.4 kB view details)

Uploaded Source

Built Distribution

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

ragmetrics_client-0.1.17-py3-none-any.whl (30.3 kB view details)

Uploaded Python 3

File details

Details for the file ragmetrics_client-0.1.17.tar.gz.

File metadata

  • Download URL: ragmetrics_client-0.1.17.tar.gz
  • Upload date:
  • Size: 28.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.11.12

File hashes

Hashes for ragmetrics_client-0.1.17.tar.gz
Algorithm Hash digest
SHA256 9ad3f9a645a4841f336be067cdaec4db21a6737ebe5cb5b848e52b0443f46544
MD5 ff8f003858bf34b5411e233e643b0fd2
BLAKE2b-256 170eee68eecd897b488ecb9a983a4a7be6c25723cc71465e2130403fb47ff8bb

See more details on using hashes here.

File details

Details for the file ragmetrics_client-0.1.17-py3-none-any.whl.

File metadata

File hashes

Hashes for ragmetrics_client-0.1.17-py3-none-any.whl
Algorithm Hash digest
SHA256 f6b5f0ec883ed9ea66769f26297abd4fda7114378efe6291d4b09cdd44f20658
MD5 c85b3c0ab58673a12d47d3c814c864e2
BLAKE2b-256 7498a7d9774cdf422c4c319e5d1574c3b9d8d2ac0bf50acc533609009cb4e8f1

See more details on using hashes here.

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