Skip to content

Using Sample JSON Files

Prompty can use sample JSON files to provide example inputs.

Refer to the basic.prompty file for more examples.

YAML
 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
---
name: Sample JSON Prompt
description: A prompt that uses sample JSON files
authors:
  - example_author
model:
  api: chat
  configuration:
    azure_deployment: gpt-35-turbo
sample:
  data: ${file:sample.json}
---
system:
You are an AI assistant that processes sample JSON data.
user:
Please process the following sample data: {{data}}