Giter VIP home page Giter VIP logo

openai-cookbook's Introduction

OpenAI Cookbook

The OpenAI Cookbook shares example code for accomplishing common tasks with the OpenAI API.

To run these examples, you'll need an OpenAI account and API key (create a free account).

Most code examples are written in Python, though the concepts can be applied in any language.

Open in GitHub Codespaces

Recently added/updated 🆕 ✨

Guides & examples

Related OpenAI resources

Beyond the code examples here, you can learn about the OpenAI API from the following resources:

Related resources from around the web

People are writing great tools and papers for improving outputs from GPT. Here are some cool ones we've seen:

Prompting libraries & tools

  • Guidance: A handy looking Python library from Microsoft that uses Handlebars templating to interleave generation, prompting, and logical control.
  • LangChain: A popular Python/JavaScript library for chaining sequences of language model prompts.
  • FLAML (A Fast Library for Automated Machine Learning & Tuning): A Python library for automating selection of models, hyperparameters, and other tunable choices.
  • Chainlit: A Python library for making chatbot interfaces.
  • Guardrails.ai: A Python library for validating outputs and retrying failures. Still in alpha, so expect sharp edges and bugs.
  • Semantic Kernel: A Python/C# library from Microsoft that supports prompt templating, function chaining, vectorized memory, and intelligent planning.
  • Prompttools: Open-source Python tools for testing and evaluating models, vector DBs, and prompts.
  • Outlines: A Python library that provides a domain-specific language to simplify prompting and constrain generation.
  • Promptify: A small Python library for using language models to perform NLP tasks.
  • Scale Spellbook: A paid product for building, comparing, and shipping language model apps.
  • PromptPerfect: A paid product for testing and improving prompts.
  • Weights & Biases: A paid product for tracking model training and prompt engineering experiments.
  • OpenAI Evals: An open-source library for evaluating task performance of language models and prompts.
  • LlamaIndex: A Python library for augmenting LLM apps with data.
  • Arthur Shield: A paid product for detecting toxicity, hallucination, prompt injection, etc.
  • LMQL: A programming language for LLM interaction with support for typed prompting, control flow, constraints, and tools.

Prompting guides

Video courses

Papers on advanced prompting to improve reasoning

Contributing

If there are examples or guides you'd like to see, feel free to suggest them on the issues page. We are also happy to accept high quality pull requests, as long as they fit the scope of the repo.

openai-cookbook's People

Contributors

ted-at-openai avatar colin-openai avatar logankilpatrick avatar liuliuod avatar isafulf avatar colin-jarvis avatar cmurtz-msft avatar simonpfish avatar filipeabperes avatar kacperlukawski avatar joe-at-openai avatar eltociear avatar mikeheaton avatar shyamal-anadkat avatar jamescalam avatar borispower avatar glecaros avatar joshshep97 avatar prestontuggle avatar scottire avatar glojain avatar wangxuqi avatar ethanknights avatar sebawita avatar spartee avatar kristapratico avatar jasonbosco avatar filip-halt avatar bricker avatar athyuttamre 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.