Introducing Command R+: Our new, most powerful model in the Command R family.

Learn More

summarize

Instantly encapsulate the key points of a document

Powered by our large language models, Summarize provides text summarization capabilities at scale.

Code sample that runs the Cohere API summarize endpoint with only a few lines
Using Cohere to summarize a web article

What's possible with Summarize

Featured image for article

News articles

Build apps that extract and summarize insights from news articles across multiple industries, so your users can focus on higher level tasks.
Featured image for article

Summarization Docs

Take a deep dive into how summarization works and how to use the API.

Simple APIs, powerful results

No matter your level of experience with ML/AI, the Cohere Platform makes it easy to summarize text in your applications.

1import cohere 
2co = cohere.Client('{apiKey}')
3response = co.summarize( 
4  text='It\'s an exciting day for the development community. Cohere\'s state-of-the-art language AI is now available through Amazon SageMaker. This makes it easier for developers to deploy Cohere\'s pre-trained generation language model to Amazon SageMaker, an end-to-end machine learning (ML) service. Developers, data scientists, and business analysts use Amazon SageMaker to build, train, and deploy ML models quickly and easily using its fully managed infrastructure, tools, and workflows.\n\nAt Cohere, the focus is on language. The company\'s mission is to enable developers and businesses to add language AI to their technology stack and build game-changing applications with it. Cohere helps developers and businesses automate a wide range of tasks, such as copywriting, named entity recognition, paraphrasing, text summarization, and classification. The company builds and continually improves its general-purpose large language models (LLMs), making them accessible via a simple-to-use platform. Companies can use the models out of the box or tailor them to their particular needs using their own custom data.\n\nDevelopers using SageMaker will have access to Cohere\'s Medium generation language model. The Medium generation model excels at tasks that require fast responses, such as question answering, copywriting, or paraphrasing. The Medium model is deployed in containers that enable low-latency inference on a diverse set of hardware accelerators available on AWS, providing different cost and performance advantages for SageMaker customers.\n\n\"Amazon SageMaker provides the broadest and most comprehensive set of services that eliminate heavy lifting from each step of the machine learning process,\" said Rajneesh Singh, General Manager AI/ML at Amazon Web Services. \"We\'re excited to offer Cohere\'s general purpose large language model with Amazon SageMaker. Our joint customers can now leverage the broad range of Amazon SageMaker services and integrate Cohere\'s model with their applications for accelerated time-to-value and faster innovation.\"\n\"As Cohere continues to push the boundaries of language AI, we are excited to join forces with Amazon SageMaker,\" said Saurabh Baji, Senior Vice President of Engineering at Cohere. \"This partnership will allow us to bring our advanced technology and innovative approach to an even wider audience, empowering developers and organizations around the world to harness the power of language AI and stay ahead of the curve in an increasingly competitive market.\"\n\nThe Cohere Medium generation language model available through SageMaker, provide developers with three key benefits:\n\nBuild, iterate, and deploy quickly – Cohere empowers any developer (no NLP, ML, or AI expertise required) to quickly get access to a pre-trained, state-of-the-art generation model that understands context and semantics at unprecedented levels. This high-quality, large language model reduces the time-to-value for customers by providing an out-of-the-box solution for a wide range of language understanding tasks.\nPrivate and secure – With SageMaker, customers can spin up containers serving Cohere\'s models without having to worry about their data leaving these self-managed containers.\nSpeed and accuracy – Cohere\'s Medium model offers customers a good balance across quality, cost, and latency. Developers can easily integrate the Cohere Generate endpoint into apps using a simple API and SDK.\nGet started with Cohere in SageMaker\nDevelopers can use the visual interface of the Amazon SageMaker JumpStart foundation models to test Cohere\'s models without writing a single line of code. You can evaluate the model on your specific language understanding task and learn the basics of using generative language models. See Cohere\'s documentation and blog for various tutorials and tips-and-tricks related to language modeling.\n\n\nDeploy the SageMaker endpoint using a notebook\nCohere has packaged Medium models, along with an optimized, low-latency inference framework, in containers that can be deployed as SageMaker inference endpoints. Cohere\'s containers can be deployed on a range of different instances (including ml.p3.2xlarge, ml.g5.xlarge, and ml.g5.2xlarge) that offer different cost/performance trade-offs. These containers are currently available in two Regions: us-east-1 and eu-west-1. Cohere intends to expand its offering in the near future, including adding to the number and size of models available, the set of supported tasks (such as the endpoints built on top of these models), the supported instances, and the available Regions.\n\nTo help developers get started quickly, Cohere has provided Jupyter notebooks that make it easy to deploy these containers and run inference on the deployed endpoints. With the preconfigured set of constants in the notebook, deploying the endpoint can be easily done with only a couple of lines of code as shown in the following example:\n\n\nAfter the endpoint is deployed, users can use Cohere\'s SDK to run inference. The SDK can be installed easily from PyPI as follows:\n\n\nIt can also be installed from the source code in Cohere\'s public SDK GitHub repository.\n\nAfter the endpoint is deployed, users can use the Cohere Generate endpoint to accomplish multiple generative tasks, such as text summarization, long-form content generation, entity extraction, or copywriting. The Jupyter notebook and GitHub repository include examples demonstrating some of these use cases.\n\n\nConclusion\nThe availability of Cohere natively on SageMaker via the AWS Marketplace represents a major milestone in the field of NLP. The Cohere model\'s ability to generate high-quality, coherent text makes it a valuable tool for anyone working with text data.\n\nIf you\'re interested in using Cohere for your own SageMaker projects, you can now access it on SageMaker JumpStart. Additionally, you can reference Cohere\'s GitHub notebook for instructions on deploying the model and accessing it from the Cohere Generate endpoint.\n',
5  length='medium',
6  format='paragraph',
7  model='summarize-xlarge',
8  additional_command='',
9  temperature=0.3,
10) 
11print('Summary:', response.summary)
1{
2   "id":"50d22d5c-fafe-4b85-bad1-d6a4934e9c45",
3   "summary":"Cohere, the Canadian company that uses AI to generate 
4   language, 
5   has made its latest generation language model available on Amazon 
6   SageMaker.
7   The Cohere Medium generation language model can be used to quickly 
8   understand the context and semantics of language, 
9   and is aimed at speeding up the time-to-value for customers. 
10   According to Rajneesh Singh, GM AI/ML at Amazon Web Services, 
11   \"Our joint customers can now leverage the broad range of Amazon
12   SageMaker services and integrate Cohere's model with their applications for
13   accelerated time-to-value and faster innovation."
14   }
15}

Why Summarize

1

Accurate summaries in seconds

Get high-quality summaries that accurately capture the most important information from your documents.

2

Informed, well-written summaries

Generate precise and coherent summaries that are well-written, informed, and grammatically correct.


3

Summarize your way

Input up to 100,000 characters, choose your preferred formatting options, and receive concise TLDRs.


See how Cohere works. Try our playground.

Background image for aesthetic purposes

Get started with Cohere today!

Reach out to us and let’s discuss your text summarization needs.