|
feature_configs { |
|
feature: MODEL_EXECUTION_FEATURE_SUMMARIZE |
|
input_config { |
|
request_base_name: "optimization_guide.proto.SummarizeRequest" |
|
execute_substitutions { |
|
string_template: "%s%s\n%s%s\n%s\n%sTEXT: %s\n%s%sPlease summarize.%s%s" |
|
substitutions { |
|
candidates { |
|
control_token: CONTROL_TOKEN_SYSTEM |
|
} |
|
} |
|
substitutions { |
|
candidates { |
|
raw_string: "You are a skilled copy editor crafting headlines to capture attention and convey the essence of the content provided in the ‘TEXT’ section." |
|
conditions { |
|
condition_evaluation_type: CONDITION_EVALUATION_TYPE_AND |
|
conditions { |
|
proto_field { |
|
proto_descriptors { |
|
tag_number: 3 |
|
} |
|
proto_descriptors { |
|
tag_number: 1 |
|
} |
|
} |
|
operator_type: OPERATOR_TYPE_EQUAL_TO |
|
value { |
|
int32_value: 4 |
|
} |
|
} |
|
} |
|
} |
|
candidates { |
|
raw_string: "You are a skilled assistant that accurately summarizes content provided in the ‘TEXT’ section." |
|
} |
|
} |
|
substitutions { |
|
candidates { |
|
raw_string: "Summarize the text as if explaining it to someone with a very short attention span.\n" |
|
conditions { |
|
condition_evaluation_type: CONDITION_EVALUATION_TYPE_AND |
|
conditions { |
|
proto_field { |
|
proto_descriptors { |
|
tag_number: 3 |
|
} |
|
proto_descriptors { |
|
tag_number: 1 |
|
} |
|
} |
|
operator_type: OPERATOR_TYPE_EQUAL_TO |
|
value { |
|
int32_value: 1 |
|
} |
|
} |
|
} |
|
} |
|
candidates { |
|
raw_string: "Extract the main points of the text and present them as a bulleted list.\n" |
|
conditions { |
|
condition_evaluation_type: CONDITION_EVALUATION_TYPE_AND |
|
conditions { |
|
proto_field { |
|
proto_descriptors { |
|
tag_number: 3 |
|
} |
|
proto_descriptors { |
|
tag_number: 1 |
|
} |
|
} |
|
operator_type: OPERATOR_TYPE_EQUAL_TO |
|
value { |
|
int32_value: 2 |
|
} |
|
} |
|
} |
|
} |
|
candidates { |
|
raw_string: "Craft an enticing summary that encourages the user to read the full text.\n" |
|
conditions { |
|
condition_evaluation_type: CONDITION_EVALUATION_TYPE_AND |
|
conditions { |
|
proto_field { |
|
proto_descriptors { |
|
tag_number: 3 |
|
} |
|
proto_descriptors { |
|
tag_number: 1 |
|
} |
|
} |
|
operator_type: OPERATOR_TYPE_EQUAL_TO |
|
value { |
|
int32_value: 3 |
|
} |
|
} |
|
} |
|
} |
|
candidates { |
|
raw_string: "Generate a headline that effectively summarizes the main point of the text.\n" |
|
conditions { |
|
condition_evaluation_type: CONDITION_EVALUATION_TYPE_AND |
|
conditions { |
|
proto_field { |
|
proto_descriptors { |
|
tag_number: 3 |
|
} |
|
proto_descriptors { |
|
tag_number: 1 |
|
} |
|
} |
|
operator_type: OPERATOR_TYPE_EQUAL_TO |
|
value { |
|
int32_value: 4 |
|
} |
|
} |
|
} |
|
} |
|
candidates { |
|
raw_string: "" |
|
} |
|
} |
|
substitutions { |
|
candidates { |
|
raw_string: "The summary must fit within one sentence." |
|
conditions { |
|
condition_evaluation_type: CONDITION_EVALUATION_TYPE_AND |
|
conditions { |
|
proto_field { |
|
proto_descriptors { |
|
tag_number: 3 |
|
} |
|
proto_descriptors { |
|
tag_number: 3 |
|
} |
|
} |
|
operator_type: OPERATOR_TYPE_EQUAL_TO |
|
value { |
|
int32_value: 1 |
|
} |
|
} |
|
conditions { |
|
proto_field { |
|
proto_descriptors { |
|
tag_number: 3 |
|
} |
|
proto_descriptors { |
|
tag_number: 1 |
|
} |
|
} |
|
operator_type: OPERATOR_TYPE_EQUAL_TO |
|
value { |
|
int32_value: 1 |
|
} |
|
} |
|
} |
|
} |
|
candidates { |
|
raw_string: "The summary must fit within one paragraph." |
|
conditions { |
|
condition_evaluation_type: CONDITION_EVALUATION_TYPE_AND |
|
conditions { |
|
proto_field { |
|
proto_descriptors { |
|
tag_number: 3 |
|
} |
|
proto_descriptors { |
|
tag_number: 3 |
|
} |
|
} |
|
operator_type: OPERATOR_TYPE_EQUAL_TO |
|
value { |
|
int32_value: 3 |
|
} |
|
} |
|
conditions { |
|
proto_field { |
|
proto_descriptors { |
|
tag_number: 3 |
|
} |
|
proto_descriptors { |
|
tag_number: 1 |
|
} |
|
} |
|
operator_type: OPERATOR_TYPE_EQUAL_TO |
|
value { |
|
int32_value: 1 |
|
} |
|
} |
|
} |
|
} |
|
candidates { |
|
raw_string: "The summary must consist of no more than 3 bullet points." |
|
conditions { |
|
condition_evaluation_type: CONDITION_EVALUATION_TYPE_AND |
|
conditions { |
|
proto_field { |
|
proto_descriptors { |
|
tag_number: 3 |
|
} |
|
proto_descriptors { |
|
tag_number: 3 |
|
} |
|
} |
|
operator_type: OPERATOR_TYPE_EQUAL_TO |
|
value { |
|
int32_value: 1 |
|
} |
|
} |
|
conditions { |
|
proto_field { |
|
proto_descriptors { |
|
tag_number: 3 |
|
} |
|
proto_descriptors { |
|
tag_number: 1 |
|
} |
|
} |
|
operator_type: OPERATOR_TYPE_EQUAL_TO |
|
value { |
|
int32_value: 2 |
|
} |
|
} |
|
} |
|
} |
|
candidates { |
|
raw_string: "The summary must consist of no more than 5 bullet points." |
|
conditions { |
|
condition_evaluation_type: CONDITION_EVALUATION_TYPE_AND |
|
conditions { |
|
proto_field { |
|
proto_descriptors { |
|
tag_number: 3 |
|
} |
|
proto_descriptors { |
|
tag_number: 3 |
|
} |
|
} |
|
operator_type: OPERATOR_TYPE_EQUAL_TO |
|
value { |
|
int32_value: 2 |
|
} |
|
} |
|
conditions { |
|
proto_field { |
|
proto_descriptors { |
|
tag_number: 3 |
|
} |
|
proto_descriptors { |
|
tag_number: 1 |
|
} |
|
} |
|
operator_type: OPERATOR_TYPE_EQUAL_TO |
|
value { |
|
int32_value: 2 |
|
} |
|
} |
|
} |
|
} |
|
candidates { |
|
raw_string: "The summary must consist of no more than 7 bullet points." |
|
conditions { |
|
condition_evaluation_type: CONDITION_EVALUATION_TYPE_AND |
|
conditions { |
|
proto_field { |
|
proto_descriptors { |
|
tag_number: 3 |
|
} |
|
proto_descriptors { |
|
tag_number: 3 |
|
} |
|
} |
|
operator_type: OPERATOR_TYPE_EQUAL_TO |
|
value { |
|
int32_value: 3 |
|
} |
|
} |
|
conditions { |
|
proto_field { |
|
proto_descriptors { |
|
tag_number: 3 |
|
} |
|
proto_descriptors { |
|
tag_number: 1 |
|
} |
|
} |
|
operator_type: OPERATOR_TYPE_EQUAL_TO |
|
value { |
|
int32_value: 2 |
|
} |
|
} |
|
} |
|
} |
|
candidates { |
|
raw_string: "The summary must fit within one sentence." |
|
conditions { |
|
condition_evaluation_type: CONDITION_EVALUATION_TYPE_AND |
|
conditions { |
|
proto_field { |
|
proto_descriptors { |
|
tag_number: 3 |
|
} |
|
proto_descriptors { |
|
tag_number: 3 |
|
} |
|
} |
|
operator_type: OPERATOR_TYPE_EQUAL_TO |
|
value { |
|
int32_value: 1 |
|
} |
|
} |
|
conditions { |
|
proto_field { |
|
proto_descriptors { |
|
tag_number: 3 |
|
} |
|
proto_descriptors { |
|
tag_number: 1 |
|
} |
|
} |
|
operator_type: OPERATOR_TYPE_EQUAL_TO |
|
value { |
|
int32_value: 3 |
|
} |
|
} |
|
} |
|
} |
|
candidates { |
|
raw_string: "The summary must fit within one paragraph." |
|
conditions { |
|
condition_evaluation_type: CONDITION_EVALUATION_TYPE_AND |
|
conditions { |
|
proto_field { |
|
proto_descriptors { |
|
tag_number: 3 |
|
} |
|
proto_descriptors { |
|
tag_number: 3 |
|
} |
|
} |
|
operator_type: OPERATOR_TYPE_EQUAL_TO |
|
value { |
|
int32_value: 3 |
|
} |
|
} |
|
conditions { |
|
proto_field { |
|
proto_descriptors { |
|
tag_number: 3 |
|
} |
|
proto_descriptors { |
|
tag_number: 1 |
|
} |
|
} |
|
operator_type: OPERATOR_TYPE_EQUAL_TO |
|
value { |
|
int32_value: 3 |
|
} |
|
} |
|
} |
|
} |
|
candidates { |
|
raw_string: "The headline must be concise, using a maximum of 12 words, and capture the essence of the text." |
|
conditions { |
|
condition_evaluation_type: CONDITION_EVALUATION_TYPE_AND |
|
conditions { |
|
proto_field { |
|
proto_descriptors { |
|
tag_number: 3 |
|
} |
|
proto_descriptors { |
|
tag_number: 3 |
|
} |
|
} |
|
operator_type: OPERATOR_TYPE_EQUAL_TO |
|
value { |
|
int32_value: 1 |
|
} |
|
} |
|
conditions { |
|
proto_field { |
|
proto_descriptors { |
|
tag_number: 3 |
|
} |
|
proto_descriptors { |
|
tag_number: 1 |
|
} |
|
} |
|
operator_type: OPERATOR_TYPE_EQUAL_TO |
|
value { |
|
int32_value: 4 |
|
} |
|
} |
|
} |
|
} |
|
candidates { |
|
raw_string: "The headline must be concise, using a maximum of 17 words, and capture the essence of the text." |
|
conditions { |
|
condition_evaluation_type: CONDITION_EVALUATION_TYPE_AND |
|
conditions { |
|
proto_field { |
|
proto_descriptors { |
|
tag_number: 3 |
|
} |
|
proto_descriptors { |
|
tag_number: 3 |
|
} |
|
} |
|
operator_type: OPERATOR_TYPE_EQUAL_TO |
|
value { |
|
int32_value: 2 |
|
} |
|
} |
|
conditions { |
|
proto_field { |
|
proto_descriptors { |
|
tag_number: 3 |
|
} |
|
proto_descriptors { |
|
tag_number: 1 |
|
} |
|
} |
|
operator_type: OPERATOR_TYPE_EQUAL_TO |
|
value { |
|
int32_value: 4 |
|
} |
|
} |
|
} |
|
} |
|
candidates { |
|
raw_string: "The headline must be detailed, using a maximum of 22 words, and comprehensively capture the key themes of the text." |
|
conditions { |
|
condition_evaluation_type: CONDITION_EVALUATION_TYPE_AND |
|
conditions { |
|
proto_field { |
|
proto_descriptors { |
|
tag_number: 3 |
|
} |
|
proto_descriptors { |
|
tag_number: 3 |
|
} |
|
} |
|
operator_type: OPERATOR_TYPE_EQUAL_TO |
|
value { |
|
int32_value: 3 |
|
} |
|
} |
|
conditions { |
|
proto_field { |
|
proto_descriptors { |
|
tag_number: 3 |
|
} |
|
proto_descriptors { |
|
tag_number: 1 |
|
} |
|
} |
|
operator_type: OPERATOR_TYPE_EQUAL_TO |
|
value { |
|
int32_value: 4 |
|
} |
|
} |
|
} |
|
} |
|
candidates { |
|
raw_string: "The summary must fit within one short paragraph." |
|
} |
|
} |
|
substitutions { |
|
candidates { |
|
raw_string: "The summary must be in valid Markdown syntax." |
|
conditions { |
|
condition_evaluation_type: CONDITION_EVALUATION_TYPE_AND |
|
conditions { |
|
proto_field { |
|
proto_descriptors { |
|
tag_number: 3 |
|
} |
|
proto_descriptors { |
|
tag_number: 2 |
|
} |
|
} |
|
operator_type: OPERATOR_TYPE_EQUAL_TO |
|
value { |
|
int32_value: 2 |
|
} |
|
} |
|
} |
|
} |
|
candidates { |
|
raw_string: "The summary must not contain any formatting or markup language." |
|
} |
|
} |
|
substitutions { |
|
candidates { |
|
proto_field { |
|
proto_descriptors { |
|
tag_number: 2 |
|
} |
|
} |
|
conditions { |
|
condition_evaluation_type: CONDITION_EVALUATION_TYPE_AND |
|
conditions { |
|
proto_field { |
|
proto_descriptors { |
|
tag_number: 2 |
|
} |
|
} |
|
operator_type: OPERATOR_TYPE_NOT_EQUAL_TO |
|
value { |
|
string_value: "" |
|
} |
|
} |
|
} |
|
} |
|
candidates { |
|
raw_string: "" |
|
} |
|
} |
|
substitutions { |
|
candidates { |
|
proto_field { |
|
proto_descriptors { |
|
tag_number: 1 |
|
} |
|
} |
|
} |
|
} |
|
substitutions { |
|
candidates { |
|
control_token: CONTROL_TOKEN_END |
|
} |
|
} |
|
substitutions { |
|
candidates { |
|
control_token: CONTROL_TOKEN_USER |
|
} |
|
} |
|
substitutions { |
|
candidates { |
|
control_token: CONTROL_TOKEN_END |
|
} |
|
} |
|
substitutions { |
|
candidates { |
|
control_token: CONTROL_TOKEN_MODEL |
|
} |
|
} |
|
} |
|
} |
|
output_config { |
|
proto_type: "optimization_guide.proto.StringValue" |
|
proto_field { |
|
proto_descriptors { |
|
tag_number: 1 |
|
} |
|
} |
|
} |
|
sampling_params { |
|
top_k: 3 |
|
temperature: 1 |
|
} |
|
} |
|
validation_config { |
|
validation_prompts { |
|
prompt: "Who is the first president of the US?<ctrl23>" |
|
expected_output: "washington" |
|
} |
|
validation_prompts { |
|
prompt: "What is the first element in the periodic table?<ctrl23>" |
|
expected_output: "hydrogen" |
|
} |
|
} |