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
- Schemas - Data structures for test data
- Graph - Knowledge graph creation and management
- Transforms - Data transformation utilities
- Synthesizers - Test data generation components
- Generation - Test data generation API
Integrations
- Integrations - APIs for external tool integrations