Skip to content

API References

This section contains detailed API documentation for all core components of Ragas. The documentation is organized into the following sections:

Core Components

  • Prompt - Core prompt management and templating
  • LLMs - Language model interfaces and configurations
  • Embeddings - Embedding model interfaces and utilities
  • RunConfig - Evaluation runtime configuration
  • Executor - Execution engine for evaluations
  • Cache - Caching mechanisms for LLM calls

Evaluation

  • Schemas - Data structures for evaluation
  • Metrics - Available metrics and their implementations
  • evaluate() - Main evaluation function API

Testset Generation

Integrations