Rewrite the Cookbook introduction to make it more accessible #2163
+197
−170
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This pull request replaces the old introductory article on large language models with a new, more concise and practical guide aimed at developers. The new article,
openai-cookbook-llms-101.md
, provides hands-on code examples, covers core concepts, and highlights practical tips for working with LLMs in real applications.Documentation update and improvement:
how_to_work_with_large_language_models.md
article, which was more verbose and less focused on code-first guidance.openai-cookbook-llms-101.md
, that delivers a practical, code-centric introduction to LLMs, including Python and JavaScript examples, quick-start guides, and explanations of key concepts like tokenization, embeddings, transformer layers, and sampling.Developer-oriented enhancements:
Motivation
The original introductory article felt slapdash and more like something written by a person who’s long been working with AI, throwing together a random assortment of very basic things without clearly explaining the finer points of what an LLM really is and how they’ve evolved into so much more. It’s also more casual.
For new content
When contributing new content, read through our contribution guidelines, and mark the following action items as completed: