Using the Generation Models

 Important



Pre-General Availability: 2023-09-18

The following legal notice applies to Oracle pre-GA (Beta) releases. For copyright and other applicable notices, see Oracle Legal Notices.

Pre-General Availability Draft Documentation Notice

This documentation is in pre-General Availability status and is intended for demonstration and preliminary use only. It may not be specific to the hardware on which you are using the software. Oracle Corporation and its affiliates are not responsible for and expressly disclaim all warranties of any kind with respect to this documentation and will not be responsible for any loss, costs, or damages incurred due to the use of this documentation.

This documentation is not a commitment by Oracle to deliver any material, code, functionality or services. This documentation, and Oracle Pre-GA programs and services are subject to change at any time without notice and, accordingly, should not be relied upon in making purchasing decisions. The development, release, and timing of any features or functionality for Oracle’s Pre-GA programs and services remains at the sole discretion of Oracle. All release dates or other predictions of future events are subject to change. The future availability of any future Oracle program or service should not be relied on in entering into any license or service agreement with Oracle.

In the navigation bar of the Console, choose a region that hosts Generative AI, for example, US Midwest (Chicago). If you don't know which region to choose, see Regions with Generative AI.
Open the navigation menu and click Analytics & AI. Under AI Services, click Generative AI.
In the left navigation, choose a compartment that you have permission to work in. If you don't see the playground, ask an administrator to give you access to Generative AI resources and then return to the following steps.
Click Playground.
Choose a model for generating text by performing one of the following actions:
In the Model drop-down list, under Generation, choose a model such as cohere.command, cohere.command-light or any custom model that's under Generation.
Click View model details, choose a model with Text generation capability, and then click Choose model.
Either enter a prompt or select an example from the Example list to use as a base prompt or to learn from.
(Optional) Set new values for the parameters. For parameter details, see Generation Model Parameters.
(Optional) If you click Show likelihoods, after the model generates a response, you can hover the mouse over the generated words to see the tokens and their likelihood.
Click Generate.
To maintain the context of prior prompts, type the next prompt in a new line after the last output.
(Optional) Update the prompts and parameters and click Regenerate. Repeat this step until you're happy with the output.
When you're happy with the result, click View code, select a programming Language, click Copy code, and paste the code into a file and save the code. Ensure that your file maintains the format of the pasted code.
 Tip

If you're using the code in your applications, ensure that you authenticate your code.
(Optional) Click Clear to start a new prompt.
 Note

When you click Clear the model parameters reset to their default values.