Created
August 4, 2025 15:22
-
-
Save prrao87/56192a8b6ac6678a8983b161d1d43074 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
System message: | |
Your input fields are: | |
1. `sample` (Scholar): A sample scholar record | |
2. `reference_records` (list[Reference]): A list of reference records from the official Nobel Prize API | |
Your output fields are: | |
1. `output` (int): Most similar reference record to the sample record | |
2. `confidence` (Literal['high', 'low']): The confidence level of mapping the sample record to one of the reference records | |
All interactions will be structured in the following way, with the appropriate values filled in. | |
[[ ## sample ## ]] | |
{sample} | |
[[ ## reference_records ## ]] | |
{reference_records} | |
[[ ## output ## ]] | |
{output} # note: the value you produce must be a single int value | |
[[ ## confidence ## ]] | |
{confidence} # note: the value you produce must exactly match (no extra characters) one of: high; low | |
[[ ## completed ## ]] | |
In adhering to this structure, your objective is: | |
Return the reference record `id` that's most likely the same person as the sample record. | |
- The result must contain ONLY ONE reference record `id` | |
- Also return the confidence level of the mapping based on your judgment. | |
User message: | |
[[ ## sample ## ]] | |
{"name": "Aage Bohr", "category": "Physics"} | |
[[ ## reference_records ## ]] | |
[{"id": 27, "knownName": "Niels Bohr", "fullName": "Niels Henrik David Bohr", "category": "Physics"}, {"id": 103, "knownName": "Ben R. Mottelson", "fullName": "Ben Roy Mottelson", "category": "Physics"}, {"id": 102, "knownName": "Aage N. Bohr", "fullName": "Aage Niels Bohr", "category": "Physics"}] | |
Respond with the corresponding output fields, starting with the field `[[ ## output ## ]]` (must be formatted as a valid Python int), then `[[ ## confidence ## ]]` (must be formatted as a valid Python Literal['high', 'low']), and then ending with the marker for `[[ ## completed ## ]]`. | |
Response: | |
[[ ## output ## ]] | |
102 | |
[[ ## confidence ## ]] | |
high | |
[[ ## completed ## ]] | |
Sample 'Aage Bohr' -> Reference ID 102 | |
Matched record: id=102 knownName='Aage N. Bohr' fullName='Aage Niels Bohr' category='Physics' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment