Vakya DSL Prompt Tester

Output:

Vakya DSL Guide

Vakya DSL is an attempt to make prompting easy and uniform. The Vakya interpreter transforms your queries into full-fledged prompts for you.

  • @do <action>
    @do research
    What do you want to do? (research, generate, write a report, etc.)
    This is the only required tag to create a prompt.
  • @on <context or topic> @given or given operator(->) {<priority>Additonal context}
    @on best phones @given {! context 1} -> {context 4} Can be used interchangebaly and can be chained together.
  • @src(<priority><source name>, <src-macro>)
    @src(!Reddit, Yahoo, Google?, #social)
    ! = Must (P1), no symbol = Should (P2), ? = Could (P3). Source macros like news, social, retail work as expected. It is recommended to use the priority specifier as prefixes, but they also work as postfixes.
  • @cdn {<priority><condition>}
    @cdn { ! price > Rs. 4000, bazeless glass
    camera !<= 40 MP }

    Multiple operators and multiline conditions are allowed. Conditions without operators are also allowed.
  • @fmt #<type>(<priority><attr>:<alias/type>)
    @fmt #table(!name, price:dollars, ?camera)
    Supported types: table, paragraphs, mind maps, knowledge web (others allowed).
  • @given / given operator (->){<priority><key>:<value>}
    @prop{!#asc:price, #dsc:camera, ? #grp:company, ! limit:5}
    asc: ascending, dsc: descending, grp: grouping, limit (custom key): result limit.
  • @meta{<priority><key>:<value>}
    @meta{? tone:mellow}
    Any extra metadata for the results.
  • @meta can appear at root level as well.
  • @strict
    If you want absolutely nothing but the format you mentioned, use @strict.