Hacker GitHub

← All repos

openai/openai-cookbook

View on GitHub ↗ ★ 76,913 Jupyter Notebook

Examples and guides for using the OpenAI API

77 mentions on Hacker News by 63 people: 25 stories, 52 comments · first 2022-08-22 · latest 2026-09-10

Mentions per year 77 mentions · busiest year 2023 (55)
20082026
  1. …my comment because the links are now fixed! And they point to a public repo under the openai org: https://github.com/openai/openai-cookbook/tree/main/examples...
    comment by varenc · 2026-09-10 · in OpenAI Agents API
  2. …2023 https://github.com/anthropics/claude-cookbooks/commit/2b3f4a... OpenAI's started in June 2022 https://github.com/openai/openai-cookbook/commit/535f545be7e...
    comment by simonw · 2026-07-24 · in Claude Cookbook
  3. …a much better version using this command instead, which uses the maximum image size according to https://github.com/openai/openai-cookbook/blob/main/examples... OPENAI_API_KEY="$(llm keys get openai)" \ uv run…
    comment by simonw · 2026-04-21 · in ChatGPT Images 2.0
  4. …why this matters—not just technically, but civilizationally. Would welcome thoughtful engagement: https://github.com/openai/openai-cookbook/issues/2426
  5. ▲ 2
    An Open Letter on the Epistemic Loss of Retiring GPT‑4o
    story by vreticaltension · 2026-02-10 · 3 comments
  6. ▲ 1
    GPT-5.1 Apply_patch.py Implementation
    story by victorbuilds · 2025-12-03 · 1 comment
  7. ▲ 6
    What Makes Documentation Good
    story by vinhnx · 2025-10-21 · 0 comments
  8. …I'm interested in both full model finetunes, and downstream matrix optimization as done in [1]. [1] https://github.com/openai/openai-cookbook/blob/main/examples...
  9. Open AI cookbook https://github.com/openai/openai-cookbook
    comment by 3abiton · 2025-05-27
  10. ▲ 4
    Examples and guides for using the OpenAI API
    story by saikatsg · 2025-04-19 · 0 comments
  11. …this model to turn out as well as it did? [1] https://x.com/sama/status/1889755723078443244 [2] https://github.com/openai/openai-cookbook/blob/6a47d53c967a0...
    comment by comex · 2025-04-14 · in GPT-4.1 in the API
  12. ▲ 1
    Vulnerability Issue related to AI response Markdown conversion
    story by taeho070607 · 2025-03-28 · 2 comments
  13. …is just as active as it ever was w/notebooks. To an almost absurd degree. 5-10 commits a week. https://github.com/openai/openai-cookbook/activity
    comment by refulgentis · 2024-12-21 · in Building Effective "Agents"
  14. …one good option is to use Wikipedia pages from the recent Olympics, which GPT has no knowledge of: https://github.com/openai/openai-cookbook/blob/457f4310700f9...
  15. The official openai-cookbook ( https://github.com/openai/openai-cookbook ) used to have an explicit, but buried, call out that instruction-following models like `text-davinci-003` were "Less diverse; less creative; sometimes harder to…
  16. …learned a couple tricks from OpenAI's Cookbook examples. This one came in handy not too long ago: https://github.com/openai/openai-cookbook/blob/main/examples...
  17. OpenAI cookbook: https://github.com/openai/openai-cookbook Btw, the Claude API might be available even if the chatbot is not.
  18. ▲ 4
    OpenAI Cookbook: Techniques to improve reliability
    story by DenverSWE · 2024-02-28 · 0 comments
  19. OpenAI community repo with lots of examples: https://github.com/openai/openai-cookbook
    comment by xnyan · 2023-11-08 · in Major outages across ChatGPT and API
  20. ▲ 3
    OpenAI cookbook: using GPT-4 as “reference-free” evaluator
    story by zostale · 2023-08-17 · 0 comments
  21. They have an example python script for batch jobs with retries. https://github.com/openai/openai-cookbook/blob/main/examples...
    comment by dsalzman · 2023-08-15 · in Ask HN: Batch Processing with OpenAI
  22. ▲ 2
    Question answering using a Search API
    story by krupskis · 2023-08-15 · 0 comments
  23. ▲ 5
    Enhancing Whisper transcriptions: pre- & post-processing techniques
    story by tosh · 2023-08-14 · 0 comments
  24. ▲ 3
    Design considerations for RAG application in production mode
    story by kmassimilian · 2023-08-14 · 0 comments
  25. …as far as I know. Even the OpenAI tutorial on this matter scrapes first and uses only normal text. https://github.com/openai/openai-cookbook/blob/main/apps/web...
    comment by jack_pp · 2023-08-02 · in I'm betting on HTML
  26. …with labelled similar and dissimilar video pairs, like in this notebook[1] from OpenAI. [1]: https://github.com/openai/openai-cookbook/blob/main/examples...
  27. ▲ 2
    OpenAI: How to Handle Rate Limits
    story by juunge · 2023-07-31 · 0 comments
  28. They've released an "OpenAI Cookbook" with examples of several common tasks. https://github.com/openai/openai-cookbook
  29. …provides the background for the tradeoff between the 2 approaches: 1) fine-tuning vs 2) Search-ask https://github.com/openai/openai-cookbook/blob/main/examples...
  30. …of mind for us and something we are continuing to push on. Does streaming work for your use case? https://github.com/openai/openai-cookbook/blob/main/examples... We definitely want to investigate these and the billing issues further. Would…
    comment by athyuttamre · 2023-07-06 · in GPT-4 API General Availability
  31. Yes, you can essentially use GPT functions to reliably output JSON based on a predefined schema. See https://github.com/openai/openai-cookbook/blob/main/examples...
  32. …vector representation of any text very easily using the openai apis, or frameworks like langchain https://github.com/openai/openai-cookbook/blob/main/examples... Similarity means your text gets turned into an array of numbers and the…
  33. …significantly (for example, on word math problems, solve rate went from 18% to 79%). Source: https://github.com/openai/openai-cookbook/blob/main/techniqu...
  34. …Like I said, it still all feels like we're in wild west times, at least as an app developer. [1] https://github.com/openai/openai-cookbook
  35. …could be parsing errors. OpenAI's demo for function calling is not a Hello World, to put it mildly: https://github.com/openai/openai-cookbook/blob/main/examples...
    comment by minimaxir · 2023-06-14 · in Native JSON Output from GPT-4
  36. …://platform.openai.com/docs/guides/gpt/function-calling they also have a notebook with more examples: https://github.com/openai/openai-cookbook/blob/main/examples...
  37. ▲ 2
    Question Answering Using Embeddings
    story by jbmilgrom · 2023-06-02 · 0 comments
  38. …of "prompt engineering" is more about building new software on top of LLMs - the kind of stuff in https://github.com/openai/openai-cookbook I see using ChatGPT directly as prompting, not prompt engineering.
  39. …about fine-tuning because they want to solve this problem. The best answer I've seen so far is in https://github.com/openai/openai-cookbook/blob/main/examples... > Although fine-tuning can feel like the more natural option—training on data…
    comment by simonw · 2023-04-22 · in Finetuning Large Language Models
  40. The OpenAI Cookbook has had an easy to use chat with a PDF app example for a few months. https://github.com/openai/openai-cookbook/tree/main/apps/fil...
    comment by robflaherty · 2023-04-19 · in ChatPDF – Chat with Any PDF
  41. ▲ 2
    Question answering using embeddings-based search (OpenAI Cookbook)
    story by tedsanders · 2023-04-14 · 0 comments
  42. …Where did title came from? Another point is that OpenAI changed encoders for chat models. Link: https://github.com/openai/openai-cookbook/blob/main/examples... Now English is less optimized for tokens usage and other languages are much…
  43. I wasn't aware that GPT-3 and GPT-4 use different tokenizers. I've read https://github.com/openai/openai-cookbook/blob/main/examples... and misinterpreted "ChatGPT models like gpt-3.5-turbo and gpt-4 use tokens in the same way as older…
    comment by lowefk · 2023-04-06 · in OpenAI Tokenizer
  44. Different GPTs use different tokens: https://github.com/openai/openai-cookbook/blob/main/examples...
    comment by tedsanders · 2023-04-05 · in OpenAI Tokenizer
  45. This guide explains how to count tokens for 3.5-turbo and beyond: https://github.com/openai/openai-cookbook/blob/main/examples...
    comment by tedsanders · 2023-04-05 · in OpenAI Tokenizer
  46. Here's a way to do it in your own code: https://github.com/openai/openai-cookbook/blob/main/examples...
  47. …- https://github.com/neuml/txtai/blob/master/examples/03_Build... - https://github.com/openai/openai-cookbook/blob/main/examples...
  48. https://github.com/openai/openai-cookbook/blob/main/examples... https://github.com/pinecone-io/examples/blob/master/generati... https://www.pinecone.io/learn/openai-gen-qa/ https://www.youtube.com/watch?v=tBJ-CTKG2dM&t=787s&ab_channe...…
    comment by gk1 · 2023-03-23 · in Cheating is All You Need
  49. ▲ 1
    API Request Parallel Processor
    story by andromaton · 2023-03-19 · 0 comments
  50. …or similar techniques, essentially asking the model to explain how it arrived at a solution. https://github.com/openai/openai-cookbook/blob/main/techniqu...