mirror of
https://github.com/openai/openai-cookbook
synced 2024-11-17 15:29:46 +00:00
5.3 KiB
5.3 KiB
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.
Recently added/updated 🆕 ✨
- How to fine-tune chat models [Aug 22, 2023]
- How to evaluate abstractive summarization [Aug 16, 2023]
- Whisper prompting guide [June 27, 2023]
- Question answering using a search API and re-ranking [June 16, 2023]
- How to call functions with Chat models [June 13, 2023]
Guides & examples
- API usage
- GPT
- Embeddings
- Text comparison examples
- How to get embeddings
- Question answering using embeddings
- Using vector databases for embeddings search
- Semantic search using embeddings
- Recommendations using embeddings
- Clustering embeddings
- Visualizing embeddings in 2D or 3D
- Embedding long texts
- Embeddings playground (streamlit app)
- Search reranking with cross-encoders
- Apps
- Fine-tuning GPT-3
- DALL-E
- Whisper
- Azure OpenAI (alternative API from Microsoft Azure)
Related OpenAI resources
Beyond the code examples here, you can learn about the OpenAI API from the following resources:
- Experiment with ChatGPT
- Try the API in the OpenAI Playground
- Read about the API in the OpenAI Documentation
- Get help in the OpenAI Help Center
- Discuss the API in the OpenAI Community Forum or OpenAI Discord channel
- See example prompts in the OpenAI Examples
- Stay updated with the OpenAI Blog
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.