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
Who were the kings of France during the 18th century?
Các hàm có sẵn:
[{"name": "european_history.get_events", "description": "Provides a list of major historical events based on the specified country and century.", "parameters": {"type": "object", "properties": {"country": {"type": "string", "description": "Country name."}, "century": {"type": "integer", "description": "Century as an integer. For example, for the 1700s, input '18'."}, "event_type": {"type": "string", "description": "Type of the event such as 'war', 'invention', 'revolution' etc. This field is optional. Default is 'all'"}}, "required": ["country", "century"]}}, {"name": "european_history.get_culture", "description": "Provides information on cultural trends, art movements, philosophical ideas based on the specified country and century.", "parameters": {"type": "object", "properties": {"country": {"type": "string", "description": "Country name."}, "century": {"type": "integer", "description": "Century as an integer. For example, for the 1700s, input '18'."}, "aspect": {"type": "string", "description": "Aspect of culture such as 'literature', 'art', 'philosophy' etc. This field is optional. Default 'any'"}}, "required": ["country", "century"]}}, {"name": "european_history.get_monarchs", "description": "Provides a list of monarchs based on the specified country and century.", "parameters": {"type": "object", "properties": {"country": {"type": "string", "description": "Country name."}, "century": {"type": "integer", "description": "Century as an integer. For example, for the 1700s, input '18'."}}, "required": ["country", "century"]}}]
Câu trả lời của mô hình:
[{'name': 'european_history.get_monarchs', 'arguments': {'country': 'France', 'century': 18}}]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?
-
Độ đầy đủ của lời gọi hàm (0–10 điểm):
- Các tham số quan trọng có được cung cấp đầy đủ không, đặc biệt là các tham số bắt buộc?
-
- Assistant
{ "correct": 10, "function_order": 10, "completeness": 10, "intent_understanding": 10 }