neoteristis
08/02/2024, 3:58 PMyaml
prompts:
- id: file://system-prompt-v001...
- id: file://system-prompt-v002...
defaultTest:
vars:
messages:
- role: system
content: #HERE i want the prompt defined in prompts and used for the current test.
- role: user
content: ....
From what i've understood of promptfoo so far, there is no support for proper system prompts.
This is one way of handling them i've found.
What do you think about it ?
EDIT: i've found this also : https://www.promptfoo.dev/docs/guides/claude-vs-gpt/#define-your-prompts
But this is not quite suitable as it requires to store the prompt in a string and i have biiiig prompts...ian
08/02/2024, 4:22 PMyaml
defaultTest:
vars:
systemPrompt: file://system.txt
messages:
- role: system
content: '{{systemPrompt}}'neoteristis
08/03/2024, 4:45 AMneoteristis
08/03/2024, 4:45 AM