You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/docs/learn/programming/adapters.md
+28Lines changed: 28 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -74,6 +74,34 @@ The output should resemble:
74
74
{'role': 'user', 'content': '[[ ## question ## ]]\nWhat is 2+2?\n\nRespond with the corresponding output fields, starting with the field `[[ ## answer ## ]]`, and then ending with the marker for `[[ ## completed ## ]]`.'}
75
75
```
76
76
77
+
You can also only fetch the system message by calling `adapter.format_system_message(signature)`.
All interactions will be structured in the following way, with the appropriate values filled in.
963
+
964
+
Inputs will have the following structure:
965
+
966
+
[[ ## question ## ]]
967
+
{question}
968
+
969
+
Outputs will be a JSON object with the following fields.
970
+
971
+
{
972
+
"answers": "{answers} # note: the value you produce must adhere to the JSON schema: {\\"type\\": \\"array\\", \\"items\\": {\\"type\\": \\"string\\"}}",
973
+
"scores": "{scores} # note: the value you produce must adhere to the JSON schema: {\\"type\\": \\"array\\", \\"items\\": {\\"type\\": \\"number\\"}}"
974
+
}
975
+
In adhering to this structure, your objective is:
976
+
Answer the question with multiple answers and scores"""
0 commit comments