Function
fillTemplate
(template: string, question: string, answer: string, response: string)
Source from the content-addressed store, hash-verified
| 42 | } |
| 43 | |
| 44 | function fillTemplate(template: string, question: string, answer: string, response: string): string { |
| 45 | return template.replace("{}", question).replace("{}", answer).replace("{}", response); |
| 46 | } |
| 47 | |
| 48 | export function buildJudgePrompt(question: LongMemEvalQuestion, response: string): string { |
| 49 | if (question.question_id.endsWith("_abs")) { |
Tested by
no test coverage detected