Playground Overview

What is the Playground?

The Cohere Playground is a visual interface for users to test Cohere large language models without writing a single line of code. To familiarize yourself with our endpoints, we recommend clicking the Generate or Calculate button on each endpoint page and observing the outputs. Use the Playground to test your use cases and when you're ready to start building, simply click Export Code to add Cohere's functionality to your application.

Using the Playground

Generate

Generate produces natural language text in response to an input prompt. As seen in the screenshot below, we supplied the model with a prompt, "Given a product and keywords, this program will generate exciting product descriptions. Here are some examples:" and gave two examples of a product and keywords. The bolded text was generated by the model.

  • To write inputs that produce the best results for your use case, read our Prompt Engineering guide.
  • Try tinkering with different temperature and token-picking settings to alter the model's output behavior.
  • To further improve your generations or to get the model to focus on generating text about a specific topic, try uploading a sample text to train the model. If you're interested in training a model, please submit a Full Access request from your Cohere Dashboard.

Try asking the model to do any of the following:

  • Summarize a paragraph of text
  • Generate SEO tags for a blog post
  • Produce some questions for your next trivia night
  • Provide ideas of what to do in your city this weekend

In each case, give the model a few examples your desired output.

Additionally, note the Show Likelihood button within Advanced Parameters. This feature outputs the likelihood that each token would be generated by the model in the given sequence, as well as the average log-likelihood of each token in the input. Token likelihoods can be retrieved from our Generate endpoint.

The log-likelihood is useful for evaluating model performance, especially when testing user-trained models. If you're interested in training a model, please submit a Full Access request from your Cohere Dashboard.

Embed

Using Embed in the Playground enables users to assign numerical representations to strings and visualize comparative meaning on a 2-dimensional plane. Phrases similar in meaning should ideally be closer together on this visualization. Add a couple of your own phrases and see if the Playground visualization feels accurate to you.

Cohere embeddings can be used to train a semantic classifier out of the box, saving users countless hours gathering data to train a model themselves.

Classify

The Cohere Classify endpoint enables users to create a classifier from a few labeled examples.

Selecting the Right Model Size

Larger models are more capable of complex tasks but smaller models have faster response times and are less expensive. Here is a rough guideline for which model size to use for various tasks:

Command R+ and Command R models

command-R+
Command R+ is Cohere's newest large language model, optimized for conversational interaction and long-context tasks. It aims at being extremely performant, enabling companies to move beyond proof of concept and into production. We recommend using Command R+ for those workflows that lean on complex RAG functionality and multi-step tool use (agents).

command R

Command R is a large language model optimized for conversational interaction and long context tasks. It targets the “scalable” category of models that balance high performance with strong accuracy, enabling companies to move beyond proof of concept and into production. Command R boasts high precision on retrieval augmented generation (RAG) and tool use tasks, low latency and high throughput, a long 128,000-token context length, and strong capabilities across 10 key languages.

Representation models

embed-english-v3.0
A model that allows for text to be classified or turned into embeddings. English only. The embeddings have 1024 dimensions and 512 context length.

embed-english-light-v2.0
A smaller, faster version of embed-english-v3.0. Almost as capable, but a lot faster. English only. The embeddings have 384 dimensions and 512 context length.

embed-multilingual-v3.0

Provides multilingual classification and embedding support. See supported languages here. The embeddings have 1024 dimensions and 512 context length.

embed-multilingual-v3.0

A smaller, faster version of embed-multilingual-v3.0. Almost as capable, but a lot faster. Supports multiple languages.The embeddings have 384 dimensions and support 512 context length.