How to Configure Agent Model Settings Using the Model Playgroundpublic
Validated on 9 Oct 2024 • Last edited on 8 May 2025
DigitalOcean GenAI Platform lets you build GPU-powered AI agents with fully-managed deployment. Agents can use pre-built or custom foundation models, incorporate function and agent routes, and implement RAG pipelines with knowledge bases.
After setting up your agent, you can adjust the agent’s foundation model settings and instructions to optimize its performance. You can safely experiment with different settings and features using the agent’s Playground tab and then apply the new settings to the agent.
Configure Model Settings
To configure model settings from the DigitalOcean Control Panel, on the left-hand menu, click GenAI Platform, then under the Agents tab, click the agent you want to configure. From the agent’s Overview tab, click the Playground tab.
In the Instructions field, you can update the agent’s instructions. The agent’s instructions informs the agent about its purpose and the types of information it should and shouldn’t retrieve. You define an agent’s instructions during creation, but you can change them at any time. See our instruction-writing best practices to learn how to write effective instructions.
In the Settings tab, you can configure the following settings:
-
Max Tokens: Defines the maximum output tokens a model processes. For model-specific details, see the models page.
-
Temperature: Controls the model’s creativity, specified as a number between 0 and 1. Lower values produce more predictable and conservative responses, while higher values encourage creativity and variation. Values are rounded to the nearest hundredth. For example, if you enter a value of
0.255
, the value is rounded to0.26
. -
Top P: Defines the cumulative probability threshold for word selection, specified as a number between 0 and 1. Higher values allow for more diverse outputs, while lower values ensure focused and coherent responses. Values are rounded to the nearest hundredth. For example, if you enter a value of
0.255
, the value is rounded to0.26
.Note You can change either Temperature or Top P, or both to change the model’s creativity. -
K-Value: Controls the number of tokens to consider when selecting the next word. Higher values increase the number of tokens considered, allowing for more diverse and creative responses.
-
Retrieval Method: These options provide agents with additional guidance for retrieving information and generating responses.
- Rewrite: The agent uses the current input and the prior context of the conversation to refine the user’s input and remove any ambiguity. The agent uses this to generate a shorter and more precise response. This method uses fewer tokens.
- Step Back: The agent uses the current input and the prior context of the conversation to generate responses with a slightly broader scope than the original input, but the response remains focused on the overall topic. This method uses more tokens.
- Sub Queries: The agent uses the current input and the prior context of the conversation to generate two to four succinct versions of the original input. It then uses the original input plus the new versions to broaden and improve search effectiveness and generate a response. This method uses more tokens than the rewrite and step-back methods.
- None: The agent uses only the current input to retrieve information and doesn’t use any prior context. This method uses fewer tokens.
-
Include citations: Checking this box adds a Message Info link at the end of each response sent in the agent playground. The Message Info link provides the token usage and the knowledge base data used to generate the response.
Adjust and evaluate the agent’s responses as necessary. Once you are satisfied that the model responses meet your criteria, click Update Settings. The agent redeploys with the new settings.