Ragas 0.4.4 sürüm notları
Ragas 0.4.4 sürümünün yayın tarihi 14 Kasım 2026. Bu, en güncel sürüm.
Orijinal sürüm notları
This release restores a working install, fixes a published security vulnerability, and makes Ragas work again with current OpenAI and Anthropic models.
pip install -U ragas
Highlights
import ragasworks again. A fresh install pulled inlangchain-community0.4, which removed the VertexAI modules Ragas imported at start-up, so the import failed withModuleNotFoundError. Those imports are now optional. (#2956)- Security fix for multimodal metrics (CVE-2026-6587). See the security section below. (#3105)
- Anthropic works on current Claude models. Ragas no longer sends the sampling defaults that current models reject, and it no longer forces a tool call that the newest models refuse. (#3106, #3108)
- OpenAI models with dotted versions work.
gpt-5.2and similar are now recognised, somax_tokensis sent asmax_completion_tokens. (#2700) - OpenAI models on Amazon Bedrock work. Bedrock model IDs such as
us.openai.gpt-6-solare now recognised as reasoning models, so they no longer fail with a 400. (#3049) - Synchronous clients work in async metrics.
agenerate()with a sync client runs in a thread instead of raisingTypeError. (#2657) - Deprecation warnings point to imports that exist. 22 of the warnings in
ragas.metricssuggested aragas.metrics.collectionsimport that raisedImportError. (#2974)
Security
MultiModalFaithfulness and MultiModalRelevance load images named in retrieved_contexts. A context string could make the machine running the evaluation fetch an internal URL (for example a cloud metadata endpoint) or read a local image file, and send the result to the LLM provider. This is CVE-2026-6587 / GHSA-95ww-475f-pr4f.
Both the collections API and the legacy API are fixed:
- Image URLs are fetched only from public internet addresses. The check runs on the address actually connected to, on every redirect, so redirects and DNS rebinding do not get around it.
- Local image paths are not read unless you enable local file access and name the one directory images may be loaded from.
If you use these metrics with untrusted datasets, upgrade.
Thanks to @GeoffreyManda, whose fix and tests in #3089 this builds on, and to the reporters in #2754.
Changes you may notice
Multimodal metrics
Local image paths in
retrieved_contextsare no longer loaded by default in the collections API. An image that is not loaded is passed to the model as text and a warning is logged, so check your logs if scores change.Image URLs on
localhostor private addresses are refused in both APIs.To opt back in, set these before running the metric:
import ragas.prompt.multi_modal_prompt as image_policy # Read local images, but only from inside this directory image_policy.ALLOW_LOCAL_FILE_ACCESS = True image_policy.ALLOWED_IMAGE_BASE_DIR = "/data/eval_images" # Allow image URLs on internal or private addresses image_policy.ALLOW_INTERNAL_TARGETS = TrueThe metric pages document the rules and settings in full: MultiModalFaithfulness and MultiModalRelevance.
Anthropic (llm_factory(..., provider="anthropic"))
temperatureandtop_pare no longer sent unless you set them. Older Claude models that accepted Ragas' defaults (temperature=0.01,top_p=0.1) now run at the API's default temperature, so scores can vary more between runs.- The default structured-output mode is now JSON mode instead of a forced tool call. Pass
mode=instructor.Mode.TOOLSto keep the old behaviour on models that accept it. - An explicit
mode=now reaches Anthropic, Google and Perplexity. It was silently ignored before.
Dependencies
requestsandtenacityare now declared as core dependencies. Ragas already imported both.
Known issues
- Version 2.x of the
anthropicpackage no longer acceptstemperatureortop_p. Setting either on an Anthropic model raises an error from the SDK. - Claude models reached through LiteLLM still receive Ragas' default sampling parameters.
- Behind an HTTP proxy, the image URL check cannot see the final address for hostnames that only the proxy can resolve.
What's Changed
- docs: fix Install docs dependencies by @injaeryou in https://github.com/vibrantlabsai/ragas/pull/2564
- fix: detect and handle OpenAI-compatible API style for generic providers (deepseek, groq, xai, etc) by @anistark in https://github.com/vibrantlabsai/ragas/pull/2561
- docs: fix readme's quickstart and quickstart link by @injaeryou in https://github.com/vibrantlabsai/ragas/pull/2563
- feat: add mode parameter to llm_factory for custom instructor modes by @anistark in https://github.com/vibrantlabsai/ragas/pull/2565
- perf: optimize average precision algorithm by @minimAluminiumalism in https://github.com/vibrantlabsai/ragas/pull/2567
- fix: fix testset generation bugs by @kraftn in https://github.com/vibrantlabsai/ragas/pull/2568
- chore: remove office hours cal by @anistark in https://github.com/vibrantlabsai/ragas/pull/2583
- fix: allow fork contributors in check-docs CI workflow by @veeceey in https://github.com/vibrantlabsai/ragas/pull/2606
- fix(llms): make VertexAI imports optional for langchain-community >= 0.4 by @sanyaden in https://github.com/vibrantlabsai/ragas/pull/2956
- ci: repair CI after dependency drift by @harshil-sanghvi in https://github.com/vibrantlabsai/ragas/pull/3092
- fix(security): guard multimodal image loading against SSRF and local file reads (CVE-2026-6587) by @jjmachan and @GeoffreyManda in https://github.com/vibrantlabsai/ragas/pull/3105
- fix(llms): stop sending default sampling params to Anthropic and forward an explicit mode by @jjmachan in https://github.com/vibrantlabsai/ragas/pull/3106
- ci: verify the release before uploading to PyPI by @jjmachan in https://github.com/vibrantlabsai/ragas/pull/3107
- fix(llms): default Anthropic to JSON mode by @jjmachan in https://github.com/vibrantlabsai/ragas/pull/3108
- Handle decimal GPT versions in OpenAI token mapping by @mindbomber in https://github.com/vibrantlabsai/ragas/pull/2700
- fix: allow agenerate to work with sync clients via thread pool by @devsvarun in https://github.com/vibrantlabsai/ragas/pull/2657
- docs: mark the multimodal image loading change as new in 0.4.4 by @jjmachan in https://github.com/vibrantlabsai/ragas/pull/3109
- docs: build the docs with the public mkdocs-material package by @jjmachan in https://github.com/vibrantlabsai/ragas/pull/3110
- fix(llms): map Bedrock reasoning model IDs by @mikamikasuki in https://github.com/vibrantlabsai/ragas/pull/3049
- fix: point deprecation warnings to correct collections metric names by @BenBrahimMazen in https://github.com/vibrantlabsai/ragas/pull/2974
New Contributors
- @injaeryou made their first contribution in https://github.com/vibrantlabsai/ragas/pull/2564
- @minimAluminiumalism made their first contribution in https://github.com/vibrantlabsai/ragas/pull/2567
- @kraftn made their first contribution in https://github.com/vibrantlabsai/ragas/pull/2568
- @veeceey made their first contribution in https://github.com/vibrantlabsai/ragas/pull/2606
- @sanyaden made their first contribution in https://github.com/vibrantlabsai/ragas/pull/2956
- @mindbomber made their first contribution in https://github.com/vibrantlabsai/ragas/pull/2700
- @devsvarun made their first contribution in https://github.com/vibrantlabsai/ragas/pull/2657
- @mikamikasuki made their first contribution in https://github.com/vibrantlabsai/ragas/pull/3049
- @BenBrahimMazen made their first contribution in https://github.com/vibrantlabsai/ragas/pull/2974
Full Changelog: https://github.com/vibrantlabsai/ragas/compare/v0.4.3...v0.4.4
Kaynak: GitHub sürümü v0.4.4