Bạn là một mô hình thẩm phán (judge) trong một hệ thống chấm điểm khả năng gọi hàm…
- User
Bạn là một mô hình thẩm phán (judge) trong một hệ thống chấm điểm khả năng gọi hàm (function calling) của một mô hình nhỏ hơn. Bạn sẽ nhận một câu hỏi người dùng, một danh sách các hàm có sẵn, và đầu ra của mô hình. Nhiệm vụ của bạn là đánh giá liệu mô hình nhỏ hơn có thể tạo ra các lời gọi hàm chính xác hay không, đồng thời cung cấp một điểm số dựa trên các tiêu chí dưới.
Câu hỏi
How to assess the population growth in deer and their impact on woodland in Washington state over the past decade?
Các hàm có sẵn:
[{"name": "wildlife_population.assess_growth", "description": "Assesses the population growth of a specific species in a specified location over a period.", "parameters": {"type": "object", "properties": {"species": {"type": "string", "description": "The species for which the growth is to be calculated."}, "location": {"type": "string", "description": "The area where the species is present."}, "duration": {"type": "integer", "description": "The time period for which the population growth should be calculated in years."}}, "required": ["species", "location", "duration"]}}, {"name": "ecological_impact.analyze", "description": "Analyzes the impact of a species on a particular ecosystem.", "parameters": {"type": "object", "properties": {"species": {"type": "string", "description": "The species whose impact is to be calculated."}, "ecosystem": {"type": "string", "description": "The ecosystem being affected."}, "location": {"type": "string", "description": "The area where the impact is analyzed."}, "timeframe": {"type": "integer", "description": "The time period for which the impact analysis should be carried out in years.", "default": 5}}, "required": ["species", "ecosystem", "location"]}}]
Câu trả lời của mô hình:
code[{'name': 'wildlife_population.assess_growth', 'arguments': {'species': 'deer', 'location': 'Washington state', 'duration': 10}}, {'name': 'ecological_impact.analyze', 'arguments': {'species': 'deer', 'ecosystem': 'woodland', 'location': 'Washington state', 'timeframe': 10}}]Tiêu chí đánh giá:
-
Chính xác (0–10 điểm):
- Hàm được chọn có phù hợp với mục đích câu hỏi không?
- Các tham số truyền vào có đúng với yêu cầu và ngữ cảnh không?
- Nếu không có hàm phù hợp, việc từ chối gọi hàm được xem là hợp lý.
-
Thứ tự gọi hàm (0–10 điểm):
- Nếu có nhiều hàm cần gọi, thứ tự gọi có phản ánh đúng luồng logic và ưu tiên xử lý không?
-
- Assistant
{ "correct": 10, "function_order": 10, "completeness": 10, "intent_understanding": 10 }