Examples and guides for using the OpenAI API
Archive stale cookbook entries (#2778)
Konstantine Kahadze0f2e192908b7
diff --git a/registry.yaml b/registry.yamlindex 7d34de21..c0fa2805 100644--- a/registry.yaml+++ b/registry.yaml@@ -326,6 +326,7 @@path: examples/agents_sdk/session_memory.ipynbslug: session-memorydate: 2025-09-09+ archived: trueauthors:- emreokculartags:@@ -452,6 +453,7 @@- title: Using NVIDIA TensorRT-LLM to run gpt-oss-20bpath: articles/gpt-oss/run-nvidia.ipynbslug: run-nvidia+ archived: truedate: 2025-08-05authors:- jayrodge@@ -674,6 +676,7 @@path: examples/o-series/o3o4-mini_prompting_guide.ipynbslug: o3o4-mini-prompting-guidedescription: Cookbook to improve o3/o4-mini function calling with prompt best practices.+ archived: truedate: 2025-05-26authors:- billchen-openai@@ -839,6 +842,7 @@- title: Automating Dispute Management with Agents SDK and Stripe APIpath: examples/agents_sdk/dispute_agent.ipynbslug: dispute-agent+ archived: truedate: 2025-03-17authors:- danbell-openai@@ -890,6 +894,7 @@- completions- tiktoken- fine-tuning+ archived: true- title: Classification using embeddingspath: examples/Classification_using_embeddings.ipynb@@ -994,6 +999,7 @@tags:- completions- functions+ archived: true- title: Using embeddingspath: examples/Using_embeddings.ipynb@@ -1021,6 +1027,7 @@- title: How to use functions with a knowledge basepath: examples/How_to_call_functions_for_knowledge_retrieval.ipynbslug: how-to-call-functions-for-knowledge-retrieval+ archived: truedate: 2023-06-14authors:- colin-openai@@ -1039,6 +1046,7 @@tags:- completions- functions+ archived: true- title: How to count tokens with Tiktokenpath: examples/How_to_count_tokens_with_tiktoken.ipynb@@ -1060,6 +1068,7 @@tags:- completions- fine-tuning+ archived: true- title: How to format inputs to ChatGPT modelspath: examples/How_to_format_inputs_to_ChatGPT_models.ipynb@@ -1122,6 +1131,7 @@tags:- embeddings- completions+ archived: true- title: Question answering using embeddings-based searchpath: examples/Question_answering_using_embeddings.ipynb@@ -1165,6 +1175,7 @@tags:- embeddings- completions+ archived: true- title: Semantic text search using embeddingspath: examples/Semantic_text_search_using_embeddings.ipynb@@ -1306,6 +1317,7 @@- kristapraticotags:- completions+ archived: true- title: Azure embeddings examplepath: examples/azure/embeddings.ipynb@@ -1328,6 +1340,7 @@tags:- completions- functions+ archived: true- title: Translate a book writen in LaTeX from Slovenian into Englishpath: examples/book_translation/translate_latex_book.ipynb@@ -1370,6 +1383,7 @@tags:- embeddings- completions+ archived: true- title: Getting Started with OpenAI Evalspath: examples/evaluation/Getting_Started_with_OpenAI_Evals.ipynb@@ -1380,6 +1394,7 @@- shyamal-anadkattags:- completions+ archived: true- title: Developing Hallucination Guardrailspath: examples/Developing_hallucination_guardrails.ipynb@@ -1390,6 +1405,7 @@- royziv11tags:- guardrails+ archived: true- title: Fine-Tuned Q&A - collect datapath: examples/fine-tuned_qa/olympics-1-collect-data.ipynb@@ -1446,6 +1462,7 @@tags:- embeddings- completions+ archived: true- title: Vector databasespath: examples/vector_databases/README.md@@ -1456,6 +1473,7 @@- moizsajidtags:- embeddings+ archived: true- title: Using PolarDB-PG as a vector database for OpenAI embeddingspath: >-@@ -1518,6 +1536,7 @@- farzad528tags:- embeddings+ archived: true- title: Philosophy with vector embeddings, OpenAI and Cassandra / Astra DBpath: examples/vector_databases/cassandra_astradb/Philosophical_Quotes_CQL.ipynb@@ -1558,6 +1577,7 @@- atroyntags:- embeddings+ archived: true- title: Robust question answering with Chroma and OpenAIpath: examples/vector_databases/chroma/hyde-with-chroma-and-openai.ipynb@@ -1569,6 +1589,7 @@tags:- embeddings- completions+ archived: true- title: Elasticsearchpath: examples/vector_databases/elasticsearch/README.md@@ -1579,6 +1600,7 @@tags:- embeddings- completions+ archived: true- title: Retrieval augmented generation using Elasticsearch and OpenAIpath: >-@@ -1590,6 +1612,7 @@tags:- embeddings- completions+ archived: true- title: Semantic search using Elasticsearch and OpenAIpath: examples/vector_databases/elasticsearch/elasticsearch-semantic-search.ipynb@@ -1599,6 +1622,7 @@- leemthompotags:- embeddings+ archived: true- title: Using Hologres as a vector database for OpenAI embeddingspath: >-@@ -1717,6 +1741,7 @@- colin-openaitags:- embeddings+ archived: true- title: Using Qdrant as a vector database for OpenAI embeddingspath: >-@@ -1746,6 +1771,7 @@- kacperlukawskitags:- embeddings+ archived: true- title: Redispath: examples/vector_databases/redis/README.md@@ -1766,6 +1792,7 @@- colin-openaitags:- embeddings+ archived: true- title: Using Redis as a vector database with OpenAIpath: examples/vector_databases/redis/getting-started-with-redis-and-openai.ipynb@@ -2001,6 +2028,7 @@- title: How to automate AWS tasks with function callingpath: examples/third_party/How_to_automate_S3_storage_with_functions.ipynbslug: how-to-automate-s3-storage-with-functions+ archived: truedate: 2023-09-27authors:- Barqawiz@@ -2026,6 +2054,7 @@- danieltpricetags:- embeddings+ archived: true- title: Question answering with LangChain, Deep Lake, & OpenAIpath: examples/vector_databases/deeplake/deeplake_langchain_qa.ipynb@@ -2035,6 +2064,7 @@- FayazRahmantags:- embeddings+ archived: true- title: Fine-tuning OpenAI models with Weights & Biasespath: examples/third_party/GPT_finetuning_with_wandb.ipynb@@ -2046,6 +2076,7 @@- tiktoken- completions- fine-tuning+ archived: true- title: OpenAI API Monitoring with Weights & Biases Weavepath: examples/third_party/Openai_monitoring_with_wandb_weave.ipynb@@ -2067,6 +2098,7 @@- completions- functions- agents+ archived: true- title: Named Entity Recognition to Enrich Textpath: examples/Named_Entity_Recognition_to_enrich_text.ipynb@@ -2077,6 +2109,7 @@tags:- completions- functions+ archived: true- title: What makes documentation goodpath: articles/what_makes_documentation_good.md@@ -2098,6 +2131,7 @@tags:- completions- functions+ archived: true- title: Fine tuning for function callingpath: examples/Fine_tuning_for_function_calling.ipynb@@ -2112,6 +2146,7 @@- completions- functions- fine-tuning+ archived: true- title: Processing and narrating a video with GPT-4.1-mini's visual capabilities and GPT-4o TTS APIpath: examples/GPT_with_vision_for_video_understanding.ipynb@@ -2143,6 +2178,7 @@- shyamal-anadkattags:- completions+ archived: true- title: Assistants API Overview (Python SDK)path: examples/Assistants_API_overview_python.ipynb@@ -2166,6 +2202,7 @@- completions- functions- agents+ archived: true- title: MongoDB Atlas Vector Searchpath: examples/vector_databases/mongodb_atlas/README.md@@ -2186,6 +2223,7 @@tags:- embeddings- completions+ archived: true- title: Evaluate RAG with LlamaIndexpath: examples/evaluation/Evaluate_RAG_with_LlamaIndex.ipynb@@ -2196,6 +2234,7 @@tags:- embeddings- completions+ archived: true- title: RAG with a Graph databasepath: examples/RAG_with_graph_db.ipynb@@ -2206,6 +2245,7 @@tags:- embeddings- completions+ archived: true- title: Supabase Vector Databasepath: examples/vector_databases/supabase/README.md@@ -2215,6 +2255,7 @@- ggrntags:- embeddings+ archived: true- title: Semantic search using Supabase Vectorpath: examples/vector_databases/supabase/semantic-search.mdx@@ -2224,6 +2265,7 @@- ggrntags:- embeddings+ archived: true- title: How to implement LLM guardrailspath: examples/How_to_use_guardrails.ipynb@@ -2233,6 +2275,7 @@- colin-openaitags:- guardrails+ archived: true- title: How to combine GPT4o mini with RAG to create a clothing matchmaker apppath: examples/How_to_combine_GPT4o_with_RAG_Outfit_Assistant.ipynb@@ -2243,6 +2286,7 @@tags:- vision- embeddings+ archived: true- title: How to parse PDF docs for RAGpath: examples/Parse_PDF_docs_for_RAG.ipynb@@ -2254,6 +2298,7 @@tags:- vision- embeddings+ archived: true- title: Using GPT4o mini to tag and caption imagespath: examples/Tag_caption_images_with_GPT4V.ipynb@@ -2264,6 +2309,7 @@tags:- vision- embeddings+ archived: true- title: How to use the moderation APIpath: examples/How_to_use_moderation.ipynb@@ -2273,6 +2319,7 @@- teomusatoiutags:- moderation+ archived: true- title: Summarizing Long Documentspath: examples/Summarizing_long_documents.ipynb@@ -2282,6 +2329,7 @@- joe-at-openaitags:- chat+ archived: true- title: Using GPT4 Vision with Function Callingpath: examples/multimodal/Using_GPT4_Vision_With_Function_Calling.ipynb@@ -2293,6 +2341,7 @@tags:- chat- vision+ archived: true- title: Synthetic data generation (Part 1)path: examples/SDG1.ipynb@@ -2302,6 +2351,7 @@- dylanra-openaitags:- completions+ archived: true- title: CLIP embeddings to improve multimodal RAG with GPT-4 Visionpath: examples/custom_image_embedding_search.ipynb@@ -2312,6 +2362,7 @@tags:- vision- embeddings+ archived: true- title: Batch processing with the Batch APIpath: examples/batch_processing.ipynb@@ -2322,6 +2373,7 @@tags:- batch- completions+ archived: true- title: Using tool required for customer servicepath: examples/Using_tool_required_for_customer_service.ipynb@@ -2332,6 +2384,7 @@tags:- completions- functions+ archived: true- title: Introduction to GPT-4o and GPT-4o minipath: examples/gpt4o/introduction_to_gpt4o.ipynb@@ -2343,6 +2396,7 @@- completions- vision- whisper+ archived: true- title: Azure AI Search with Azure Functions and GPT Actions in ChatGPTpath: examples/chatgpt/rag-quickstart/azure/Azure_AI_Search_with_Azure_Functions_and_GPT_Actions_in_ChatGPT.ipynb@@ -2356,6 +2410,7 @@- tiktoken- completions- chatgpt-and-api+ archived: true- title: GPT Actions library - getting startedpath: examples/chatgpt/gpt_actions_library/.gpt_action_getting_started.ipynb@@ -2366,6 +2421,7 @@tags:- gpt-actions-library- chatgpt+ archived: true- title: GPT Actions library - BigQuerypath: examples/chatgpt/gpt_actions_library/gpt_action_bigquery.ipynb@@ -2377,6 +2433,7 @@- gpt-actions-library- chatgpt- chatgpt-data+ archived: true- title: Data Extraction and Transformation in ELT Workflows using GPT-4o as an OCR Alternativepath: examples/Data_extraction_transformation.ipynb@@ -2387,6 +2444,7 @@tags:- completions- vision+ archived: true- title: GPT Actions library - Outlookpath: examples/chatgpt/gpt_actions_library/gpt_action_outlook.ipynb@@ -2398,6 +2456,7 @@- gpt-actions-library- chatgpt- chatgpt-communication+ archived: true- title: GPT Actions library - Sharepoint (Return Docs)path: examples/chatgpt/gpt_actions_library/gpt_action_sharepoint_doc.ipynb@@ -2409,6 +2468,7 @@- gpt-actions-library- chatgpt- chatgpt-productivity+ archived: true- title: GPT Actions library - Sharepoint (Return Text)path: examples/chatgpt/gpt_actions_library/gpt_action_sharepoint_text.ipynb@@ -2420,6 +2480,7 @@- gpt-actions-library- chatgpt- chatgpt-productivity+ archived: true- title: GPT Actions library (Middleware) - Azure Functionspath: examples/chatgpt/gpt_actions_library/gpt_middleware_azure_function.ipynb@@ -2431,6 +2492,7 @@- gpt-actions-library- chatgpt- chatgpt-middleware+ archived: true- title: GPT Actions library - Canvas Learning Management Systempath: examples/chatgpt/gpt_actions_library/gpt_action_canvas.md@@ -2442,6 +2504,7 @@tags:- gpt-actions-library- chatgpt+ archived: true- title: GPT Actions library - Salesforcepath: examples/chatgpt/gpt_actions_library/gpt_action_salesforce.ipynb@@ -2452,6 +2515,7 @@tags:- gpt-actions-library- chatgpt+ archived: true- title: GPT Actions library - Gmailpath: examples/chatgpt/gpt_actions_library/gpt_action_gmail.ipynb@@ -2463,6 +2527,7 @@- gpt-actions-library- chatgpt- chatgpt-communication+ archived: true- title: GPT Actions library - Jirapath: examples/chatgpt/gpt_actions_library/gpt_action_jira.ipynb@@ -2474,6 +2539,7 @@- gpt-actions-library- chatgpt- chatgpt-productivity+ archived: true- title: GPT Actions library - Notionpath: examples/chatgpt/gpt_actions_library/gpt_action_notion.ipynb@@ -2485,6 +2551,7 @@- gpt-actions-library- chatgpt- chatgpt-productivity+ archived: true- title: GPT Actions library - Confluencepath: examples/chatgpt/gpt_actions_library/gpt_action_confluence.ipynb@@ -2496,6 +2563,7 @@- gpt-actions-library- chatgpt- chatgpt-productivity+ archived: true- title: GPT Actions library - SQL Databasepath: examples/chatgpt/gpt_actions_library/gpt_action_sql_database.ipynb@@ -2507,6 +2575,7 @@- chatgpt- gpt-actions-library- chatgpt-data+ archived: true- title: GPT Actions library - Boxpath: examples/chatgpt/gpt_actions_library/gpt_action_box.ipynb@@ -2518,6 +2587,7 @@- gpt-actions-library- chatgpt- chatgpt-productivity+ archived: true- title: GCP BigQuery Vector Search with GCP Functions and GPT Actions in ChatGPTpath: examples/chatgpt/rag-quickstart/gcp/Getting_started_with_bigquery_vector_search_and_openai.ipynb@@ -2532,6 +2602,7 @@- tiktoken- completions- chatgpt-and-api+ archived: true- title: GPT Actions library - Zapierpath: examples/chatgpt/gpt_actions_library/gpt_action_zapier.ipynb@@ -2543,6 +2614,7 @@- gpt-actions-library- chatgpt- chatgpt-middleware+ archived: true- title: Structured Outputs for Multi-Agent Systemspath: examples/Structured_outputs_multi_agent.ipynb@@ -2554,6 +2626,7 @@- completions- functions- agents+ archived: true- title: Introduction to Structured Outputspath: examples/Structured_Outputs_Intro.ipynb@@ -2575,6 +2648,7 @@- chatgpt- gpt-actions-library- chatgpt-middleware+ archived: true- title: GPT Actions library - AWS Redshiftpath: examples/chatgpt/gpt_actions_library/gpt_action_redshift.ipynb@@ -2586,6 +2660,7 @@- gpt-actions-library- chatgpt- chatgpt-data+ archived: true- title: GPT Actions library - AWS Middlewarepath: examples/chatgpt/gpt_actions_library/gpt_middleware_aws_function.ipynb@@ -2597,6 +2672,7 @@- gpt-actions-library- chatgpt- chatgpt-middleware+ archived: true- title: GPT Actions library - Google Drivepath: examples/chatgpt/gpt_actions_library/gpt_action_google_drive.ipynb@@ -2608,6 +2684,7 @@- gpt-actions-library- chatgpt- chatgpt-productivity+ archived: true- title: GPT Actions library - Snowflake Directpath: examples/chatgpt/gpt_actions_library/gpt_action_snowflake_direct.ipynb@@ -2630,6 +2707,7 @@- gpt-actions-library- chatgpt- chatgpt-data+ archived: true- title: GPT Actions library - Retool Workflowpath: examples/chatgpt/gpt_actions_library/gpt_action_retool_workflow.md@@ -2641,6 +2719,7 @@- gpt-actions-library- chatgpt- chatgpt-middleware+ archived: true- title: Using reasoning for data validationpath: examples/o1/Using_reasoning_for_data_validation.ipynb@@ -2651,6 +2730,7 @@tags:- completions- reasoning+ archived: true- title: Using reasoning for routine generationpath: examples/o1/Using_reasoning_for_routine_generation.ipynb@@ -2661,6 +2741,7 @@tags:- completions- reasoning+ archived: true- title: Using chained calls for o1 structured outputspath: examples/o1/Using_chained_calls_for_o1_structured_outputs.ipynb@@ -2671,6 +2752,7 @@tags:- completions- reasoning+ archived: true- title: Building a Bring Your Own Browser (BYOB) Tool for Web Browsing and Summarizationpath: examples/third_party/Web_search_with_google_api_bring_your_own_browser_tool.ipynb@@ -2693,6 +2775,7 @@- cost- prompt caching- completions+ archived: true- title: GPT Actions library - Google Ads via Adzviserpath: examples/chatgpt/gpt_actions_library/gpt_action_googleads_adzviser.ipynb@@ -2706,6 +2789,7 @@- chatgpt-data- chatgpt-productivity- chatgpt-middleware+ archived: true- title: Leveraging model distillation to fine-tune a modelpath: examples/Leveraging_model_distillation_to_fine-tune_a_model.ipynb@@ -2717,6 +2801,7 @@tags:- completions- fine-tuning+ archived: true- title: Voice Translation into Different Languagespath: examples/voice_solutions/voice_translation_into_different_languages_using_GPT-4o.ipynb@@ -2737,6 +2822,7 @@tags:- completions- reasoning+ archived: true- title: GPT Actions library - GitHubpath: examples/chatgpt/gpt_actions_library/gpt_action_github.md@@ -2759,6 +2845,7 @@tags:- evals- completions+ archived: true- title: Vision Fine-tuning on GPT-4o for Visual Question Answeringpath: examples/multimodal/Vision_Fine_tuning_on_GPT4o_for_Visual_Question_Answering.ipynb@@ -2781,6 +2868,7 @@tags:- completions- audio+ archived: true- title: Pinecone Vector Database and Retool Workflow with GPT Actionspath: examples/chatgpt/rag-quickstart/pinecone-retool/gpt-action-pinecone-retool-rag.ipynb@@ -2793,6 +2881,7 @@- embeddings- chatgpt- chatgpt-and-api+ archived: true- title: Optimizing Retrieval-Augmented Generation using GPT-4o Vision Modalitypath: examples/vector_databases/pinecone/Using_vision_modality_for_RAG_with_Pinecone.ipynb@@ -2815,6 +2904,7 @@- gpt-actions-library- chatgpt-productivity- chatgpt+ archived: true- title: GPT Actions library - Google Calendarpath: examples/chatgpt/gpt_actions_library/gpt_action_google_calendar.md@@ -2826,6 +2916,7 @@- gpt-actions-library- chatgpt- chatgpt-communication+ archived: true- title: GPT Actions library - Tray.ai APIMpath: examples/chatgpt/gpt_actions_library/gpt_action_trayai_apim.md@@ -2837,6 +2928,7 @@- gpt-actions-library- chatgpt- chatgpt-middleware+ archived: true- title: Reasoning over Code Quality and Security in GitHub Pull Requestspath: examples/third_party/Code_quality_and_security_scan_with_GitHub_Actions.md@@ -2857,6 +2949,7 @@- colin-openaitags:- guardrails+ archived: true- title: How to use the Usage API and Cost API to monitor your OpenAI usagepath: examples/completions_usage_api.ipynb@@ -2940,6 +3033,7 @@- title: GPT Actions library - Salesforce & Gongpath: examples/chatgpt/gpt_actions_library/gpt_action_salesforce_gong.mdslug: gpt-action-salesforce-gong+ archived: truedate: 2025-04-07authors:- girishd@@ -3155,6 +3249,7 @@slug: context-personalizationdescription: Cookbook to build personalized agents with long-term memory state using the Agents SDK.date: 2026-01-05+ archived: trueauthors:- emreokculartags: