Intro
I have discovered and tested certain directives and parameters for GPT through trial and error, along with others in the OpenAI Discord community. This information is not officially documented by OpenAI, but I hope it is helpful as a pseudo-documentation. Please note that this information is not endorsed by OpenAI, but rather is syntax that appears to be effective. Check out More GPT Tips and Tricks.
Directives
Directives are action verbs that allow you to instruct GPT to do different things. Learn more about bracket directive syntax.
A directive is a term used to tell GPT you are instructing it to do something. Directives, are written in a specific format and can include action verbs such as "write," "do," or "type." Directives may also include additional conditions that must be followed, indicated by a colon (:). GPT processes directives in the order they are written and can follow logical operations such as AND, OR, and XAND (which represents "not AND"). The general format looks like this:
[directiveName: directObject1...directObjectN]
analyze:
Examine the structure of a text.
prompt:[analyze: "The quick brown fox jumped over the lazy dog"][write:verbs]
reply: jump
cross-reference:
Compare input text to something else
prompt:[metaphorical analysis:"I dreamt I was being chased by a lion and a lamb saved me"][cross-reference: The Holy Bible]
reply:In the context of this dream, the lion represents danger or threat while the lamb represents innocence or purity. The metaphor could potentially be referencing the biblical passage in Isaiah 11:6, which states "The wolf will live with the lamb, the leopard will lie down with the goat, the calf and the lion and the yearling together; and a little child will lead them." This passage speaks of a time of peace and harmony, where even the most ferocious of animals will lay down their aggression. In the dream, the lamb symbolizes this peaceful resolution, rescuing the dreamer from the danger represented by the lion. This could be interpreted as a metaphor for the power of innocence and goodness to overcome even the most formidable challenges.
disable:
Turn off a GPT feature. See [Parameters] to see what can be disabled.
prompt: [disable: "Pretext" AND "Context"]
write:
Tells GPT to 'write' something.
prompt: [write: a noun]
reply: Apple
Parameters
Context - GPT may include additional information or "fluff" in its replies. In most cases, the responses can still be understood with Context disabled.
Pretext: The introductory statement often appearing at the beginning of a reply, such as "Sure, I can answer your question about X."*
*it is important to note that the Pretext is also where GPT will warn you if it does not have enough information or is unsure about something, so you may want to leave it enabled for this reason.
Comments
- No comments yet.
John Solly
Hi, I'm John, a Software Engineer with a decade of experience building, deploying, and maintaining cloud-native geospatial solutions. I currently serve as a senior software engineer at HazardHub (A Guidewire Offering), where I work on a variety of infrastructure and application development projects.
Throughout my career, I've built applications on platforms like Esri and Mapbox while also leveraging open-source GIS technologies such as OpenLayers, GeoServer, and GDAL. This blog is where I share useful articles with the GeoDev community. Check out my portfolio to see my latest work!
0