
Jargon: an LLM-based pseudolanguage for prompt engineering
Warning and disclaimer🚨 You are about to enter the realm of LLM pseudolanguages. Pseudolanguages are weird, experimental, and crazy. They don’t work very well yet, even on state-of-the-art LLMs. Use pseudolanguages at your own risk. Do not use them for anything with high stakes or in production.tl;drJargon is a natural language, informally specified, intelligently interpreted, referentially omnipotent, and flow control oriented LLM-based pseudolanguage for prompt engineering, currently runni...
New features in Jargon v0.0.12
If you are not familiar with Jargon, start at the introductory article and Github.Jargon is now specified as a Jargon procedureAs of Jargon 0.0.10, the Jargon language is specified self-referentially as a Jargon procedure with Jargon axioms, which goes on to define Jargon procedures and Jargon axioms and the other language constructs.Jargon explicitly supports type expressionsA type expression is a natural language description of a class of data. For example:[an even number] Type expressions ...

The one-way doors of innovation
In the course of observing an innovation process with its whirring and whistling, periodically we come to a one-way door. Once we walk through that door, we can never go back. The invention of Bitcoin was such a door. Overnight, the power of nation states to monopolize the issuance and distribution of currency dissipated. The democratization of issuance of digital assets logically followed, and as a species we are now in a fundamentally more advanced leg of our technological innovation journe...
<100 subscribers

Jargon: an LLM-based pseudolanguage for prompt engineering
Warning and disclaimer🚨 You are about to enter the realm of LLM pseudolanguages. Pseudolanguages are weird, experimental, and crazy. They don’t work very well yet, even on state-of-the-art LLMs. Use pseudolanguages at your own risk. Do not use them for anything with high stakes or in production.tl;drJargon is a natural language, informally specified, intelligently interpreted, referentially omnipotent, and flow control oriented LLM-based pseudolanguage for prompt engineering, currently runni...
New features in Jargon v0.0.12
If you are not familiar with Jargon, start at the introductory article and Github.Jargon is now specified as a Jargon procedureAs of Jargon 0.0.10, the Jargon language is specified self-referentially as a Jargon procedure with Jargon axioms, which goes on to define Jargon procedures and Jargon axioms and the other language constructs.Jargon explicitly supports type expressionsA type expression is a natural language description of a class of data. For example:[an even number] Type expressions ...

