Skip to main content

Ragas (ragas)

Evaluation library of retrieval augmented generation (faithfulness, answer relevancy, context precision) run on demand against the LiteLLM gateway.

Generated from catalog/services/ragas.yaml: do not edit by hand.

Summary​

Version0.3.2
Useexecute on demand
Layerfunctional (AI catalog)
CategoryEvaluation and LLM operations
Installation methodspython
External connectionno
Sandbox onlyno

Licence​

SPDX identifierApache-2.0
Licence policycore licence (MIT or Apache-2.0)
Licence exception-
Platform componentragas

Packages and artifacts​

A package the project of the service publishes (its image, its binary archive, its Python or OS package) carries the licence of the service; a third-party package carries the licence written on its row, read from the official upstream metadata.

KindPackageVersionLicenceDetails
Python packageragas0.3.2Apache-2.0interpreters, in order of preference python3.11, python3.12, python3.10
Python packagelangchain-openai0.3.28MITinterpreters, in order of preference python3.11, python3.12, python3.10
Python packagedatasets4.0.0Apache-2.0interpreters, in order of preference python3.11, python3.12, python3.10

Supported systems and architectures​

MethodOperating systemsArchitectures
pythonRHEL family (dnf), Debian family (apt), Arch Linux (pacman)x86_64, aarch64 (not restricted by the descriptor)

Certified host systems: RHEL 8/9/10, Rocky Linux 8/9/10, AlmaLinux 8/9/10, Oracle Linux 8/9, CentOS Stream 9/10, Ubuntu 22.04/24.04, Debian 12, Arch Linux (rolling). The host preflight accepts these systems (other releases of a known family give a warning, end of life releases are refused) and the x86_64 and aarch64 architectures.

Prerequisites​

Host​

The descriptor declares no host preflight check.

Network and ports​

None.

Services and connections needed​

Details and resolution: see Dependencies.

Installation methods and modes​

MethodDefaultWhat the method uses
pythonyesa Python virtual environment holding the Python packages of the descriptor

Components​

ComponentKindInstallation methodsPorts
Ragas client (ragas)clientpython-

Client (client) (default)​

Installed on the evaluation hosts, run on demand.

What the mode deploys:

ComponentPlacement
ragasmin 1, recommended 1

Install this service​

The install wizard of the Navin Manager plans, validates and runs the installation; you need the services:install permission on the cluster.

  1. Open the wizard. In Clusters, choose the row action Install services of the target cluster. The wizard opens on its first step, Service.

  2. Choose the service. On the Service step, select Ragas. The card shows the licence Apache-2.0 and the dependencies the installation needs.

  3. Choose the hosts and the mode. On the Hosts step, tick the hosts, then choose the Mode: client (default). Each mode deploys the components listed in Installation methods and modes.

  4. Bind the dependencies. On the Bindings step, choose for each dependency (litellm) Install with the platform or Use an existing connection; an optional dependency can stay on No binding.

  5. Configure. On the Configure step, review the parameters (see Configuration parameters); the required ones are llm_api_key. Passwords left empty with a generated default are generated and sealed by the Manager.

  6. Review and install. On the Install step the Manager validates the plan and shows the installation order; when it says "The plan is valid. Ready to install.", choose Install. A highly available mode is installed only when its HA checks pass.

  7. Verify. The operation ends when the health checks of every instance pass (see Health checks); the service then shows as running in Services.

On demand runs​

Scores a dataset of RAG answers (faithfulness, answer relevancy, context precision) when an evaluation run is asked; nothing runs between two runs.

Portal screen: /quality/runs

High availability​

Clusternone (none)
High availabilitynone (none)
Failovernone (none)
Replicationnone (none)
Quorumnone (none)
Discoverynone (none)
Entry pointnone (none)
Official documentationhttps://docs.ragas.io/en/v0.3.2/getstarted/rag_eval/

Topology per mode​

ModesHighest catalog levelDistributionQuorum componentFault domainsDescription
clientstandalone (standalone)parallel jobs (parallel-jobs)--Installed on the evaluation hosts; evaluation workers are orchestrated outside the tool.

Notes​

  • A command line tool run on demand: never a highly available cluster; several scans run as independent parallel jobs.

Configuration parameters​

General​

ParameterTypeDefaultAllowed valuesRequiredSecretRestartDescription
OpenAI compatible endpoint (llm_base_url)urlhttp://127.0.0.1:4000/v1-nononoBase URL of LiteLLM used as judge and for embeddings when no LiteLLM binding is set.
API key (llm_api_key)password--yesyesnoVirtual key of the gateway.
Judge model (judge_model)stringnavin-judge-nononoModel alias used to score the answers.
Embedding model (embedding_model)stringnavin-embedding-nononoEmbedding alias of the gateway.

Dependencies​

For each active dependency the Manager takes the first of: the binding chosen in the wizard; a service of the same installation that provides it; a service already installed in the cluster; the only connection of the expected type. Otherwise an optional dependency stays unbound, and a required one is added to the installation in its default mode (the column below names the catalog service added).

BindingProvided byConnection typeEndpointOptionalWhen nothing is boundDescription
litellmlitellm-apiyesstays unbound (optional)LiteLLM gateway of the platform used as judge and for the embeddings (OPENAI_BASE_URL); without it the endpoint parameter is used.

Commands​

CommandComponentTargetDescription
Evaluate a dataset (evaluate)ragaschosen hostScores a JSONL dataset (question, answer, contexts, ground_truth) and writes the result next to it.

Command parameters​

CommandParameterTypeDefaultRequiredDescription
evaluateDataset file (dataset)path-yesJSONL file under the data directory.

Health checks​

Liveness (per instance)​

ComponentCheckDetails
ragas{{ paths.opt }}/venv/bin/python -c import ragas1 retries; interval 1 s; timeout 60 s

Uninstall​

Paths removed when the data is purged: {{ paths.data }}, {{ paths.opt }}.

Upstream documentation​