Skip to content

Latest commit

 

History

History
90 lines (61 loc) · 3.67 KB

cohere.md

File metadata and controls

90 lines (61 loc) · 3.67 KB

Cohere

Trial Keys Available: Cohere is an AI company specializing in large language models (LLMs) designed for enterprise use. They offer a platform that allows developers to leverage pre-built models or create custom models tailored to specific business needs. Cohere's technology empowers businesses to integrate natural language processing capabilities into their applications, streamlining tasks such as text generation, analysis, and understanding. Their focus on enterprise solutions sets them apart, providing secure and customizable AI tools to improve efficiency and productivity across various industries.

Interface Name

  • cohere

Example Usage

const { LLMInterface } = require('llm-interface');

LLMInterface.setApiKey({'cohere': process.env.COHERE_API_KEY});

async function main() {
  try {
    const response = await LLMInterface.sendMessage('cohere', 'Explain the importance of low latency LLMs.');
    console.log(response.results);
  } catch (error) {
    console.error(error);
    throw error;
  }
}

main();

Model Aliases

The following model aliases are provided for this provider.

  • default: command-r
  • large: command-r-plus
  • small: command-light
  • agent: command-r-plus

Embeddings Model Aliases

  • default: embed-english-v3.0
  • large: embed-english-v3.0
  • small: embed-english-light-v3.0

Options

The following parameters can be passed through options.

  • chat_history: Details not available, please refer to the LLM provider documentation.
  • connectors: Details not available, please refer to the LLM provider documentation.
  • conversation_id: Details not available, please refer to the LLM provider documentation.
  • documents: Details not available, please refer to the LLM provider documentation.
  • force_single_step: Details not available, please refer to the LLM provider documentation.
  • frequency_penalty: Details not available, please refer to the LLM provider documentation.
  • k: Details not available, please refer to the LLM provider documentation.
  • max_input_tokens: Details not available, please refer to the LLM provider documentation.
  • max_tokens: Details not available, please refer to the LLM provider documentation.
  • p: Details not available, please refer to the LLM provider documentation.
  • preamble: Details not available, please refer to the LLM provider documentation.
  • presence_penalty: Details not available, please refer to the LLM provider documentation.
  • prompt_truncation: Details not available, please refer to the LLM provider documentation.
  • seed: Details not available, please refer to the LLM provider documentation.
  • stop_sequences: Details not available, please refer to the LLM provider documentation.
  • stream: Details not available, please refer to the LLM provider documentation.
  • temperature: Details not available, please refer to the LLM provider documentation.
  • tool_results: Details not available, please refer to the LLM provider documentation.
  • tools: Details not available, please refer to the LLM provider documentation.

Features

  • Streaming
  • Tools
  • Embeddings

Getting an API Key

The Cohere API offers trial keys with rate limits. These keys are not intended for commercial use.

To get an API key, first create a Cohere account, then visit the link below.

Cohere documentation is available here.