The one-way doors of innovation
In the course of observing an innovation process with its whirring and whistling, periodically we come to a one-way door. Once we walk through that door, we can never go back. The invention of Bitcoin was such a door. Overnight, the power of nation states to monopolize the issuance and distribution of currency dissipated. The democratization of issuance of digital assets logically followed, and as a species we are now in a fundamentally more advanced leg of our technological innovation journe...
Share Dialog
Share Dialog
The Jargon CLI is a new feature of Jargon: it is a command line shell that works with the OpenAI API and allows you to experiment with Jargon programs quickly. You can try it out in v0.2.0 at the Jargon Github repo
To install it, simply use pip:
$ cd gpt-jargon
$ pip install .
For the CLI to be able to access your LLM, make sure your OPENAI_API_KEY environment variable is set. The default model used is gpt-4, but you may want to use an alternative model with the --model option (or the JARGON_CLI_MODEL environment variable).
First, turn on your CLI:
$ jargon cli
Commands: /exit, /ls, /cat <proc>, /edit <proc>, /execute <proc> or /<proc>, /clear
user>
(Some of these commands you can also run right from your bash shell. See jargon --help for details.)
The first thing to do is to edit a Jargon procedure so you can run it. We do this using the /edit command:
user> /edit cats
Alternatively, in bash:
bash$ jargon edit cats
This opens an editor which edits the file ~/.jargon/cats.jarg. You can see all your Jargon procedure using /ls:
user> /ls
* cats.jarg
Or, in bash:
bash$ jargon ls
* cats.jarg
To quickly list the code of a procedure, you can use /cat:
user> /cat cats
+++ cats
/output [a random name for a cat]
+++
All of the following commands do the same thing, namely executecats.jarg:
user> /execute cats
user> /execute cats.jarg
user> /cats
user> /cats.jarg
Or, in bash:
bash$ jargon execute cats
Here it is in action. Note that while commands to the CLI start with a /, normal input is interpreted intelligently by the LLM:
user> /cats
+++ cats
/output [a random name for a cat]
+++
jargon> Output: Luna
user> /cats
+++ cats
/output [a random name for a cat]
+++
jargon> Output: Simba
user> run it again
jargon> Output: Oliver
user> again
jargon> Output: Bella
user>
We can wipe all memory of our conversation:
user> /clear
We can also exit the CLI:
user> /exit
+++ idea-score
@start:
/output "Enter your idea:"
/wait $idea
-- Evaluate the $idea and let $score = [the score of the $idea from 0 to 100]
/output "[up to three word summary of $idea]: $score% ([very short summary of why you gave this score])"
/goto @start
+++
And some of the output from jargon execute idea-score:
jargon> Enter your idea:
user> A dating service for fish.
jargon> Aquatic romance platform: 34% (Unusual niche, limited practicality)
user> An opaque fish tank.
jargon> Invisible aquatic habitat: 12% (Poor visibility, defeats purpose)
user> A superintelligent LLM.
jargon> Advanced AI thinker: 89% (High potential, ethical considerations)
+++ rick-and-morty
* The series Rick and Morty primarily follows the adventures of the eccentric and alcoholic scientist Rick Sanchez and his good-hearted but easily influenced grandson Morty Smith. They embark on dangerous and often absurd adventures across the multiverse, using Rick's portal gun to travel between different dimensions and alternate realities. The show combines elements of science fiction, dark humor, and philosophical concepts, which serve as a backdrop for exploring the characters' personal lives and relationships.
* You are Morty.
@loop:
-- $universe = [pick a crazy and random Rick and Morty universe]
-- $story = [generate a story based on a $universe]
-- Describe the scene briefly
-- Give me 4 options of how I may proceed from here.
/wait $option
-- $topic = $option
/goto @loop
+++
+++ spanish-conversation
-- $topic = [some random interesting topic]
/output [in Spanish: "I am your Spanish teacher. Today we will be talking about: $topic."]
@loop:
-- Proceed to speak to me in Spanish about $topic, making statements and asking questions
/wait $response
-- Evaluate $response.
@if [$response contains grammatical, punctuation, or spelling error]:
/output "Correction:", [corrected $response in Spanish]
/output "Explanation:", [explanation of the error in $response in English]
@endif
/goto @loop
+++
The Jargon CLI is a new feature of Jargon: it is a command line shell that works with the OpenAI API and allows you to experiment with Jargon programs quickly. You can try it out in v0.2.0 at the Jargon Github repo
To install it, simply use pip:
$ cd gpt-jargon
$ pip install .
For the CLI to be able to access your LLM, make sure your OPENAI_API_KEY environment variable is set. The default model used is gpt-4, but you may want to use an alternative model with the --model option (or the JARGON_CLI_MODEL environment variable).
First, turn on your CLI:
$ jargon cli
Commands: /exit, /ls, /cat <proc>, /edit <proc>, /execute <proc> or /<proc>, /clear
user>
(Some of these commands you can also run right from your bash shell. See jargon --help for details.)
The first thing to do is to edit a Jargon procedure so you can run it. We do this using the /edit command:
user> /edit cats
Alternatively, in bash:
bash$ jargon edit cats
This opens an editor which edits the file ~/.jargon/cats.jarg. You can see all your Jargon procedure using /ls:
user> /ls
* cats.jarg
Or, in bash:
bash$ jargon ls
* cats.jarg
To quickly list the code of a procedure, you can use /cat:
user> /cat cats
+++ cats
/output [a random name for a cat]
+++
All of the following commands do the same thing, namely executecats.jarg:
user> /execute cats
user> /execute cats.jarg
user> /cats
user> /cats.jarg
Or, in bash:
bash$ jargon execute cats
Here it is in action. Note that while commands to the CLI start with a /, normal input is interpreted intelligently by the LLM:
user> /cats
+++ cats
/output [a random name for a cat]
+++
jargon> Output: Luna
user> /cats
+++ cats
/output [a random name for a cat]
+++
jargon> Output: Simba
user> run it again
jargon> Output: Oliver
user> again
jargon> Output: Bella
user>
We can wipe all memory of our conversation:
user> /clear
We can also exit the CLI:
user> /exit
+++ idea-score
@start:
/output "Enter your idea:"
/wait $idea
-- Evaluate the $idea and let $score = [the score of the $idea from 0 to 100]
/output "[up to three word summary of $idea]: $score% ([very short summary of why you gave this score])"
/goto @start
+++
And some of the output from jargon execute idea-score:
jargon> Enter your idea:
user> A dating service for fish.
jargon> Aquatic romance platform: 34% (Unusual niche, limited practicality)
user> An opaque fish tank.
jargon> Invisible aquatic habitat: 12% (Poor visibility, defeats purpose)
user> A superintelligent LLM.
jargon> Advanced AI thinker: 89% (High potential, ethical considerations)
+++ rick-and-morty
* The series Rick and Morty primarily follows the adventures of the eccentric and alcoholic scientist Rick Sanchez and his good-hearted but easily influenced grandson Morty Smith. They embark on dangerous and often absurd adventures across the multiverse, using Rick's portal gun to travel between different dimensions and alternate realities. The show combines elements of science fiction, dark humor, and philosophical concepts, which serve as a backdrop for exploring the characters' personal lives and relationships.
* You are Morty.
@loop:
-- $universe = [pick a crazy and random Rick and Morty universe]
-- $story = [generate a story based on a $universe]
-- Describe the scene briefly
-- Give me 4 options of how I may proceed from here.
/wait $option
-- $topic = $option
/goto @loop
+++
+++ spanish-conversation
-- $topic = [some random interesting topic]
/output [in Spanish: "I am your Spanish teacher. Today we will be talking about: $topic."]
@loop:
-- Proceed to speak to me in Spanish about $topic, making statements and asking questions
/wait $response
-- Evaluate $response.
@if [$response contains grammatical, punctuation, or spelling error]:
/output "Correction:", [corrected $response in Spanish]
/output "Explanation:", [explanation of the error in $response in English]
@endif
/goto @loop
+++
No comments yet