How datawhalechina/llm-universe works
LLM Universe is a hands-on tutorial for building LLM applications, centered on a personal knowledge-base assistant. The learner progresses from LLM/API concepts through document processing and vector indexing, then retrieval-augmented chat and evaluation; advanced RAG and application case studies are additional branches. The sampled Streamlit app shows the runtime retrieval-and-answer flow. Other chapter links and capabilities are represented from the README, not inspected source, so their internal wiring is omitted.
Main entry points: streamlit_app.py Streamlit RAG App · C3 搭建知识库 Knowledge Base Course · zhipuai_llm.py Zhipu Chat Model · 2. 数据处理 Advanced Data Processing
Components 17
LLM Learning
- LLM Foundations
notebook/C1 大型语言模型 LLM 介绍 - LLM API Course
notebook/C2 使用 LLM API 开发应用 - Prompt Engineering
data_base/knowledge_db/prompt_engineering
Knowledge Preparation
- Knowledge Base Course
notebook/C3 搭建知识库 - Knowledge Documents
data_base/knowledge_db - Zhipu Embeddings
notebook/C3 搭建知识库/zhipuai_embedding.py - Spark Embeddings
notebook/C3 搭建知识库/sparkai_embedding.py - Chroma Vector Store
data_base/vector_db/chroma
RAG Assistant
- Streamlit RAG App
notebook/C4 构建 RAG 应用/streamlit_app.py - Zhipu Chat Model
notebook/C4 构建 RAG 应用/zhipuai_llm.py - System Evaluation
notebook/C5 系统评估与优化
Advanced RAG
- QA Pair Generation
notebook/C7 高级 RAG 技巧/2. 数据处理/generate_qa_pairs.py - Advanced Data Processing
notebook/C7 高级 RAG 技巧/2. 数据处理 - Advanced Retrieval
notebook/C7 高级 RAG 技巧/4. 检索阶段 - Application Case Studies
docs/C6
Other components
- Learner
- LLM API Providers
Connections 17
- Learner → LLM Foundations: studies
README.md - Learner → LLM API Course: studies
README.md - Learner → Prompt Engineering: studies
README.md - Learner → Knowledge Base Course: studies
README.md - Learner → Streamlit RAG App: uses
README.md - Learner → System Evaluation: evaluates
README.md - Knowledge Base Course → Knowledge Documents: processes
README.md - Knowledge Base Course → Chroma Vector Store: builds
README.md - Streamlit RAG App → Zhipu Embeddings: loads retriever with
notebook/C4 构建 RAG 应用/streamlit_app.py - Streamlit RAG App → Chroma Vector Store: retrieves from
notebook/C4 构建 RAG 应用/streamlit_app.py - Streamlit RAG App → Zhipu Chat Model: generates with
notebook/C4 构建 RAG 应用/streamlit_app.py - Zhipu Chat Model → LLM API Providers: calls
notebook/C4 构建 RAG 应用/zhipuai_llm.py - Learner → Advanced Data Processing: studies
README.md - Advanced Data Processing → QA Pair Generation: includes
README.md - Learner → Advanced Retrieval: studies
README.md - Learner → Application Case Studies: studies
README.md - Streamlit RAG App → Learner: streams answers
notebook/C4 构建 RAG 应用/streamlit_app.py