Go to file
dependabot[bot] 43069905cb
Bump langchain in /apps/enterprise-knowledge-retrieval (#695)
Bumps [langchain](https://github.com/langchain-ai/langchain) from 0.0.158 to 0.0.246.
- [Release notes](https://github.com/langchain-ai/langchain/releases)
- [Commits](https://github.com/langchain-ai/langchain/commits)

---
updated-dependencies:
- dependency-name: langchain
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-09-11 16:39:25 -07:00
.github/ISSUE_TEMPLATE Update issue templates 2023-05-08 17:44:28 -07:00
apps Bump langchain in /apps/enterprise-knowledge-retrieval (#695) 2023-09-11 16:39:25 -07:00
examples Add Azure Cognitive Search vector database (#569) 2023-09-11 16:34:15 -07:00
images rename image file 2023-06-16 17:37:40 -07:00
transition_guides_for_deprecated_API_endpoints removes deprecated Search function from deprecation code example (#130) 2023-02-13 16:59:22 -08:00
.gitignore small improvements to the fine-tuning cookbook (#651) 2023-08-22 15:30:03 -07:00
how_to_work_with_large_language_models.md small grammar fix 2023-01-29 11:56:13 -05:00
LICENSE Create LICENSE (#136) 2023-02-15 15:20:06 -08:00
README.md Update readme specifying Java support of Sematic Kernel (#689) 2023-09-11 14:56:22 -07:00
techniques_to_improve_reliability.md Merge pull request #313 from CharitySarah09/CharitySarah09-patch-2 2023-04-05 14:21:36 -07:00
text_comparison_examples.md [revise] small edits and fixed typos (#510) 2023-08-25 13:08:49 -07:00

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

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

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#/Java 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.