Skip to main content

Monitor LLM calls to RagMetrics

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 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.6.tar.gz (4.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.6-py3-none-any.whl (4.8 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for ragmetrics_client-0.1.6.tar.gz
Algorithm Hash digest
SHA256 be8d96dcbc56bc3e66787f305f87fdb02471503b56cb1681123f38bc5cd69553
MD5 a21a0955f013f52ba5644a445c2e8a6d
BLAKE2b-256 8c0465cc4f6d49ad3316047973568ea546293a6298b49a7b4eba865ffef5f7b3

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for ragmetrics_client-0.1.6-py3-none-any.whl
Algorithm Hash digest
SHA256 379e9bfda03c89ba105496aac50e9bcd30374ec8a305e5b126de9ee5c1cd4383
MD5 2505916e668b5909f275742d2f247dfb
BLAKE2b-256 0117291caacb4d340f18f47fe195cd8428e30bb5263c72f74f714b4a5553183b

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