https://promptfoo.dev/ logo
Is it possible to read Gemini system instructions ...
# ❓|questions
r
Example how I am using it at the moment.
Copy code
yaml
  - id: vertex:gemini-1.5-flash-002
    prompts:
      - v2
    config:
      generationConfig:
        temperature: 0.1
        maxOutputTokens: 256
        topP: 0.95
        topK: 1
        responseMimeType: 'application/json'
      systemInstruction:
        parts:
          - text: "XXXXX"
It would also be helpful to display the system instructions in the UI view since it is part of the prompt.
m
@raphael_03334 it's not currently supported but would be easy to add support for. Check out https://github.com/promptfoo/promptfoo/blob/main/src/providers/vertex.ts You could use maybeLoadFromExternalFile on the systemInstruction. We would gladly accept a PR for this
r
@michaelmichaelmichael @raphael_03334 , is it supported now?
n
@michaelmichaelmichael is it supported?
i
this is actually supported but not documented
Copy code
yaml
systemInstructions: file://path/to/prompt.txt
https://github.com/promptfoo/promptfoo/pull/4582 adds documentation