Prompt Management¶
Prompt Management supports controlled creation, editing, versioning, loading, and export of reusable system instructions and prompt templates.
๐งญ Purpose¶
Prompt Management lets analysts maintain repeatable instructions for provider workflows. It stores prompt metadata and text in SQLite so that system instructions can be reused, revised, exported, and applied consistently across model sessions.
๐งฑ Workflow Position¶
Prompt Management sits before model execution. It prepares the instruction layer that guides Chat, Document Q&A, and other provider-backed tasks.
| Field | Purpose |
|---|---|
| Caption | Display name used in the application selector. |
| Name | Internal or descriptive prompt name. |
| Text | System instruction or prompt body. |
| Version | Version label for governance and controlled revision. |
| ID | External or internal identifier for traceability. |
๐งช Example¶
Task:
Create a reusable federal budget analyst system instruction.
Recommended setup:
- Caption: Budget Analyst
- Name: Federal Budget Guidance Analyst
- Version: 1.0
- Text: Define role, source hierarchy, tone, citation expectations, and analysis limits
- ID: Stable local prompt identifier
โ Recommended Sequence¶
- Open Prompt Management.
- Select an existing prompt or create a new one.
- Enter caption, name, text, version, and ID.
- Save the prompt.
- Load the prompt into the active system-instruction state.
- Use the prompt in Chat or Document Q&A.
- Export prompt text when documentation, review, or portability is needed.
๐ XML and Markdown Conversion¶
Buddy supports converting structured instruction text between XML-delimited sections and Markdown headings. Use XML-style structure when strict prompt segmentation is needed. Use Markdown when the instructions are intended for documentation, review, or readable export.
<role>
Federal budget analyst.
</role>
<rules>
Use source-grounded answers where available.
</rules>
โ ๏ธ Governance Checks¶
Prompt templates should be reviewed for:
- Clear role definition.
- Source hierarchy and citation expectations.
- Limits on unsupported assumptions.
- Version identifiers.
- No embedded secrets, API keys, or sensitive source text.
- Compatibility with all intended providers.
๐ Related API Modules¶
Use the app API documentation for prompt storage, prompt retrieval, prompt updates, deletion, and XML/Markdown conversion utilities.