<h1 align="center">RagMetrics</h1>
<p align="center">
Monitor your LLM calls. Test your LLM app.
</p>
<h4 align="center">
<a href="https://pypi.org/project/ragmetrics-client/" target="_blank">
<img src="https://img.shields.io/pypi/v/ragmetrics-client.svg" alt="PyPI Version">
</a>
</h4>
[RagMetrics](https://ragmetrics.ai/) 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
```shell
pip install ragmetrics-client
```
```python
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](https://ragmetrics.ai/)
Raw data
{
"_id": null,
"home_page": null,
"name": "ragmetrics-client",
"maintainer": null,
"docs_url": null,
"requires_python": ">=3.6",
"maintainer_email": null,
"keywords": "llm, evaluation, monitoring, rag",
"author": "ragmetrics",
"author_email": null,
"download_url": "https://files.pythonhosted.org/packages/82/42/b8334506c330ac3c33d4427882dc57250b4da0ac82d926a512b055a09097/ragmetrics_client-0.1.9.tar.gz",
"platform": null,
"description": "<h1 align=\"center\">RagMetrics</h1>\n <p align=\"center\">\n Monitor your LLM calls. Test your LLM app.\n </p>\n<h4 align=\"center\">\n <a href=\"https://pypi.org/project/ragmetrics-client/\" target=\"_blank\">\n <img src=\"https://img.shields.io/pypi/v/ragmetrics-client.svg\" alt=\"PyPI Version\">\n </a>\n</h4>\n\n[RagMetrics](https://ragmetrics.ai/) offers:\n\n- The best LLM judge on the market (>95% human agreement)\n- A/B testing for your entire LLM pipeline\n- Evaluations for retrievals, not just generation\n\nWith this package, you can log your LLM calls to RagMetrics and use them as labeled data\n\n# Quickstart\n\n```shell\npip install ragmetrics-client\n```\n\n```python\nimport ragmetrics\nfrom openai import OpenAI\n\n## login to ragmetrics account via portal key\nragmetrics.login(key=\"your_ragmetrics_key\")\nopenai_client = OpenAI()\n\n## Monitor OpenAI, LangChain or LiteLLM clients\nragmetrics.monitor(openai_client)\n\n## Then use as usual. All calls will be logged\nresp = openai_client.chat.completions.create(\n model=\"gpt-3.5-turbo\",\n messages=[{\"role\": \"user\", \"content\": f\"What is the capital of Spain?\"}]\n)\n```\n## Get your key and read docs at [RagMetrics.ai](https://ragmetrics.ai/)\n",
"bugtrack_url": null,
"license": "MIT",
"summary": "Monitor your LLM calls. Test your LLM app.",
"version": "0.1.9",
"project_urls": {
"Homepage": "https://ragmetrics.ai",
"Repository": "https://github.com/RagMetrics/ragmetrics-package"
},
"split_keywords": [
"llm",
" evaluation",
" monitoring",
" rag"
],
"urls": [
{
"comment_text": null,
"digests": {
"blake2b_256": "81ef553b5f79995e4dcbe77371922db1f483b0b33ca49958a7b6ccd282572485",
"md5": "a5e66573da1e7b2fcc8ef0f4fa255fea",
"sha256": "6a04863db13423506c3f2ca71f1ef46f11f2e51e57f7eb0c78de2b6ee6ba6001"
},
"downloads": -1,
"filename": "ragmetrics_client-0.1.9-py3-none-any.whl",
"has_sig": false,
"md5_digest": "a5e66573da1e7b2fcc8ef0f4fa255fea",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": ">=3.6",
"size": 12171,
"upload_time": "2025-03-14T23:05:51",
"upload_time_iso_8601": "2025-03-14T23:05:51.547274Z",
"url": "https://files.pythonhosted.org/packages/81/ef/553b5f79995e4dcbe77371922db1f483b0b33ca49958a7b6ccd282572485/ragmetrics_client-0.1.9-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": null,
"digests": {
"blake2b_256": "8242b8334506c330ac3c33d4427882dc57250b4da0ac82d926a512b055a09097",
"md5": "d48913e58c9e0f599570f4a969e3adbe",
"sha256": "c1b86723e9842f706e45b3f6055d895f7b46541c70e27a0e9ef56456c1a8e1da"
},
"downloads": -1,
"filename": "ragmetrics_client-0.1.9.tar.gz",
"has_sig": false,
"md5_digest": "d48913e58c9e0f599570f4a969e3adbe",
"packagetype": "sdist",
"python_version": "source",
"requires_python": ">=3.6",
"size": 11312,
"upload_time": "2025-03-14T23:05:52",
"upload_time_iso_8601": "2025-03-14T23:05:52.676602Z",
"url": "https://files.pythonhosted.org/packages/82/42/b8334506c330ac3c33d4427882dc57250b4da0ac82d926a512b055a09097/ragmetrics_client-0.1.9.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2025-03-14 23:05:52",
"github": true,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"github_user": "RagMetrics",
"github_project": "ragmetrics-package",
"travis_ci": false,
"coveralls": false,
"github_actions": false,
"requirements": [
{
"name": "requests",
"specs": [
[
">=",
"2.20.0"
]
]
}
],
"lcname": "ragmetrics-client"
}