Prompts
Creating and Editing Prompts
Creating well-structured prompts is crucial for ensuring accurate AI outputs. In Datograde, you can create new prompts, edit existing ones, and manage their versions to refine performance.
Creating a New Prompt
-
Navigate to the Prompts section and click New Prompt.
-
In the Prompt Editor, fill out the following fields:
- Name: A descriptive name for your prompt (e.g., "Summarize Transcript").
- Tags: Add relevant tags to categorize the prompt (e.g.,
draft
,summarization
). - Instructions: Write the core instructions the AI should follow. For example:
- Expected Input: Define the input format (e.g., "A JSON object containing a transcript string").
- Expected Output: Specify the desired output format (e.g., "A string summarizing the transcript").
-
Use the Preview panel to test your prompt with a sample input.
-
Click Save to save your prompt.
Editing an Existing Prompt
- Select a prompt from the Prompts Dashboard.
- Click Edit to open the Prompt Editor.
- Make changes to:
- Instructions to refine the AI behavior.
- Input/output expectations to ensure clarity.
- Save your changes as a new version, preserving the history of previous versions.
Version Control
- Each edit to a prompt creates a new version.
- Use the Version History tab to:
- Compare versions and roll back to a previous version if needed.
- Review comments and activity logs associated with each version.
Tips for Writing Effective Prompts
- Be Clear and Specific: Ambiguity in instructions can lead to inconsistent outputs.
- Use Constraints: Specify limits on the length, format, or tone of the output.
- Provide Context: If the input is complex, include example formats or clarifications in the instructions.