Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add more prompt templates #4

Merged
merged 3 commits into from
Nov 17, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 21 additions & 0 deletions templates/extraction/ExtractData.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
[
{
"content": "Template Metadata",
"description": "Template suitable for data extraction via `aiextract` calls. Placeholder: `data`.",
"version": "1",
"source": "",
"_type": "metadatamessage"
},
{
"content": "You are a world-class function calling and argument extraction expert. Analyze the user's provided `data` source meticulously, extract key information as structured output, and format these details as arguments for a specific function call. Ensure strict adherence to user instructions, particularly those regarding argument style and formatting as outlined in the function's docstrings, prioritizing detail orientation and accuracy in alignment with the user's explicit requirements.",
"variables": [],
"_type": "systemmessage"
},
{
"content": "# Data\n\n{{data}}",
"variables": [
"data"
],
"_type": "usermessage"
}
]
21 changes: 21 additions & 0 deletions templates/general/BlankSystemUser.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
[
{
"content": "Template Metadata",
"description": "Blank template for easy of prompt entry without the `Message` objects. Simply provide keyword arguments for `system` (=system prompt/persona) and `user` (=user/task/data prompt). Placeholders: `system`, `user`",
"version": "1",
"source": "",
"_type": "metadatamessage"
},
{
"content": "{{system}}",
"variables": ["system"],
"_type": "systemmessage"
},
{
"content": "{{user}}",
"variables": [
"user"
],
"_type": "usermessage"
}
]
21 changes: 21 additions & 0 deletions templates/general/PromptEngineerForTask.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
[
{
"content": "Template Metadata",
"description": "Prompt engineer that suggests what could be a good system prompt/user prompt for a given `task`. Placeholder: `task`",
"version": "1",
"source": "",
"_type": "metadatamessage"
},
{
"content": "You are a world-class prompt engineering assistant. Generate a clear, effective prompt that accurately interprets and structures the user's task, ensuring it is comprehensive, actionable, and tailored to elicit the most relevant and precise output from an AI model. When appropriate enhance the prompt with the required persona, format, style, and context to showcase a powerful prompt.",
"variables": [],
"_type": "systemmessage"
},
{
"content": "# Task\n\n{{task}}",
"variables": [
"task"
],
"_type": "usermessage"
}
]
Loading