4 ms·
Hi there. Your question is valid. That's why we built Prompt Markup Language: https://github.com/narenaryan/promptml/ https://github.com/narenaryan/promptml/ h
by nyell 2y ago
Hi there. Your question is valid. That's why we built Prompt Markup Language:
https://github.com/narenaryan/promptml/ https://github.com/narenaryan/promptml/
https://www.promptml.org/ https://www.promptml.org/
It isn't XML nor JSON, but a DSL built especially for writing prompts. We do not have published benchmarks but running few examples, we see consistent outputs from LLM, and supplements RAG by separating context and using it for enriching prompt.
- KTibow 2y agoLooks you still have to make your own template to stringify the prompt that could use JSON/XML/whatever, so this is just stores variations of prompts. Doesn't seem relevant.
- nyell 2y agoIt is not just for storing variations of a prompt. It separates context to make intentions clear. Here is a XMl prompt serialized from PromptML program: https://gist.github.com/narenaryan/651d8081eaaffa846e05da7a34af47e6 https://gist.github.com/narenaryan/651d8081eaaffa846e05da7a3... You can test it with Claude and GPT-3.5 or GPT-4o, and they all will bring strikingly bring similar results with differences in detail. YAML & XML serializations are coming in v0.6.0 of PromptML.
- deleted 2y ago[deleted]
- Alifatisk 2y agoLooks like Ruby without the @