We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b07ca42 commit 9f9683aCopy full SHA for 9f9683a
py/samples/prompt_demo/README.md
@@ -0,0 +1,24 @@
1
+An example demonstrating how to manage prompts using Genkit's prompt loading system.
2
+
3
+## Setup environment
4
5
+Obtain an API key from [ai.dev](https://ai.dev).
6
7
+Export the API key as env variable `GEMINI_API_KEY` in your shell
8
+configuration.
9
10
+```bash
11
+export GEMINI_API_KEY='<Your api key>'
12
+```
13
14
+## Run the sample
15
16
17
+genkit start -- uv run src/prompt_demo.py
18
19
20
+## Prompt Structure
21
22
+- `data/`: Contains `.prompt` files (using [Dotprompt](https://genkit.dev/docs/dotprompt)).
23
+- `data/_shared_partial.prompt`: A partial that can be included in other prompts.
24
+- `data/nested/nested_hello.prompt`: A prompt demonstrating nested structure and partial inclusion.
0 commit comments