krazygaurav9810
03/19/2024, 5:38 PM- vars:
language: English
weightInitial: 100
weightGoal: 80
goals: weight loss/get more active
diagnosisDescription: Diabetes type 2 / Essential hypertension
country: United Kingdom
currentMonth: March
timelineWindowPast2DaysPatientEntries: weight, activity
options:
transform: |
var json_output = JSON.parse(output);
var feedbacks = json_output.map(function(item) {
return item.feedback;
});
return feedbacks;
assert:
- type: llm-rubric
value: The message must be written in British English vocabulary not American English
I am using Gemini model and my prompt is expected to give a JSON output with key "feedbacks" which is an array of JSON objects each with key feedback in it. Can someone please help.
I am using the latest version of promptfoo 0.48.0ian
03/19/2024, 5:43 PMkrazygaurav9810
03/19/2024, 5:47 PMian
03/19/2024, 10:08 PMoutput?krazygaurav9810
03/20/2024, 9:37 AMfeedback and a few other keys. I want to run the assertions on all the feedback values. At the end when I show a response in webview I still want the same output returned by the LLM