Metaphor

An AI prompt creation language

Metaphor is an AI prompt creation language designed to help users generate high-quality prompts for a wide range of AI models.

It has a simple declarative syntax that allows users to define roles, context, and actions in a structured way. As with programming languages, Metaphor files can be included in other files, allowing for modular and reusable prompt definitions.

Metaphor emphasizes the importance of context. By providing precise context it allows users to generate prompts that focus an AI's attention on the specific relevant information, rather than drawing on its entire training corpus. This dramatically reduces the chances of hallucinations and makes it much easier to get consistent results.

Metaphor and Humbug

Metaphor has been used extensively in the development of Humbug. Humbug is an experimental human/AI operating system.

Blog posts

I have written a few blog posts about Metaphor, which you can read here:

Source code

A tutorial for using Metaphor can be found on GitHub: https://github.com/m6r-ai/getting-started-with-metaphor

The source code for the stand-alone Metaphor prompt compiler can be found on GitHub: https://github.com/m6r-ai/m6rc