Skip to content

Code examples and jupyter notebooks for the Cohere Platform

Notifications You must be signed in to change notification settings

vasnt/notebooks

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

91 Commits
 
 
 
 
 
 

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]

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%