Connect Cohere to Your AI Agent

Use your source text to produce a grounded answer or a relevance shortlist.

3 tools API key

Try a Cohere Task

Copy a prompt into your agent with the oo Skill installed. Add your page links and source notes before running it.

oo Skill Cohere

Answer from supplied documents

Use source documents as context for a focused question.

/oo Cohere: Use Cohere model [model ID] to answer [question] with documents [documents]. Ask for citations where supported and explain unanswered points. Keep source-based statements distinguishable from general explanation.

Rank relevant document candidates

Find the most relevant candidates within a supplied document set.

/oo Cohere: Use Cohere rerank model [model ID] for query [query] and candidate documents [documents], returning the top [N]. Map result indices back to the original document titles and show relevance scores as relative ranking signals, not truth or probability measures.

Start Working with Cohere

  1. Install OOMOL

    Set up oo CLI and the oo Skill in your agent.

    Install OOMOL →
  2. Connect Cohere

    Connect with a Cohere API key.

    Connect Cohere →
  3. Give Your Agent a Task

    Use /oo with the pages to read, the changes to make, and where to save the result.

    Connection Guide →

Choose Your Agent

  • Provide a compatible model ID, question and source text for the chosen task.
  • Chat responses are non-streaming. Embeddings accept text inputs in this connection.

Cohere Tools

Generate chat responses with supplied documents, rerank document candidates for a query, and create text embeddings through Cohere. These operations work with the material you provide; they do not create a searchable knowledge base on their own.

Answers and relevance

Generate document-aware answers and rerank supplied candidates.

Text embeddings

Create vectors for supplied text with the appropriate input type.

3 tools

Chat

Generate a synchronous text response using the Cohere Chat API.

cohere.chat

Embed Texts

Generate embeddings for text inputs using the Cohere Embed API.

cohere.embed_texts

Rerank Documents

Rank text documents by relevance to a query using the Cohere Rerank API.

cohere.rerank_documents

Frequently Asked Questions

What documents should I provide for an answer?

Provide relevant text and identifying titles or IDs. A focused document set makes it easier to connect statements to their sources.

How should I use reranking results?

Use the indices and relevance scores to prioritize review of the supplied candidates. Reranking does not verify factual accuracy or search outside that set.

Can I create embeddings for search?

Yes, supply a compatible model, texts and input type appropriate to documents or queries. Store and search those vectors through a separate retrieval system.

Connect Cohere

About Cohere ↗