• Stars
    star
    472
  • Rank 93,034 (Top 2 %)
  • Language
    Jupyter Notebook
  • License
    MIT License
  • Created about 3 years ago
  • Updated 28 days ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Code examples and jupyter notebooks for the Cohere Platform

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

More Repositories

1

cohere-toolkit

Cohere Toolkit is a collection of prebuilt components enabling users to quickly build and deploy RAG applications.
TypeScript
2,814
star
2

cohere-python

Python Library for Accessing the Cohere API
Python
294
star
3

sandbox-topically

Topic modeling helpers using managed language models from Cohere. Name text clusters using large GPT models.
Jupyter Notebook
214
star
4

DiskVectorIndex

Python
202
star
5

BinaryVectorDB

Efficient vector database for hundred millions of embeddings.
Python
198
star
6

sandbox-conversant-lib

Conversational AI tooling & personas built on Cohere's LLMs
Python
173
star
7

cohere-terrarium

A simple Python sandbox for helpful LLM data agents
Python
153
star
8

quick-start-connectors

This open-source repository offers reference code for integrating workplace datastores with Cohere's LLMs, enabling developers and businesses to perform seamless retrieval-augmented generation (RAG) on their own data.
Python
140
star
9

sandbox-grounded-qa

A sandbox repo for grounded question answering with Cohere and Google Search
Python
135
star
10

magikarp

Python
125
star
11

cohere-typescript

The Cohere TypeScript SDK
TypeScript
124
star
12

sandbox-toy-semantic-search

A demonstration of how a toy (but usable!) semantic search engine can be quickly built using Cohere's platform.
Python
114
star
13

sandbox-multilingual

A demonstration of a multilingual semantic search engine you can be quickly built using Cohere's platform.
Python
59
star
14

cohere-aws

Jupyter Notebook
57
star
15

sandbox-accelerating-chatbot-training

Leveraging Cohere's models to enable zero-shot routing
Python
53
star
16

cohere-go

Go Library for Accessing the Cohere API
Go
45
star
17

samples

Sample integrations built by Cohere.
JavaScript
25
star
18

examples

Examples and Demos using the Cohere APIs
Jupyter Notebook
23
star
19

sandbox-condense

Webpage Summarizer
JavaScript
20
star
20

human-feedback-paper

Code and data from the paper 'Human Feedback is not Gold Standard'
Jupyter Notebook
18
star
21

public-demos

Public demos using the Cohere platform!
TypeScript
11
star
22

tokenizer

BPE tokenization implemented in Golang ๐Ÿ’™
Go
10
star
23

cohere-java

Cohere's Java SDK
Java
7
star
24

cohere-developer-experience

Docs, Snippets, Guides
MDX
5
star
25

co

Cohere command line tool
Shell
3
star
26

cohere-compass-sdk

Provides an SDK for interacting with Compass, and Compass Parsing
Python
2
star
27

co-cli

Shell
1
star
28

cohere-ruby

Ruby
1
star