Skip to main content

Overview

Ragas can evaluate AI Sonar-backed applications by passing an OpenAI-compatible AsyncOpenAI client into llm_factory.
Type: Evaluation frameworkPrimary Path: OpenAI-compatible Chat CompletionsSupport Confidence: Supported OpenAI-compatible path

Environment

Example Evaluator

Use llm in Ragas metrics and testsets the same way you would use an OpenAI SDK-backed model.

Endpoint Notes

Ragas uses the OpenAI SDK client path here. Native AI Sonar Responses, Anthropic Messages, and Gemini routes are best used through evaluation runners that support those request shapes directly.