openai-cookbook
View on GitHubExamples and guides for using the OpenAI API
Official OpenAI repo of runnable Jupyter notebooks and articles showing how to use the OpenAI API: RAG, embeddings, fine-tuning, function calling, agents, image generation, evals and prompt techniques. Best as a copy-paste reference for developers building LLM apps.
Use Cases
Building RAG pipelines over documents and WikipediaEmbedding-based search, clustering and classificationFine-tuning chat models and DPO/RFT workflowsFunction/tool calling and agent orchestrationPrompt engineering and prompt caching optimizationImage generation with DALL-E and GPT ImageSpeech transcription and realtime audio appsHallucination guardrails and LLM-as-a-judge evals
Built With
- Language
- Jupyter Notebook
- Frameworks
- OpenAI Python SDK · OpenAI Node SDK · LangChain · tiktoken · pandas · numpy · streamlit
Tags
openai-api · cookbook · examples · jupyter-notebooks · tutorials · rag · embeddings · fine-tuning · function-calling · agents · prompt-engineering · evals · guardrails · multimodal · gpt-4 · best-practices