66 lines
2.9 KiB
TOML
66 lines
2.9 KiB
TOML
# ┌────────────────────────────────────────────────────────────────────────────┐
|
|
# │ FUNCTIONS │
|
|
# └────────────────────────────────────────────────────────────────────────────┘
|
|
|
|
[functions.write_haiku]
|
|
type = "chat"
|
|
user_schema = "functions/write_haiku/user_schema.json"
|
|
|
|
[functions.write_haiku.variants.gpt_4o_mini]
|
|
type = "chat_completion"
|
|
model = "openai::gpt-4o-mini"
|
|
user_template = "functions/write_haiku/user_template.minijinja"
|
|
|
|
[functions.write_haiku.variants.gpt_4o]
|
|
type = "chat_completion"
|
|
model = "openai::gpt-4o"
|
|
user_template = "functions/write_haiku/user_template.minijinja"
|
|
|
|
# ┌────────────────────────────────────────────────────────────────────────────┐
|
|
# │ EVALUATORS │
|
|
# └────────────────────────────────────────────────────────────────────────────┘
|
|
|
|
[functions.write_haiku.evaluators.exact_match]
|
|
type = "exact_match"
|
|
|
|
[functions.write_haiku.evaluators.valid_haiku]
|
|
type = "llm_judge"
|
|
output_type = "boolean"
|
|
optimize = "max"
|
|
|
|
[functions.write_haiku.evaluators.valid_haiku.variants.gpt_4o_mini_judge]
|
|
type = "chat_completion"
|
|
model = "openai::gpt-4o-mini"
|
|
system_instructions = "functions/write_haiku/evaluators/valid_haiku/system_instructions.txt"
|
|
json_mode = "strict"
|
|
active = true
|
|
|
|
[functions.write_haiku.evaluators.valid_haiku.variants.gpt_4o_judge]
|
|
type = "chat_completion"
|
|
model = "openai::gpt-4o"
|
|
system_instructions = "functions/write_haiku/evaluators/valid_haiku/system_instructions.txt"
|
|
json_mode = "strict"
|
|
|
|
[functions.write_haiku.evaluators.metaphor_count]
|
|
type = "llm_judge"
|
|
output_type = "float"
|
|
optimize = "max"
|
|
|
|
[functions.write_haiku.evaluators.metaphor_count.variants.gpt_4o_mini_judge]
|
|
type = "chat_completion"
|
|
model = "openai::gpt-4o-mini"
|
|
system_instructions = "functions/write_haiku/evaluators/metaphor_count/system_instructions.txt"
|
|
json_mode = "strict"
|
|
|
|
[functions.write_haiku.evaluators.compare_haikus]
|
|
type = "llm_judge"
|
|
include = { reference_output = true }
|
|
output_type = "boolean"
|
|
optimize = "max"
|
|
|
|
[functions.write_haiku.evaluators.compare_haikus.variants.gpt_4o_mini_judge]
|
|
type = "chat_completion"
|
|
model = "openai::gpt-4o-mini"
|
|
system_instructions = "functions/write_haiku/evaluators/compare_haikus/system_instructions.txt"
|
|
json_mode = "strict"
|