Get an eval run
GEThttps:/api.openai.com/v1/evals/{eval_id}/runs/{run_id}
Get an evaluation run by ID.
Path parameters
eval_id
string
Required
The ID of the evaluation to retrieve runs for.run_id
string
Required
The ID of the run to retrieve.
Response
The EvalRun object matching the specified ID.
Example request
1 curl https://api.openai.com/v1/evals/eval_67abd54d9b0081909a86353f6fb9317a/runs/evalrun_67abd54d60ec8190832b46859da808f7 \2 -H "Authorization: Bearer $OPENAI_API_KEY" \3 -H "Content-Type: application/json"
Example response
1 {2 "object": "eval.run",3 "id": "evalrun_67abd54d60ec8190832b46859da808f7",4 "eval_id": "eval_67abd54d9b0081909a86353f6fb9317a",5 "report_url": "https://platform.openai.com/evaluations/eval_67abd54d9b0081909a86353f6fb9317a?run_id=evalrun_67abd54d60ec8190832b46859da808f7",6 "status": "queued",7 "model": "gpt-4o-mini",8 "name": "gpt-4o-mini",9 "created_at": 1743092069,10 "result_counts": {11 "total": 0,12 "errored": 0,13 "failed": 0,14 "passed": 015 },16 "per_model_usage": null,17 "per_testing_criteria_results": null,18 "data_source": {19 "type": "completions",20 "source": {21 "type": "file_content",22 "content": [23 {24 "item": {25 "input": "Tech Company Launches Advanced Artificial Intelligence Platform",26 "ground_truth": "Technology"27 }28 },29 {30 "item": {31 "input": "Central Bank Increases Interest Rates Amid Inflation Concerns",32 "ground_truth": "Markets"33 }34 },35 {36 "item": {37 "input": "International Summit Addresses Climate Change Strategies",38 "ground_truth": "World"39 }40 },41 {42 "item": {43 "input": "Major Retailer Reports Record-Breaking Holiday Sales",44 "ground_truth": "Business"45 }46 },47 {48 "item": {49 "input": "National Team Qualifies for World Championship Finals",50 "ground_truth": "Sports"51 }52 },53 {54 "item": {55 "input": "Stock Markets Rally After Positive Economic Data Released",56 "ground_truth": "Markets"57 }58 },59 {60 "item": {61 "input": "Global Manufacturer Announces Merger with Competitor",62 "ground_truth": "Business"63 }64 },65 {66 "item": {67 "input": "Breakthrough in Renewable Energy Technology Unveiled",68 "ground_truth": "Technology"69 }70 },71 {72 "item": {73 "input": "World Leaders Sign Historic Climate Agreement",74 "ground_truth": "World"75 }76 },77 {78 "item": {79 "input": "Professional Athlete Sets New Record in Championship Event",80 "ground_truth": "Sports"81 }82 },83 {84 "item": {85 "input": "Financial Institutions Adapt to New Regulatory Requirements",86 "ground_truth": "Business"87 }88 },89 {90 "item": {91 "input": "Tech Conference Showcases Advances in Artificial Intelligence",92 "ground_truth": "Technology"93 }94 },95 {96 "item": {97 "input": "Global Markets Respond to Oil Price Fluctuations",98 "ground_truth": "Markets"99 }100 },101 {102 "item": {103 "input": "International Cooperation Strengthened Through New Treaty",104 "ground_truth": "World"105 }106 },107 {108 "item": {109 "input": "Sports League Announces Revised Schedule for Upcoming Season",110 "ground_truth": "Sports"111 }112 }113 ]114 },115 "input_messages": {116 "type": "template",117 "template": [118 {119 "type": "message",120 "role": "developer",121 "content": {122 "type": "input_text",123 "text": "Categorize a given news headline into one of the following topics: Technology, Markets, World, Business, or Sports.\n\n# Steps\n\n1. Analyze the content of the news headline to understand its primary focus.\n2. Extract the subject matter, identifying any key indicators or keywords.\n3. Use the identified indicators to determine the most suitable category out of the five options: Technology, Markets, World, Business, or Sports.\n4. Ensure only one category is selected per headline.\n\n# Output Format\n\nRespond with the chosen category as a single word. For instance: \"Technology\", \"Markets\", \"World\", \"Business\", or \"Sports\".\n\n# Examples\n\n**Input**: \"Apple Unveils New iPhone Model, Featuring Advanced AI Features\" \n**Output**: \"Technology\"\n\n**Input**: \"Global Stocks Mixed as Investors Await Central Bank Decisions\" \n**Output**: \"Markets\"\n\n**Input**: \"War in Ukraine: Latest Updates on Negotiation Status\" \n**Output**: \"World\"\n\n**Input**: \"Microsoft in Talks to Acquire Gaming Company for $2 Billion\" \n**Output**: \"Business\"\n\n**Input**: \"Manchester United Secures Win in Premier League Football Match\" \n**Output**: \"Sports\" \n\n# Notes\n\n- If the headline appears to fit into more than one category, choose the most dominant theme.\n- Keywords or phrases such as \"stocks\", \"company acquisition\", \"match\", or technological brands can be good indicators for classification.\n"124 }125 },126 {127 "type": "message",128 "role": "user",129 "content": {130 "type": "input_text",131 "text": "{{item.input}}"132 }133 }134 ]135 },136 "model": "gpt-4o-mini",137 "sampling_params": {138 "seed": 42,139 "temperature": 1.0,140 "top_p": 1.0,141 "max_completions_tokens": 2048142 }143 },144 "error": null,145 "metadata": {}146 }
Built with