本文属于机器翻译版本。若本译文内容与英语原文存在差异,则一律以英文原文为准。
选项 1:为数据准备提供您自己的提示
收集您的提示并以 .jsonl 文件格式存储它们。JSONL 中的每条记录都必须使用以下结构的 OpenAI 聊天完成格式:
-
在消息字段中,包括包含向模型提供的输入提示的用户、系统或助理角色。
-
[可选] 您可以添加评分者 Lambda 用于评分的字段。
格式示例:
{ "messages": [ {"role": "system", "content": "You are a helpful assistant"}, {"role": "user", "content": "What is machine learning?"} ], "reference_answer": "Machine learning is a subset of artificial intelligence that enables computers to learn and make decisions from data without being explicitly programmed." }