Skip to content

Code examples and jupyter notebooks for the Cohere Platform

Notifications You must be signed in to change notification settings

ishaan-jaff/notebooks

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 

Repository files navigation

Get started with Cohere!

This repo contains code examples and jupyter notebooks for you to get started with the Cohere Platform

1. Text Classification Using Embeddings

Create a simple sentiment classifier using Cohere's embeddings: [Notebook | Colab] first we embed the text in the dataset, then we use that to train a classifier

2. Text Summarization

Summarize or paraphrase text using Cohere's Generate endpoint. [Notebook | Colab]

provided with the right prompt, a language model can generate multiple candidate summaries

3. Semantic Search

Build search products that search by meaning and go beyond keyword matching. [Notebook | Colab]

Use query and archive embeddings to retrieve relevant search results

4. Entity Extraction

Extract name entities from text using only a few examples. [Notebook | Colab]

Extract name entities from text using only a few examples

5. Recommender System

Recommend articles with via text embedding, classification, and extraction. [Notebook | Colab]

Article recommender with Embed, Classify, and Generate

6. Visualizing Text Embeddings

Intuition behind text embeddings, what use cases they are good for, and how they can be customized using finetuning. [Notebook | Colab]

Visualizing Text Embeddings

7. Clustering Hacker News Posts

Combing for insight in 10,000 Hacker News posts with text clustering [Notebook | Colab]

Clustering Hacker News Posts

8. Hello World! Meet Language AI

A quick tour of what’s possible with language AI via Cohere’s Large Language Model (LLM) API [Notebook | Colab]

Hello World! Meet Language AI

9. Topic Modeling of AI Papers in 2022

Semantic search and clustering of papers in Journal of Artificial Intelligence Research [Notebook | Colab]

Hello World! Meet Language AI

10. Three Ways to Build a Text Classifier with the Cohere API

Helping you evaluate which of these options best suits your objectives [Notebook | Colab]

Hello World! Meet Language AI

11. Generating Stories with Generate and Stable Diffusion

Describe your story in two sentences, then guide Cohere's language model as it turns it into a bigger story.

[Notebook | Colab | Colab - v2]

Story Generation with Generate and Stable Diffusion

12. Working with the Generate Endpoint

Explore the Generate endpoint, one of the endpoints available from the Cohere API. [Notebook | Colab]

Working with the Generate Endpoint

13. Evaluating Custom Models

Create a custom Generate model and evaluate the generation quality. [Notebook | Colab]

Evaluating Custom Models

14. Multilingual Semantic Search with Cohere and Langchain

Use Langchain to efficiently build semantic search applications on top of Cohere’s multilingual model. [Notebook | Colab]

Multilingual Semantic Search with Cohere and Langchain

15. Fueling Generative Content with Keyword Research

Build a content idea generator that is backed by keyword research. [Notebook | Colab]

Fueling Generative Content with Keyword Research

16. Command Model Use Case Patterns

Understand the range of use cases that you can build with the Cohere Command model. [Notebook | Colab]

Command Model Use Case Patterns

17. Constructing Prompts for the Command Model

Tips and ideas for constructing prompts for the Command Model [Notebook | Colab]

Constructing Prompts for the Command Model

About

Code examples and jupyter notebooks for the Cohere Platform

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Jupyter Notebook 100.0%