Deploying the LLM Prompt Builder
This step is not required, but the LLM Prompt Builder is a tool to be able to easily test new prompts across LLMs, compare the results, version your experiments, and turn them into models for further consumption in the platform.
As first step to deploying the LLM Prompt Builder you must first deploy the SAS Portal Framework for SAS Viya. The documentation for this setup is available in the project documentation.
Now you can add the Prompt Builder UI to the portal by following these steps:
-
Create a new subfolder (the name doesn't matter, but I suggest to use
LLM Prompt Builder). -
In that subfolder upload the
llm-prompt-builder.jsonfile that the Setup SAS Model Manager chapter produced; replace any API-keys as needed. -
Select the file and in the
Detailssection underMore > URI, then copy thePathname(something like/files/files/a652a4c2-d751-4bf7-8b72-cbce058087fe. -
Paste the URI in the below template and save that template as
portal-page-layout.json:{
"general": {
"name": "Build Prompts",
"shorthand": "BPT",
"visible": true,
"numCols": 1,
"contact": "david.weik@sas.com"
},
"objects": [
{
"name": "LLM Prompt Builder",
"uri": "<llm-prompt-builderr.json URI>"
}
]
} -
Upload the file to the same folder.
You are now set up.