-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
25 additions
and
27 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,24 @@ | ||
- [Module system](./modules.md) | ||
- [Syntax](./syntax.md) | ||
# Overview | ||
|
||
Metaprompt is a language for prompt automation, structuring and reuse. | ||
|
||
One one side, it is very similar to a template engine like Jinja or EJS. The twist is, metaprompt expansion depends on LLM outputs of LLM queries, that are formed in natural language. | ||
|
||
# Use cases | ||
|
||
## Templating | ||
|
||
The most basic use case of metaprompt is substituting parameter values instead of variable names embedded in a prompt. | ||
|
||
## Prompt organization | ||
|
||
A module system and a package system allow anyone to assign identities to promps and package them as callable functions. | ||
|
||
## Meta-prompting | ||
|
||
Meta-prompting is a technique of asking an LLM to create/modify an LLM prompt. | ||
|
||
- Dynamically crafting task-specific prompts based on a set of high level principles | ||
- Modifying prompts to increase accuracy | ||
- Securing inputs from prompt injection attacks | ||
- Selecting the most suitable model based on prompt contents |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,24 +0,0 @@ | ||
# Overview | ||
|
||
Metaprompt is a language for prompt automation, structuring and reuse. | ||
|
||
One one side, it is very similar to a template engine like Jinja or EJS. The twist is, metaprompt expansion depends on LLM outputs of LLM queries, that are formed in natural language. | ||
|
||
# Use cases | ||
|
||
## Prompt organization | ||
|
||
A module system and a package system allow anyone to assign identities to promps and package them as callable functions. | ||
|
||
## Meta-prompting | ||
|
||
Meta-prompting is a technique of asking an LLM to create an LLM prompt. | ||
|
||
- Using prompts to craft task-specific prompts based on a set of high level principles | ||
- Modifying prompts to increase accuracy | ||
- Securing inputs from prompt injection attacks | ||
- Model selection based on prompt contents | ||
|
||
## Templating | ||
|
||
The most basic use case of metaprompt is substituting parameter values instead of variable names embedded in a prompt. | ||
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters