Learn how to manage evaluation scores for your logs
log_id
import requests api_key = "your_api_key" log_id = "your_log_id" url = f"https://api.keywordsai.co/api/logs/{log_id}/scores/" headers = { "Authorization": f"Bearer {api_key}", "Content-Type": "application/json" } data = { "evaluator_slug": "response_quality", "numerical_value": 4.2, "string_value": "Good response with minor issues", "boolean_value": True } response = requests.post(url, headers=headers, json=data) print(response.json())
Was this page helpful?