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. Yes. You can use fine tuning ( https://platform.openai.com/docs/guides/fine-tuning and https://github.com/openai/openai-cookbook/tree/main/examples... ) to improve its knowledge set of a particular domain. Even with sufficient work on your…
  2. ▲ 3
    OpenAI Cookbook: How to format inputs to ChatGPT models
    story by wyem · 2023-03-02 · 1 comment
  3. Probably the embeddings API. This guide is what helped me understand the concept https://github.com/openai/openai-cookbook/blob/main/examples... tl;dr is that you can pre-process each chunk of your database and use embeddings to quickly…
    comment by Hyzer · 2023-03-02 · in Introducing ChatGPT and Whisper APIs
  4. …you query the vectorized embeddings and then pass the n relevant texts into the completion api. https://github.com/openai/openai-cookbook/blob/main/examples...
  5. I think https://github.com/openai/openai-cookbook/blob/main/examples... is the one they are referring to. This is the page that links it https://github.com/openai/openai-cookbook/blob/main/text_com...
  6. …[3], which abstracts a lot of the work. [1] - https://platform.openai.com/docs/tutorials [2] - https://github.com/openai/openai-cookbook [3] - https://github.com/hwchase17/langchain
    comment by mmaia · 2023-02-13 · in CustomGPT
  7. ▲ 3
    OpenAI Cookbook Weaviate Examples
    story by bobvanluijt · 2023-02-13 · 0 comments
  8. ▲ 10
    Dev LLM stack, production LLM stack, example projects, & things you'll discover
    story by tikkun · 2023-02-09 · 2 comments
  9. …and downgrading to curie in several steps as you polish prompts and breakdown tasks (see https://github.com/openai/openai-cookbook/blob/main/techniqu... ). I haven't gotten beyond the davinci for prototyping tho. It's cheap enough that a…
  10. …stored in it. For example a notebook for "lets train GPT on the information about the olympics - https://github.com/openai/openai-cookbook/blob/main/examples... and https://github.com/openai/openai-cookbook/blob/main/examples... and…
  11. ▲ 13
    Ask HN: How are you building apps that use LLMs?
    story by jrvarela56 · 2023-01-29 · 3 comments
  12. ▲ 23
    Ask HN: Is anyone building a question answering system using the HN corpus?
    story by rahimnathwani · 2023-01-24 · 15 comments
  13. …https://pair.withgoogle.com/guidebook/ LLM advice: Tips to improve prompt and answer quality. https://github.com/openai/openai-cookbook/blob/main/techniqu... I wrote a short overview of some of the LLM Application development tools and…
  14. Mr Kumar seems to have missed the guide. Here https://github.com/openai/openai-cookbook/blob/main/techniqu...
    comment by throwaway29303 · 2023-01-23 · in ChatGPT Is Bad at Math
  15. …as truthfully as possible, and if you're unsure of the answer, say "Sorry, I don't know" [0] https://github.com/openai/openai-cookbook/blob/main/examples... (which is now linked in OP)
  16. …that it can already solve more difficult problems when given the right prompts and constraints. https://github.com/openai/openai-cookbook/blob/main/techniqu...
  17. ▲ 302
    Techniques to improve reliability
    story by tedsanders · 2023-01-21 · 61 comments
  18. https://github.com/openai/openai-cookbook/blob/main/examples... would be something to look at too.
    comment by shagie · 2023-01-16 · in OpenAI starts testing ChatGPT premium
  19. ▲ 51
    OpenAI Cookbook
    story by jonbaer · 2023-01-10 · 1 comment
  20. ▲ 2
    Examples and guides for using the OpenAI API
    story by activatedgeek · 2023-01-08 · 0 comments
  21. …is not the right approach for this use-case. A better approach might look more like this: https://github.com/openai/openai-cookbook/blob/main/examples...
  22. Here’s the example notebook that shows how to do this. https://github.com/openai/openai-cookbook/blob/main/examples...
  23. Thanks for sharing this! I found this guide/example from OpenAI which was pretty clear: https://github.com/openai/openai-cookbook/blob/main/examples...
  24. ▲ 2
    Question Answering Using GPT Embeddings
    story by kordlessagain · 2022-12-23 · 0 comments
  25. ▲ 2
    OpenAI Cookbook
    story by alonp99 · 2022-12-19 · 0 comments
  26. ▲ 1
    Recommendation using embeddings and nearest neighbor search
    story by tosh · 2022-12-19 · 0 comments
  27. …where you search over a knowledge base) I started a repo here with some barebones examples of each: https://github.com/openai/openai-cookbook/ If you're looking for examples of commercial applications, OpenAI published two blog posts…
    comment by tedsanders · 2022-08-22 · in OpenAI API pricing update FAQ