Working in the Playground

The PhariaStudio Playground is a workspace in which you can interact with the large language models (LLMs) you have access to.

You can enter prompts in two modalities: prompt-only or raw text.

This article covers the basic settings shown in the right sidebar and describes how to add custom settings for each model.


Access the Playground

To access the playground:

  1. Open PhariaStudio at https://pharia-studio.{ingressDomain}

  2. Sign in with your credentials.

  3. Select an existing project from the home page or create a new one:

    PhariaStudio - landing page
  4. Click Playground on the left sidebar:

    PhariaStudio - sidebar

Select an LLM

Select the LLM you want to work with from the dropdown list:

PhariaStudio - model selection

(The highlighted model name indicates the current selection.)

To copy the selected model name to your clipboard, hover your mouse near its name; a copy button appears. Click this to copy the model name. This is useful for entering the model name in your code.

Select the prompt input mode

Using the toggle on the bottom of the Prompt input text box, you can switch between the two modalities of prompt input:

  • Only Prompt PhariaStudio - prompt only input mode: In this mode, you focus on the pure content of the prompt, without viewing the low-level template of the model. This is suitable for single-turn interactions.

  • Raw Text String PhariaStudio - raw text string input mode: In this mode, you can change the way the prompt is sent to the model; for example, by adding a system prompt.

Each model includes its own predefined templates.

Run a prompt

  1. Enter text in the Prompt box.

  2. Click Run.

The content of the prompt box is sent to the LLM along with any modified settings set in the Model Settings sidebar. The response is displayed in the Completion box.

Adjust the model settings

The right sidebar displays some basic model settings:

  1. Maximum tokens: The maximum number of tokens allowed in the prompt.

  2. Temperature: A hyperparameter that controls the model’s learning rate.

  3. Stop sequences: A list of stop words that prevent the model from processing the prompt.

  4. Presence penalty: A hyperparameter that penalises the model for presence of words in the prompt.

  5. Frequency penalty: A hyperparameter that penalises the model for frequent words in the prompt.

  6. Raw completion: A toggle that displays the raw completion of the model, that is, the non-optimised response.

In addition to these settings, you can include additional settings that are supported for your selected model. Add and set advanced settings as follows:

  1. Click the PhariaStudio - add model setting plus icon icon next to Model settings in the right sidebar:
    The advanced settings list appears in a popup:

PhariaStudio - model settings
  1. Search and select the desired settings.

  2. Click outside the menu or press Esc to close the advanced settings popup.
    The selected model settings are included in the right sidebar.

  3. Set the required values for the new settings.

For a complete explanation of the model settings that may be available, see Model settings.

Change the output text format

By default, the Playground shows raw text output. You can render the content as Markdown by clicking Pretty at the bottom of the Completion box:

PhariaStudio - markdown vs text output

Export the prompt as code

Click </> Export Code at the top right of the Playground to display the code for the prompt:

PhariaStudio - code export box

Click Copy code to copy the code to your buffer. This can be useful to speed up your development process.