ItamarRocha / notebooks

Code examples and jupyter notebooks for the Cohere Platform

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

18. Validating Large Language Model Outputs

We look at what output validation is and how to implement it using Guardrails AI. [Notebook | Colab]

Validating Large Language Model Outputs

19. Question Answering Via SageMaker JumpStart

Question Answering using LangChain and Cohere's Generate and Embedding Models from SageMaker JumpStart [Notebook | Colab]

20. How to Build a Chatbot with the Chat Endpoint

Learn how to build a chatbot using Cohere’s Chat endpoint. [Notebook | Colab]

How to Build a Chatbot with the Chat Endpoint

21. How to Build a RAG-Powered Chatbot with Chat, Embed, and Rerank

Learn how to build a chatbot using Cohere’s Chat, Embed, and Rerank endpoints. [Notebook | Colab]

How to Build a RAG-Powered Chatbot with Chat, Embed, and Rerank

22. How to Build a RAG-Powered Chatbot with Connectors

Learn how to build a chatbot connectors using Cohere's build-your-own connectors framework. [Notebook | Colab]

How to Build a RAG-Powered Chatbot with Connectors

23. How to Fine-Tune a Model for Cohere Chat

[Notebook | Colab]

How to Fine-Tune a Model for Cohere Chat

About

Code examples and jupyter notebooks for the Cohere Platform


Languages

Language:Jupyter Notebook 100.0%