Skip to main content

rag-eval SDK

RAGアプリの回答品質を3行で計測できるSDKです。

インストール

pip install rageval-sdk

使い方

from rag_eval import track

# 既存のRAGコードに3行追加するだけ
answer = your_rag_system.query(question)
track(
    question=question,
    answer=answer,
    chunks=[{"content": chunk.text, "source": chunk.source} for chunk in retrieved_chunks],
    api_key="rag_eval_xxxx",  # または環境変数 RAG_EVAL_API_KEY
    latency_ms=elapsed_ms,   # 任意
)

非同期版(FastAPI / asyncio)

from rag_eval import atrack

await atrack(
    question=question,
    answer=answer,
    chunks=chunks,
    api_key="rag_eval_xxxx",  # または環境変数 RAG_EVAL_API_KEY
)

セルフホスト版

track(
    question=question,
    answer=answer,
    chunks=chunks,
    api_url="https://your-own-server.com",  # または環境変数 RAG_EVAL_API_URL
    api_key="your-key",
)

環境変数

変数名 説明
RAG_EVAL_API_KEY APIキー
RAG_EVAL_API_URL APIのURL(セルフホスト時)

ライセンス

MIT

Metadata

Release files for rageval-sdk 0.2.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for rageval-sdk 0.2.0
File Size Uploaded Provenance Actions
rageval_sdk-0.2.0.tar.gz 2.6 kB With provenance Details for rageval_sdk-0.2.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for rageval-sdk 0.2.0
File Interpreter ABI Platform Actions
rageval_sdk-0.2.0-py3-none-any.whl Python 3 none any Details for rageval_sdk-0.2.0-py3-none-any.whl

Total release size: 5.6 kB

Release files / rageval_sdk-0.2.0.tar.gz

Download URL rageval_sdk-0.2.0.tar.gz
Size 2.6 kB
Tags Source
SHA-256 checksum
How to use checksums
01cfb1e43f6b5b86e13d9161f74cca6623eedb9a914a64dcc5636809ec12d889
BLAKE2b-256 checksum
How to use checksums
652fd6d7b94c9389dfad75001101c34b78eec8b8903f04eabfae36f6d68684bb
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.12

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Apr 30, 2026.

Transparency log

Release files / rageval_sdk-0.2.0-py3-none-any.whl

Download URL rageval_sdk-0.2.0-py3-none-any.whl
Size 3.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
867fbc9e3433997619ca8626ae0897b2a5ab4e7d075c1c9520416675b51121c9
BLAKE2b-256 checksum
How to use checksums
befc3bffbfc834a0cb3761bb43364c8bd331da5a248f0ecd447ed88760c52c70
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.12

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Apr 30, 2026.

Transparency log

Security for rageval-sdk 0.2.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

All 2 files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for rageval_sdk-0.2.0.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Apr 30, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page