How datawhalechina/llm-cookbook works
LLM Cookbook is a Chinese-oriented, hands-on curriculum for developers learning LLM application development—not a single runtime application. A learner follows foundational prompt and API-system courses, then explores LangChain and personal-data RAG, with electives for interfaces, retrieval, evaluation, agents, and fine-tuning. The map captures documented course capabilities and a few sampled runtime helpers. Notebook internals and most elective implementations were not inspected, so their internal calls are omitted.
Main entry points: README.md LLM Cookbook · configuration.py Configuration · utilities.py Training utilities · configuration_set.py Config composition
Components 22
LLM foundations
- LLM Cookbook
README.md - Prompt engineering
content/必修一-Prompt Engineering For Developers
Application development
- ChatGPT API systems
content/必修二-Building Systems with the ChatGPT API - LangChain apps
content/必修三-LangChain for LLM Application Development - Tools and agents
content/选修-Functions, Tools and Agents with LangChain
Retrieval and RAG
- Personal-data chat
content/必修四-LangChain Chat with Your Data - Semantic search
content/选修-Large Language Models with Semantic Search - Chroma retrieval
content/选修-Advanced Retrieval for AI with Chroma - Advanced RAG
content/选修-Building and Evaluating Advanced RAG Applications
Advanced electives
- Advanced prompting
content/选修-Advanced Prompting - Gradio applications
content/选修-Building Generative AI Applications with Gradio - GenAI evaluation
content/选修-Evaluating and Debugging Generative AI - LLM fine-tuning
content/选修-Finetuning Large Language Models
Sampled runtime helpers
- API examples
content/必修二-Building Systems with the ChatGPT API/utils_zh.py - Diffusion utilities
content/选修-Evaluating and Debugging Generative AI/utilities.py - Training utilities
content/选修-Finetuning Large Language Models/utilities.py - Configuration
content/选修-Finetuning Large Language Models/config/configuration.py - Config composition
content/选修-Finetuning Large Language Models/config/configuration_set.py - Config helpers
content/选修-Finetuning Large Language Models/config/helpers.py - Image caption UI
utils/image_demo.py - Image caption client
utils/image2text_chat.py
Other components
- Developer learner
Connections 17
- Developer learner → LLM Cookbook: studies
README.md - LLM Cookbook → Prompt engineering: starts with
README.md - LLM Cookbook → ChatGPT API systems: teaches
README.md - LLM Cookbook → LangChain apps: teaches
README.md - LLM Cookbook → Personal-data chat: extends to
README.md - LLM Cookbook → Advanced prompting: offers elective
README.md - LLM Cookbook → Gradio applications: offers elective
README.md - LLM Cookbook → GenAI evaluation: offers elective
README.md - LLM Cookbook → LLM fine-tuning: offers elective
README.md - LLM Cookbook → Semantic search: offers elective
README.md - LLM Cookbook → Chroma retrieval: offers elective
README.md - LLM Cookbook → Advanced RAG: offers elective
README.md - LLM Cookbook → Tools and agents: offers elective
README.md - Training utilities → Configuration: imports
content/选修-Finetuning Large Language Models/utilities.py - Config composition → Configuration: uses
content/选修-Finetuning Large Language Models/config/configuration_set.py - Configuration → Config helpers: uses
content/选修-Finetuning Large Language Models/config/configuration.py - Image caption UI → Image caption client: calls
utils/image_demo.py