Awesome
Lingo
TL;DR:
Lingo is a pseudo language that boosts language model capabilities with its expressive syntax, extensible framework, and improved output quality, facilitating seamless AI collaboration and efficient workflows in various use cases.
Lingo is a powerful pseudo language designed to enhance the capabilities of Large Language Models (LLMs) like GPT-3 and GPT-4, providing a versatile syntax that enables users to define expectations and constraints for more accurate and contextually relevant outputs. Featuring an extensible syntax, Lingo adapts to a wide range of tasks and use cases, offering expressive syntax, an adaptable framework, and improved output quality. By harnessing Lingo's power, users can effectively guide LLMs towards better-aligned outputs, making Lingo a valuable and relevant tool for working with LLMs.
Key features
🚀 Expressive syntax: Lingo's user-friendly syntax makes it easy for users to define their requirements and for LLMs to interpret them accurately.
🌐 Extensible and adaptable framework: Lingo's syntax can be easily extended to incorporate new values and functions, making it versatile and ready to adapt to evolving LLM technology and user needs.
🎯 Improved output quality: By providing LLMs with clear expectations and guidance, Lingo helps generate more relevant and accurate outputs, streamlining the process.
🤝 AI collaboration: Designed for seamless AI-assisted software development, Lingo fosters collaboration between humans and AI, creating a more efficient workflow.
⚡ Future-proof: Lingo's adaptability ensures it remains a valuable and relevant tool for working with LLMs, both now and in the future.
Try it yourself:
city: {
name: "string",
population: "int"
poi: "string[] *<=3"
}
random(<=3{{city}}):json
Syntax
Lingo, a flexible pseudo language, allows anyone to easily adapt and modify it at any time, encouraging creativity and meeting various needs for a wide audience.
Values
-
{{key}}
: This is a placeholder for a variable or input value that will be replaced with actual content when used. -
~{{key}}
: The tilde (~) symbol is used to indicate an approximate value or range for the specified key. In this context, it means that the generated content should have a length close to the value ofkey
. -
+{{key}}
: The plus (+) symbol is used to append or concatenate the value ofkey
with another element. In this context, it means adding the specified property or attribute to the generated content. -
={{key}}
: The equals (=) symbol is used to indicate that the generated content should have an exact match or value equal tokey
. -
!{{key}}
: The exclamation (!) symbol is used to negate or exclude the value ofkey
from the generated content. In this context, it means that the specified property or attribute should not be present in the output. -
-{{key}}
: The minus (-) symbol is used to remove or subtract the value ofkey
from the generated content. In this context, it means excluding the specified property or attribute from the output. -
*{{key}}
: The asterisk (*) symbol can be used to indicate that the generated content should repeat the specified property or attributekey
times. -
>{{key}}
: The greater than (>) symbol can be used to indicate that the generated content should have a length greater than the value ofkey
. -
<{{key}}
: The less than (<) symbol can be used to indicate that the generated content should have a length less than the value ofkey
. -
<={{key}}
: The less than or equal to (<=) symbol is used to indicate that the generated content should have a length less than or equal to the value ofkey
. -
>={{key}}
: The greater than or equal to (>=) symbol is used to indicate that the generated content should have a length greater than or equal to the value ofkey
. -
?{{key1}}:{{key2}}
: This syntax can be used for conditional expressions, where if the condition specified bykey1
is met, the generated content will includekey2
.
Keywords
-
ANY
: This keyword can be used to indicate that any of the specified conditions or constraints can be met in the generated content, not necessarily all of them. -
ALWAYS
: This keyword can be used to indicate that a specific condition or constraint should always be met in the generated content. -
NEVER
: This keyword indicates that a specific condition or constraint should never be met in the generated content. -
WITH
: This keyword is used to specify that the generated content should include certain properties or attributes. -
AND
: This keyword is used to combine multiple conditions or constraints in the generated content. -
ONLY
: This keyword is used to indicate that the generated content should exclusively meet certain conditions or constraints. -
NOT
: This keyword is used to negate a condition or constraint, meaning that the specified property or attribute should not be present in the output. -
UNIQUE
: This keyword is used to indicate that the generated content should be original and not duplicate any existing content.
Functions
-
between({{key1}}, {{key2}})
: This syntax can be used to specify a range for a certain attribute or property, indicating that the generated content should have a value betweenkey1
andkey2
. -
random({{key1}}, {{key2}}, ...)
: This syntax can be used to specify that the generated content should include one of the provided keys at random. -
mixed({{key1}}, {{key2}}, ...)
: This syntax can be used to specify that the generated content should include a combination of the provided keys. -
contains({{key}})
: This syntax can be used to indicate that the generated content must contain the specified key. -
optimize({{key}})
: This syntax can be used to suggest that the generated content should optimize for a certain aspect, such as readability or keyword density, represented by the key. -
limit({{key}}, {{value}})
: This syntax can be used to set a limit on the number of times the specified key can appear in the generated content.
Function Arguments
-
fn(-{{key}})
: This syntax represents a functionfn
that takes the value ofkey
as an input and removes or subtracts it from the generated content. -
fn(*{{key}})
: This syntax represents a functionfn
that takes the value ofkey
as an input and repeats a specific property or attributekey
times. -
fn(?{{key1}}:{{key2}})
: This syntax represents a functionfn
that takes the values ofkey1
andkey2
as inputs and includeskey2
in the generated content if the condition specified bykey1
is met. -
fn(+{{key}})
: This syntax represents a functionfn
that takes the value ofkey
as an input and appends or concatenates it with another element. -
fn(~{{key}})
: This syntax represents a functionfn
that takes the value ofkey
as an input and generates content with a length close to the value ofkey
. -
fn(between({{key1}}, {{key2}}))
: This syntax represents a functionfn
that takes the values ofkey1
andkey2
as inputs and generates content with a value betweenkey1
andkey2
-
fn(random({{key1}}, {{key2}}, ...))
: This syntax represents a functionfn
that takes multiple keys as inputs and generates content with one of the provided keys at random. -
fn(optimize({{key}}))
: This syntax represents a functionfn
that takes the value ofkey
as an input and generates content optimized for the specified aspect.
Typing values
-
"boolean"
: A value of the boolean data type, which can be eithertrue
orfalse
. -
"string"
: A value of the string data type, which can consist of any combination of characters. -
"number"
: A value of the number data type, which can be any numerical value, including integers and floating-point numbers. -
"int"
: A value of the integer data type, which can be any whole number, including positive, negative, and zero values. -
"float"
: A value of the floating-point data type, which can be any real number, including integers, decimal values, and values in scientific notation. -
"one word"
: A value that should be a single word. -
"concise string"
: A value that should be a short and clear string. -
"detailed string"
: A value that should be a more detailed and descriptive string. -
"very detailed string"
: A value that should be even more detailed and comprehensive. -
"very detailed elaborative string"
: A value that should be extremely detailed and provide an elaborate explanation. -
"1-5"
: A value that should be within the range of 1 to 5, inclusive. -
10
: An exact value of 10. -
["string"]
: An array of strings. -
"string[] *~10"
: An array of strings with an approximate length of 10 elements. -
"string[] *3"
: An array of strings with an exact length of 3 elements. -
"string[] *>=2"
: An array of strings with a length greater than or equal to 2 elements. -
"markdown<code:typescript>"
: A value that should be a Markdown-formatted string containing TypeScript code. -
"markdown<code:json>"
: Avalue that should be a Markdown-formatted string containing JSON code. -
"format<json>"
: A value that should be formatted as a JSON string.