Giter VIP home page Giter VIP logo

notebooks's Introduction

Cohere Cookbook

Welcome to the Cohere Cookbook! This repository provides a collection of examples to help you get started with the Cohere API. These examples contain step-by-step guides, with code examples and explanations, to help you understand and use the API effectively.

Categories

The cookbook is grouped into two categories. To get started, go to any of the categories below.

Category Description
Guides Tutorials and step-by-step guides covering a range of topics, providing practical guidance and code examples.
LLM University Guides for getting started with Cohere, starting with basic usage and progressing to advanced topics. The code companion to the full LLM University course.

Getting Started

If you are looking for a quick tour of the Cohere API, the following notebooks will help you get up and running.

  • Text Generation: Get started with the Command R+ model by building a chatbot using Cohere’s Chat endpoint. Build a chatbot that can respond to user messages and maintain the context of the conversation.

  • Text Embeddings: Get started with the Embed model by generating text embeddings for a dataset. Observe graphically the relationships between documents and explore how to leverage embeddings for semantic search and clustering.

  • Retrieval-Augmented Generation: Build a RAG-powered chatbot that can extract relevant information from external documents and produce verifiable, inline citations in its responses. This leverages the Chat endpoint as well as the Embed v3 and Rerank 3 models.

  • Multi-Step Tool Use: Multi-step tool use allows an LLM to call more than one tool in a sequence of steps, using the results from one tool call in a subsequent step. In this example, build a simple data analyst agent that is able to search the web and run code in a Python interpreter. This agent uses Cohere's Command R+ model and Langchain.

  • Tool Use: Tool use allows you to connect LLMs to external tools like search engines, APIs, functions, databases, etc. In this example, build an assistant that that can query sales reports and a product catalog and provide its analysis.

notebooks's People

Contributors

mrmer1 avatar jalammar avatar mahjongmen avatar luisguiserrano avatar co-antwan avatar maximevoisincohere avatar boyu-cohere avatar jlinsdell-cohere avatar billytrend-cohere avatar justin-lee-cohere avatar anna-cohere avatar co-sylvie avatar wdarling-cohere avatar kseniia-cohere avatar harry-cohere avatar marcodel13 avatar hellomitchell avatar alexisbcook-cohere avatar foundations-team-machine-user avatar giannis2two avatar co-barbet avatar robiriondo avatar ishubham326 avatar aalpat4 avatar gonzalocohere avatar joan-devassy avatar memeformer avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.