Wolfram Language Paclet Repository
Community-contributed installable additions to the Wolfram Language
DSL examples suitable for LLM few-shot training
Contributed by: Anton Antonov
Domain Specific Language (DSL) examples of translations of natural language commands into code for different programming languages and packages.
To install this paclet in your Wolfram Language environment,
evaluate this code:
PacletInstall["AntonAntonov/DSLExamples"]
To load the code after installation, evaluate this code:
Needs["AntonAntonov`DSLExamples`"]
Show a few of the examples for the Latent Semantic Analysis (LSA) software monad written in Wolfram Language (WL):
| In[1]:= |
| Out[1]= | ![]() |
Here is a function that makes a few-shot training LLM function for given programming language and workflow name:
| In[2]:= |
Here is a list of natural language commands specifying an LSA workflow:
| In[3]:= | ![]() |
Translate those commands -- line by line -- into of a monadic pipeline for the paclet "AntonAntonov/MonadicLatentSemanticAnalysis":
| In[4]:= | ![]() |
| Out[4]= | ![]() |
Instead of translating the commands line-by-line do an en bloc translation:
| In[5]:= |
| Out[5]= | ![]() |
Show the programming languages and software packages that have DSL examples:
| In[6]:= |
| Out[6]= | ![]() |
Here are retrieved all of the R-language DSL examples:
| In[7]:= |
| Out[7]= | ![]() |
Here are retrieved the examples for the "SMRMon" workflow in all programming languages:
| In[8]:= |
| Out[8]= | ![]() |
Show all DSL examples as a dataset:
| In[9]:= |
| Out[9]= | ![]() |