RagasRagas
核验标记表示资料完整度,不是产品评分。下列未确认项可能影响选型;请按对应来源逐项确认。The confidence mark describes evidence completeness, not a product score. Unconfirmed items below may affect your choice; check them against the relevant sources.
未确认的信息Information not confirmed
- 托管服务面是否存在(README 与文档首页只给库、CLI 脚手架与社区/咨询入口)
- 结果、测试集与缓存的本地落盘位置与默认保留策略;默认是否上传任何数据
- 关机或断网后的任务续跑语义
- MCP 接入方式:当日未取到官方正文
- 各 provider 的模型支持矩阵与嵌入模型要求(未逐条清点)
- 遥测数据的具体字段与保存期(README 只给匿名化与开源代码的说法)
- releases 逐条内容与迁移页细节(本批次未验读)
- Whether a hosted service surface exists (README and docs front page offer the library, CLI scaffolding and community/consulting entry points only)
- Where results, test sets and caches land locally, their retention, and whether anything is uploaded by default
- Resume semantics after shutdown or network loss
- MCP integration method: no official text captured on the day
- The provider support matrix and embedding-model requirements (not inventoried)
- Concrete telemetry fields and retention periods (the README states anonymization and open collection code only)
- Release-by-release contents and migration-page details (not reviewed in this pass)
Ragas 是一个装在你自己项目里的评测库:它的产品主轴是把「凭感觉看一下输出」换成有名字、可复跑的指标——LLM 评判指标加传统非 LLM 指标,再配上测试数据生成;与同大类的两份相比,它交付的不是基准登记册也不是任务运行时,而是指标与数据集这两件工件。
Ragas 是一个装在你自己项目里的评测库:它的产品主轴是把「凭感觉看一下输出」换成有名字、可复跑的指标——LLM 评判指标加传统非 LLM 指标,再配上测试数据生成;与同大类的两份相比,它交付的不是基准登记册也不是任务运行时,而是指标与数据集这两件工件。
适合与不适合When to use it, when not to
适合:已经有 RAG 或 agent 应用、想在代码里对每次改动打分并留住结果、手上没有评测数据要先造测试集、需要把指标接进 LangChain / LlamaIndex 一类现有栈或接观测工具。 不适合:指望一条命令跑完公开基准并把结果当结论、需要沙箱与工具审批来约束模型行为、不愿为 LLM 评判付出额外的 API 调用与时间。
中文生态China availability 国产 / 国内可直接用 / 备案状态 · 快照domestic / direct access / CAC filing · snapshot 2026-11-06
- 出品属地Origin
- 国外出品foreign-made VibrantLabs 维护的开源库;本批次未取到面向中国大陆的服务或数据合规条款页。An open-source library maintained by VibrantLabs; no mainland-facing service or data-compliance terms page was captured in this pass.
- 国内使用Direct access
- 直连未核验direct unknown 文档站本批次经 HTTP 200 取到正文,仓库原文经镜像 CDN 取到,未做大陆直连可用实测,故记未知。The docs returned HTTP 200 and the repository text came via a mirror CDN in this pass; no mainland direct-connection measurement was made, so it is recorded as unknown.
- 备案状态CAC filing
- 备案未核验filing unknown:无官方依据,本批次未检索公示,不下「未备案」结论。No official basis; the public registry was not searched in this pass, so no "not filed" conclusion is drawn.
备案信息以网信办《生成式人工智能服务已备案信息》公示名单为准(按批次滚动更新,本站只抄编号不解读);「大陆可直连」是本站从大陆网络直连实测的结果,不是厂商承诺。GitHub 类站点当日实测有波动,口径写在依据里。Filing status is quoted from the CAC public registry (updated batch by batch; this site copies the number and does not interpret it). "Direct access" is this site's own reachability measurement from a mainland network, not a vendor promise. GitHub-hosted sites fluctuated on the measurement day — the note says so.
固定坐标系Fixed coordinate system
8 个维度dimensions, 与同分区其他对象逐项可比each comparable item by item against others in the same section.
- 模型与开放条件Model & openness
README 的指标示例把评判模型直接写进代码:
AsyncOpenAI+llm_factory("gpt-4o", ...),并提示需设置OPENAI_API_KEY。 文档站的 LLM Providers 列 Amazon Bedrock、Google Gemini、OCI Gen AI,自定义面有 Customise models 与 LLM Adapters 页; 另有不需要模型的 Traditional non LLM metrics。逐 provider 支持矩阵:未逐条清点。The judging model is written straight into the README's metric example:
AsyncOpenAIplusllm_factory("gpt-4o", ...), with the note "Make sure yourOPENAI_API_KEYenvironment variable is set". The docs site lists LLM Providers (Amazon Bedrock, Google Gemini, OCI Gen AI) and has Customise models and LLM Adapters pages, plus Traditional non LLM metrics that need no model at all. The per-provider support matrix was not inventoried.- 运行位置Where it runs
pip install ragas的 Python 库,评测在你自己进程的evaluate()/aevaluate()调用里跑,文档也有 CLI 一节; README 另给ragas quickstart rag_eval -o ./my-project拉模板工程。是否存在官方托管服务面:本批次未取到官方正文 (README 只给 Discord、博客与咨询邮箱)。A
pip install ragasPython library: evaluation runs inside your own process throughevaluate()/aevaluate(), and the docs also have a CLI section. The README addsragas quickstart rag_eval -o ./my-projectto scaffold a template project. Whether any official hosted surface exists: no official text captured in this pass (the README offers only Discord, blog and a contact address).- 本地文件Local files
输入是你自己的数据:文档把 Datasets、Evaluation Sample、Testset Generation(RAG / agents / persona / 单跳多跳查询)列为核心对象, 并称内置 dataset 管理与结果跟踪(Easy to integrate)。结果、缓存与生成测试集的中间产物落在哪里、默认是否上传:官方未说明。
The inputs are your own data: the docs treat Datasets, Evaluation Sample and Testset Generation (RAG, agents, personas, single- and multi-hop queries) as core objects, and the front page claims built-in dataset management and result tracking. Where results, caches and generated test sets land on disk, and whether anything is uploaded by default: not stated officially.
- 关机后的任务Tasks after shutdown
执行控制在库内:文档目录列出 Run Config、Executor、Caching、Cancelling Tasks,README 示例用 asyncio 调
metric.ascore(...); 也就是说长跑靠你自己的进程与异步调用。关机后由谁接着跑、有无任务队列:官方未说明。Execution control lives in the library: the docs table of contents lists Run Config, Executor, Caching and Cancelling Tasks, and the README example calls
metric.ascore(...)through asyncio - long runs are your own process and your own async calls. Who resumes work after the machine shuts down, and whether a task queue exists: not stated officially.- 工具与扩展Tools & extensions
扩展面是代码级:官方文档首页称可用简单装饰器创建自定义指标;集成面在文档目录里分三块—— Frameworks(LangChain、LangGraph、LlamaIndex、Haystack、AG-UI、Griptape、Swarm 等)、Observability(Arize、LangSmith)、LLM Providers。 MCP 接入方式:本批次未核验。
Extension is code-level: the docs front page says custom metrics can be created with simple decorators. The integration surface in the table of contents splits three ways - Frameworks (LangChain, LangGraph, LlamaIndex, Haystack, AG-UI, Griptape, Swarm and more), Observability (Arize, LangSmith) and LLM Providers. MCP integration method: not verified in this pass.
- 上下文与记忆Context & memory
「上下文」在 Ragas 里是被评对象,不是它自己的记忆:RAG 指标族含 Context Precision、Context Recall、Context Entities Recall、 Noise Sensitivity、Faithfulness、Response Relevancy(文档 Available Metrics 目录),另有 Evaluating Multi-turn Conversations 条目。 跨会话记忆机制:官方未说明。
"Context" in Ragas is the object being measured, not its own memory: the RAG metric family covers Context Precision, Context Recall, Context Entities Recall, Noise Sensitivity, Faithfulness and Response Relevancy (docs Available Metrics listing), and the site also lists Evaluating Multi-turn Conversations. Cross-session memory: not stated officially.
- 权限与限制Permissions & limits
Apache-2.0(LICENSE 原文直读)。README 单列 Open Analytics:称只收集最少量的匿名使用数据、采集代码在仓库内开源、汇总数据公开, 并写明「To opt-out, set the
RAGAS_DO_NOT_TRACKenvironment variable totrue」。 你的数据经模型 provider 后的留存与训练用途取决于所选 provider:本批次未取到官方条款。Apache-2.0 (LICENSE text read directly). The README has an Open Analytics section stating that minimal, anonymized usage data is collected, that the collection code is open source in the repository, and that aggregated data is public, with "To opt-out, set the
RAGAS_DO_NOT_TRACKenvironment variable totrue". Retention and training use by the model provider your data passes through: no official terms captured in this pass.- 适合什么任务Best for
适合:给 RAG 或 agent 应用配 LLM 评判指标、没有测试数据要先造测试集、要在自己代码与 CI 里建「改动—评测—观察—迭代」的循环。 不适合:想要一条 CLI 批量跑公开基准登记册、要沙箱与工具审批这类运行时边界、不愿为评判模型付出 API 调用成本。
Fits: attaching LLM-judged metrics to a RAG or agent application, generating a test set when you have none, and building a change-evaluate-observe-iterate loop inside your own code and CI. Not a fit: expecting one command to run a public benchmark registry and treating its output as a conclusion, needing sandboxing or tool approval as runtime boundaries, or refusing the API-call cost of judge models.
头号误解Top misconception
- 以为它能白拿分数:LLM 评判指标要自备模型与 key,调用有成本
- 把 Context Precision / Recall 当模型名次:它评的是检索上下文质量
- 以为仓库还在 explodinggradients 名下:官方路径已跳转至 vibrantlabsai/ragas
证据来源Evidence sources
最近核验记录Latest recorded check 2026-11-06,内容更新日content updated on 2026-11-06。单项复核范围见正文或来源说明,不代表所有字段在同一天重新核验。See the text or source notes for item-specific scope; this does not mean every field was rechecked on that date.
| 类型Type | 名称Name | 链接Link |
|---|---|---|
| repo | vibrantlabsai/ragas · 仓库 README(定位、安装、ragas quickstart、Open Analytics 与关闭开关;jsDelivr 镜像直读官方仓库原文,2026-11-06)vibrantlabsai/ragas · repository README (positioning, installation, ragas quickstart, Open Analytics and the opt-out switch; official repo text read through a jsDelivr mirror, 2026-11-06) | https://github.com/vibrantlabsai/ragas |
| docs | Ragas · 官方文档站首页(指标族、provider / 框架 / 观测集成、CLI 与自定义化目录;直读 200,2026-11-06)Ragas · official docs front page (metric families, provider / framework / observability integrations, CLI and customization directory; direct fetch returned 200, 2026-11-06) | https://docs.ragas.io/en/stable/ |
| docs | vibrantlabsai/ragas · LICENSE(Apache-2.0 原文;jsDelivr 镜像直读,2026-11-06)vibrantlabsai/ragas · LICENSE (Apache-2.0 text; jsDelivr mirror read, 2026-11-06) | https://github.com/vibrantlabsai/ragas/blob/main/LICENSE |
| changelog | vibrantlabsai/ragas · Releases(本对象无独立 changelog 页,变更以 releases 为准;本批次未逐条验读)vibrantlabsai/ragas · Releases (no standalone changelog page for this object, changes live in releases; not reviewed item by item in this pass) | https://github.com/vibrantlabsai/ragas/releases |
官方口径与未核到项Official record and unverified items
本站未做端到端实测:本档案没有安装并运行 evaluate() / aevaluate(),没有跑过测试集生成,也不给出任何指标分值、准确率或名次;本站不排名。 本节只组织官方 README 与文档站首页里出现过的说法(安装方式、quickstart 模板、指标族与目录、provider 与集成面、Open Analytics 遥测与关闭开关),逐条见 sources 与核验日。 文档站的 Get Started / Core Concepts / CLI 各页正文本批次未取到,结论只停在首页与 README 口径。
This site has not completed end-to-end measured runs. evaluate() / aevaluate() were not installed or executed, test-set generation was not run, and this entry reports no metric values, accuracies or rankings - this site does not rank.
This section only organizes statements from the official README and docs front page (installation, quickstart templates, metric families and directory, provider / framework / observability integrations, the Open Analytics telemetry statement and its opt-out switch), each tied to the sources list and the verification date. The Get Started, Core Concepts and CLI page bodies were not captured on the day, so conclusions stop at the front-page and README wording.
Suggested measurements (all pointing at things the official readable pages do not answer):
- API-call cost and wall time of one judge-metric pass over a fixed sample set
- Usability of generated test sets against a hand-written one on the same RAG app
- Actual on-disk location of results and cache, and whether anything leaves the machine by default
变更记录说明Change-record notes
本对象无独立 changelog 页可读,变更记录以 releases 为准(见 sources),本批次未逐条清点版本内容。 两条与时效有关的事实:上游仓库最近推送 2026-02-24(GitHub API 核验 2026-11-06),距核验日超 90 天,故 lifecycle 记 maintenance; 旧路径 explodinggradients/ragas 现以 HTTP 跳转指向 vibrantlabsai/ragas(同 API 当日核验),文档站页面页脚显示 December 9, 2025。
This object has no standalone changelog page that was readable in this pass; changes are tracked through releases (listed in the sources), which were not reviewed version by version. Two time-sensitive facts: the upstream repository's last push is dated 2026-02-24 (GitHub API verified 2026-11-06), more than 90 days before the verification date, so lifecycle is recorded as maintenance; and the old path explodinggradients/ragas now redirects to vibrantlabsai/ragas (same API check the same day). The docs page footer reads December 9, 2025.
第一次怎么用First run
- 先确认评判模型:README 示例要
OPENAI_API_KEY,换 provider 前先看文档的 LLM Providers 与 Customise models 页。 pip install ragas;想从模板起步,用ragas quickstart rag_eval -o ./my-project。- 没有评测数据时先做测试集生成,再谈指标;有数据就直接按文档的 RAG 指标族(Context Precision / Recall、Faithfulness、Response Relevancy 等)配第一轮。
- 不想要匿名使用数据,就把
RAGAS_DO_NOT_TRACK设为true(README 口径)。 - 把评测放进改动流程里复跑,比较的是同一份数据集上指标的变动,而不是别人给出的名次。
- Settle the judging model first: the README example needs
OPENAI_API_KEY, and before switching provider read the docs pages on LLM Providers and Customise models. pip install ragas; to start from a template, useragas quickstart rag_eval -o ./my-project.- Without evaluation data, generate a test set first; with data, configure a first round from the RAG metric family (Context Precision / Recall, Faithfulness, Response Relevancy).
- If you do not want anonymized usage data, set
RAGAS_DO_NOT_TRACKtotrue(README wording). - Put the evaluation into your change flow and compare metric movement on the same dataset, not somebody else's ranking.
相关条目Related entries
- OpenAI EvalsOpenAI Evals同属「评测与观测」线:本档案只写自己在册的官方口径,对照请看那份。Same line: OpenAI Evals (in evaluation and observability); this entry states only what its own official sources support.
- InspectInspect同属「评测与观测」线:本档案只写自己在册的官方口径,对照请看那份。Same line: Inspect (in evaluation and observability); this entry states only what its own official sources support.
- LangfuseLangfuse同属「评测与观测」线:本档案只写自己在册的官方口径,对照请看那份。Same line: Langfuse (in evaluation and observability); this entry states only what its own official sources support.
本页由This page is generated from the ai-handbook 数据层生成(CC BY 4.0)。data layer (CC BY 4.0).
方法论与坐标系定义见仓库内For the methodology and coordinate definitions, see METHODOLOGY.md.