metaprompt
1.0.0
Metaprompt는 LLM 프롬프트 엔지니어링을위한 도메인 별 언어입니다. 표현식 확장이 LLM 출력에 의존 할 수있는 텍스트 프롬프트 용 템플릿 엔진입니다.
목표는 프로그래밍 가능성, 재사용 성 및 메타 홍보 능력으로 매개 된 프롬프트의 일반적인 기술을 확장하는 것입니다.
The text you are reading right now is a valid metaprompt program.
[# this is a comment that is ignored by the interpreter, that can be
used to add some info for the human-developer]
[# This whole text is a parametrized prompt, one of the parameters
being [:subject]]
[# [:subject] here is a variable reference. Variables can be defined
in-place, or passed from the external environment]
Give me a detailed poetic description of [:subject], using one or more
of the following metaphoric expressions:
[# Now I want to specialize my prompt depending on the value of
[:subject]. The output of the prompt below will be included *instead*
of the [$ ... block]: ]
[$ Write me a bullet list of metaphors for [:subject]. Do not produce
any other output]
[# Conditionals allow for logic branching: ]
[:if [:subject] is a human
:then
Use jokingly exaggerated style
:else
Include some references to [$ List some people who have any
relation to [:subject], comma-separated]
]
examples/ 자세한 내용을 참조하십시오.
이것은 초기의 진행중인 작업입니다. 업데이트를 위해 트위터에서 나를 팔로우하십시오
[:variable] 및 [:variable=some value] [:if ... :then ... :else ...]true 또는 false 인 경우 단락 [$ meta-prompt]$ 출력을 무시하기위한 구문 - 지금 [:_=...] Works ( _ 변수에 할당) [:use module :param1=value1][# comments][:STUATUS=some-status] - 신속한 평가 중에 표시합니다 [@foreign_function arg1 :with arg2 :param1=foo :param2=bar]MODEL 변수를 통해 - 예제) [chat1$ the object is the moon][chat1$ what is the object?] (예) ROLE 변수 (예)를 통한 메시지 역할 시스템 (시스템, 사용자) [:use @ffi-function :param1=foo :param2=bar] [:use ...]