🎯Evaluator / Scorer
GEvalGenerationEvaluator
Fields:
Example Usage
import asyncio
import os
from gllm_evals.evaluator.geval_generation_evaluator import GEvalGenerationEvaluator
from gllm_evals.types import RAGData
async def main():
"""Main function."""
data = RAGData(
query="What is the capital of France?",
expected_response="Paris",
generated_response="New York",
retrieved_context="Paris is the capital of France.",
)
evaluator = GEvalGenerationEvaluator(model_credentials=os.getenv("OPENAI_API_KEY"))
result = await evaluator.evaluate(data)
print(result)
if __name__ == "__main__":
asyncio.run(main())Example Output
AgentEvaluator
Fields
Configuration Options
Example Usage
Example Output
Custom Prompts
Scoring System
ClassicalRetrievalEvaluator
Example Usage
Example Output
QueryTransformerEvaluator
Example Usage
Example Output
Initialization & Common Parameters
Example Usage — Using OpenAICompatibleLMInvoker
Last updated
Was this helpful?