本项目是一个面向小白开发者的大模型应用开发教程,在线阅读地址:https://datawhalechina.github.io/llm-universe/
This report summarizes scanner evidence for datawhalechina/llm-universe, a Jupyter Notebook project with 14,355 GitHub stars. SynthScan examined 15,003 lines of code across 42 source files, recording 60 pattern matches distributed across 9 syntactic categories. The legacy adjusted pattern signal is 9.5 (Moderate pattern signal); it is not an authorship estimate.
Use the findings to ask whether maintainers can explain intent, verify dependencies, simplify unnecessary scaffolding, and focus review effort. Risk Payload v1 adds ownership, supply-chain, over-engineering, and review-effort vectors when available. These are prompts for human verification, not probabilities, security findings, or measured maintenance costs.
Use each vector to guide manual verification of the underlying findings.
Payload schema: 1.0.0 · Engine: 2.0.0 · Scoring: heuristic-density-v1 · Scan date: 2026-11-27.
Can maintainers explain intent, assumptions, and trade-offs? 20 finding(s).
Are imports declared and package/API names verified? 23 finding(s).
Are wrappers, guards, and repeated structures necessary? 22 finding(s).
Which changes need focused human review? 60 finding(s).
Run additional scans to build a history of the legacy pattern signal. Score changes are not a measure of AI adoption or code quality.
Groups findings by configured severity weight. Severity is not a confidence estimate, security rating, or proof that a package is missing. Verify imports against the project's manifests and inspect each finding in its local design context.
This horizontal bar chart shows where configured pattern scores accumulate across directories. Treat the bars as locations to inspect, not as evidence of authorship or code quality. Use the file-level findings to decide whether a directory needs a focused ownership, dependency, complexity, or review check.
The scanner identified 60 distinct pattern matches across 9 syntactic categories. Each entry below represents a discrete location in the source code where the engine recorded a detector match to inspect in context. Expand any category row to inspect the individual file paths, line numbers, code snippets, and the lexical context (CODE, COMMENT, or STRING) in which each match was detected.
Reading the findings table: The Severity column indicates the configured finding weight (CRITICAL / HIGH / MEDIUM / LOW). The Context column identifies whether the match occurred inside executable code, an inline comment, or a string literal — legacy comment-context matches receive a ×1.5 score weight. The ⚡ bolt icon marks clustered matches: three or more patterns within a 10-line window, each receiving an additional ×1.5 density multiplier under the legacy scoring model.
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| HIGH | docs/C3/附LangChain自定义Embedding封装讲解.md | 0 | 生成输入文本列表的 embedding. args: texts (list[str]): 要生成 embedding 的文本列表. returns: list[list[float]]: 输入列表中每个文档的 embedding 列表。每 | STRING |
| HIGH | notebook/C3 搭建知识库/zhipuai_embedding.py | 0 | 生成输入文本列表的 embedding. args: texts (list[str]): 要生成 embedding 的文本列表. returns: list[list[float]]: 输入列表中每个文档的 embedding 列表。每 | STRING |
| HIGH | notebook/附/SCNet/streamlit_app.py | 0 | 生成输入文本列表的 embedding. args: texts (list[str]): 要生成 embedding 的文本列表. returns: list[list[float]]: 输入列表中每个文档的 embedding 列表。每 | STRING |
| HIGH | notebook/附/DW高校行/streamlit_app.py | 0 | 生成输入文本列表的 embedding. args: texts (list[str]): 要生成 embedding 的文本列表. returns: list[list[float]]: 输入列表中每个文档的 embedding 列表。每 | STRING |
| HIGH | docs/C3/附LangChain自定义Embedding封装讲解.md | 0 | 生成输入文本的 embedding. args: texts (str): 要生成 embedding 的文本. return: embeddings (list[float]): 输入文本的 embedding,一个浮点数值列表. | STRING |
| HIGH | notebook/C3 搭建知识库/zhipuai_embedding.py | 0 | 生成输入文本的 embedding. args: texts (str): 要生成 embedding 的文本. return: embeddings (list[float]): 输入文本的 embedding,一个浮点数值列表. | STRING |
| HIGH | notebook/附/SCNet/streamlit_app.py | 0 | 生成输入文本的 embedding. args: texts (str): 要生成 embedding 的文本. return: embeddings (list[float]): 输入文本的 embedding,一个浮点数值列表. | STRING |
| HIGH | notebook/附/DW高校行/streamlit_app.py | 0 | 生成输入文本的 embedding. args: texts (str): 要生成 embedding 的文本. return: embeddings (list[float]): 输入文本的 embedding,一个浮点数值列表. | STRING |
| HIGH | docs/C3/C3.md | 0 | so, they still had the 17 piece system on seasonal \ sale for around $49 in the month of november, about \ half off, but | STRING |
| HIGH | …knowledge_db/prompt_engineering/4. 文本概括 Summarizing.md | 0 | so, they still had the 17 piece system on seasonal \ sale for around $49 in the month of november, about \ half off, but | STRING |
| HIGH | …e/knowledge_db/prompt_engineering/7. 文本扩展 Expanding.md | 0 | so, they still had the 17 piece system on seasonal \ sale for around $49 in the month of november, about \ half off, but | STRING |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | README.md | 118 | ### 第二部分 进阶 RAG 技巧(正在创作) | COMMENT |
| MEDIUM | docs/README.md | 106 | ### 第二部分 进阶 RAG 技巧(正在创作) | COMMENT |
| MEDIUM | docs/C1/C1.md | 327 | ## 1.2 什么是 RAG | COMMENT |
| MEDIUM | docs/C1/C1.md | 343 | ### 1.2.1 RAG 的工作流程 | COMMENT |
| MEDIUM | docs/C1/C1.md | 362 | ### 1.2.2 RAG 与微调 | COMMENT |
| MEDIUM | docs/C1/C1.md | 384 | ### 1.2.3 RAG 示例项目 | COMMENT |
| MEDIUM | docs/C3/C3.md | 71 | # embedding model:'text-embedding-3-small', 'text-embedding-3-large', 'text-embedding-ada-002' | COMMENT |
| MEDIUM | notebook/C1 大型语言模型 LLM 介绍/C1.md | 327 | ## 1.2 什么是 RAG | COMMENT |
| MEDIUM | notebook/C1 大型语言模型 LLM 介绍/C1.md | 343 | ### 1.2.1 RAG 的工作流程 | COMMENT |
| MEDIUM | notebook/C1 大型语言模型 LLM 介绍/C1.md | 362 | ### 1.2.2 RAG 与微调 | COMMENT |
| MEDIUM | notebook/C1 大型语言模型 LLM 介绍/C1.md | 384 | ### 1.2.3 RAG 示例项目 | COMMENT |
| MEDIUM | notebook/附/SCNet/streamlit_app.py | 175 | st.markdown('### 🦜🔗 基于 DeepSeek R1 搭建 RAG 应用') | CODE |
| MEDIUM | notebook/附/DW高校行/streamlit_app.py | 167 | st.markdown('### 🦜🔗 基于 DeepSeek R1 搭建 RAG 应用') | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | notebook/C4 构建 RAG 应用/streamlit_app.py | 3 | CODE | |
| LOW | notebook/C3 搭建知识库/sparkai_embedding.py | 1 | CODE | |
| LOW | notebook/C3 搭建知识库/sparkai_embedding.py | 1 | CODE | |
| LOW | notebook/附/SCNet/streamlit_app.py | 7 | CODE | |
| LOW | notebook/附/SCNet/streamlit_app.py | 9 | CODE | |
| LOW | notebook/附/SCNet/streamlit_app.py | 14 | CODE | |
| LOW | notebook/附/SCNet/streamlit_app.py | 16 | CODE | |
| LOW | notebook/附/DW高校行/streamlit_app.py | 7 | CODE | |
| LOW | notebook/附/DW高校行/streamlit_app.py | 9 | CODE | |
| LOW | notebook/附/DW高校行/streamlit_app.py | 14 | CODE | |
| LOW | notebook/附/DW高校行/streamlit_app.py | 16 | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| CRITICAL | notebook/C7 高级 RAG 技巧/2. 数据处理/train_dataset.json | 139 | "answer": "经过四次划分已无空白部分,表示决策树生成完毕,从图4-2(d)中可以清晰地看出好瓜与坏瓜的分类边界。含糖率密度0.60.40.20.20.40.60.80(a)第一次划分含糖率密度0.60.40.20. | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | docs/C4/C4.md | 663 | ("placeholder", "{chat_history}"), | STRING |
| LOW | docs/C4/C4.md | 730 | ("placeholder", "{chat_history}"), | STRING |
| LOW | docs/C4/C4.md | 902 | ("placeholder", "{chat_history}"), | STRING |
| LOW | docs/C4/C4.md | 922 | ("placeholder", "{chat_history}"), | STRING |
| LOW | notebook/C4 构建 RAG 应用/streamlit_app.py | 36 | ("placeholder", "{chat_history}"), | CODE |
| LOW | notebook/C4 构建 RAG 应用/streamlit_app.py | 56 | ("placeholder", "{chat_history}"), | CODE |
| LOW | notebook/附/SCNet/streamlit_app.py | 127 | ("placeholder", "{chat_history}"), | CODE |
| LOW | notebook/附/SCNet/streamlit_app.py | 147 | ("placeholder", "{chat_history}"), | CODE |
| LOW | notebook/附/DW高校行/streamlit_app.py | 119 | ("placeholder", "{chat_history}"), | CODE |
| LOW | notebook/附/DW高校行/streamlit_app.py | 139 | ("placeholder", "{chat_history}"), | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| HIGH | docs/C4/C4.md | 56 | # llm = ChatOpenAI(temperature=0, openai_api_key="YOUR_API_KEY") | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | docs/C6/案例1:个人知识库助手.md | 392 | print(f"Error generating summary for {repo_name}: {e}") | CODE |
| LOW | notebook/C3 搭建知识库/sparkai_embedding.py | 40 | except Exception as e: | CODE |
| LOW | notebook/C3 搭建知识库/sparkai_embedding.py | 68 | except Exception as e: | CODE |
| LOW | notebook/C3 搭建知识库/sparkai_embedding.py | 88 | except Exception as e: | CODE |
| LOW | notebook/C3 搭建知识库/sparkai_embedding.py | 103 | except Exception as retry_e: | CODE |
| LOW | notebook/C3 搭建知识库/sparkai_embedding.py | 129 | except Exception as e: | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | docs/C6/案例2:人情世故大模型系统-天机.md | 347 | def get_system_prompt_by_name(name): | CODE |
| LOW | docs/C6/案例2:人情世故大模型系统-天机.md | 363 | def combine_message_and_history(message, chat_history): | CODE |
| LOW | …se/knowledge_db/prompt_engineering/8. 聊天机器人 Chatbot.md | 31 | def get_completion_from_messages(messages, model="gpt-3.5-turbo", temperature=0): | CODE |
| LOW | notebook/C7 高级 RAG 技巧/2. 数据处理/generate_qa_pairs.py | 107 | def docs_generate_pdf_qa_pairs( | CODE |
| LOW | notebook/C3 搭建知识库/sparkai_embedding.py | 58 | def _make_embedding_request_with_retry(self, text_data): | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | notebook/C4 构建 RAG 应用/zhipuai_llm.py | 142 | CODE | |
| LOW | notebook/C3 搭建知识库/sparkai_embedding.py | 78 | CODE |