Skip to content
cccskills
FreePublished on GitHub

ai-pipeline

应用从 AI for Everyone 蒸馏出的「AI流水线 — 多组件串联的系统设计模式」方法论。

Use when the user needs practical guidance, diagnosis, workflow design, decision support, or an action plan related to ai-pipeline.

The English summary is being prepared. Showing the original description.

Run score Not tested

See how to install

Files included (2)

  • SKILL.md5.1 KB
  • test-prompts.json4.1 KB

SKILL.md (original)

Review the instructions the agent will receive before you install.

Source Metadata

Original cangjie-skill frontmatter from the distillation run:

id: f19
title: "AI流水线 — 多组件串联的系统设计模式"
book: "AI for Everyone"
author: "Andrew Ng(吴恩达)"
source: p19, p20
tags: [system-design, pipeline, architecture, multi-module, error-propagation]
related_skills:
  - slug: ml-workflow, relation: composes-with
  - slug: ab-mapping, relation: depends-on

R — Reading(原文引用)

"像这样的AI系统四步或多步流程,有时称为流水线 — 多个AI组件协作,依次处理数据...像自动驾驶这样的复杂AI产品,需要多个AI组件协同工作。" — p19, p20

I — Interpretation(用自己的话重新阐述)

很多复杂AI产品无法用单个A→B映射解决,需要将问题分解为多个步骤,每个步骤是一个独立的A→B模块,这些模块串联起来形成流水线:

经典案例1:智能音箱

  1. 唤醒检测(音频→是否唤醒词)
  2. 语音识别(音频→文本)
  3. 意图识别(文本→用户意图)
  4. 命令执行(意图→执行动作)

经典案例2:自动驾驶

  1. 物体检测(传感器数据→物体位置)
  2. 运动预测(物体位置→未来轨迹)
  3. 路径规划(轨迹预测→行驶路径)
  4. 控制执行(路径→方向盘/油门/刹车)

关键洞察:误差累积

  • 如果每个模块准确率95%,4个模块串联后整体准确率只有 0.95^4 ≈ 81%
  • 这意味着单模块指标高≠系统整体好
  • 必须从端到端系统角度优化,而非只看单模块指标

A1 — Past Application(过去应用案例)

  • 智能音箱:早期智能音箱识别"设置一个计时器"这种简单指令经常出错。分析发现:唤醒成功率98%、语音识别96%、意图识别97%、执行99%,但端到端只有0.98×0.96×0.97×0.99≈90%。10%的错误率让用户体验很差。团队后来优化了最薄弱的环节(语音识别),整体体验大幅提升。

A2 — Future Trigger(未来触发条件)

触发场景:

  • 设计一个复杂AI产品,需要多个步骤/模块
  • 单模块指标都很高,但用户体验不好(可能是误差累积)
  • 需要将复杂AI问题分解为多个子问题
  • 多个团队协作开发一个AI系统

语言信号:

  • "多个AI模块"
  • "流水线"
  • "AI系统架构"
  • "模块串联"
  • "端到端"
  • "误差累积"
  • "复杂AI产品"

区分要点:

  • 是单个A→B问题还是多步骤问题?单个用ml-workflow,多个用本skill。
  • 关注系统设计还是流程管理?本skill面向系统设计。

E — Execution(执行步骤)

  1. 分解问题:将复杂AI问题分解为多个连续的A→B步骤。

  2. 绘制流水线:明确每个步骤的输入(A)和输出(B),以及步骤之间的数据流。

  3. 评估单模块性能:为每个模块设定独立的准确率/性能指标。

  4. 计算端到端性能:用乘法估算整体性能(各模块准确率的乘积)。

  5. 识别瓶颈:找到对整体性能影响最大的模块(通常是准确率最低的环节)。

  6. 优化策略:

    • 优先优化最薄弱的模块
    • 考虑在关键步骤增加冗余或人工兜底
    • 设计端到端的评估指标(而非只看单模块)
  7. 组织设计:每个模块可以由不同团队负责,但需要统一的接口规范和端到端测试。

完成标准:完成流水线架构图,明确各模块的A→B映射、接口规范和端到端性能指标。

B — Boundary(使用边界)

不适用场景:

  • 单一A→B映射能解决的问题(不需要流水线)
  • 模块之间没有顺序依赖(可以并行处理)
  • 系统复杂度低(2个以下模块)

失败模式:

  • 只看单模块指标,忽视端到端性能
  • 模块之间接口不规范,导致数据传递错误
  • 每个模块由不同团队优化,但没人对端到端结果负责
  • 过度设计流水线——能用一个模型解决的事,拆成三个模块

作者盲区:

  • Andrew Ng没有深入讨论模块之间的反馈回路——实际系统中,后一步的结果可能需要反馈给前一步(如语音识别错误时重新唤醒)。
  • 误差累积模型假设各模块独立,但实际上模块之间可能相关——一个模块的错误会影响下一个模块的输入分布。

相关 skills

  • ml-workflow — composes-with:AI流水线是ML工作流的扩展——每个模块内部遵循ML工作流(收集→训练→部署),多个模块串联形成流水线。两者结合覆盖从单模型到多模块系统的完整执行流程。
  • ab-mapping — depends-on:流水线中每个模块本质上都是一个A→B映射,理解ab-mapping是设计流水线的前提。

Reviews

No reviews yet. Tell others what you thought.

Comments

No login needed. Share how it worked for you, ask a question, or note where it did not run.

No comments yet. Be the first to write one.

Comments are published right away. Do not include personal information such as email addresses or phone numbers. Up to 2 URLs.

0 / 1,000 characters

This form is protected by reCAPTCHA, and the Google Privacy Policy and Terms of Service apply.

More skills from this repository

当用户想判断一个问题是否能用监督学习解决,或试图把业务问题转化为AI问题时调用。 用户在问"AI能不能做X"、"这算不算机器学习问题"、"我们的业务场景适合用AI吗"时使用。 不适用于: 纯数据分析洞察、无明确输入输出的探索性问题、聚类等非监督学习场景。

The English summary is being prepared. Showing the original description.

kangarooking/ai-for-everyone-skill38Updated Jul 3, 2026

应用从 AI for Everyone 蒸馏出的「AI项目生命周期 — 从立项到落地的完整流程」方法论。Use when the user needs practical guidance, diagnosis, workflow design, decision support, or an action plan related to ai-project-lifecycle.

The English summary is being prepared. Showing the original description.

kangarooking/ai-for-everyone-skill38Updated Jul 3, 2026

应用从 AI for Everyone 蒸馏出的「AI战略护城河 — 用AI构建可持续竞争优势」方法论。Use when the user needs practical guidance, diagnosis, workflow design, decision support, or an action plan related to ai-strategy-moat.

The English summary is being prepared. Showing the original description.

kangarooking/ai-for-everyone-skill38Updated Jul 3, 2026

应用从 AI for Everyone 蒸馏出的「AI团队构建 — 打造高效AI团队的角色与协作」方法论。Use when the user needs practical guidance, diagnosis, workflow design, decision support, or an action plan related to ai-team-building.

The English summary is being prepared. Showing the original description.

kangarooking/ai-for-everyone-skill38Updated Jul 3, 2026

应用从 AI for Everyone 蒸馏出的「AI转型五步指南 — 组织变革路线图」方法论。Use when the user needs practical guidance, diagnosis, workflow design, decision support, or an action plan related to ai-transformation-playbook.

The English summary is being prepared. Showing the original description.

kangarooking/ai-for-everyone-skill38Updated Jul 3, 2026

当用户想把某个岗位或流程自动化,需要把宏大目标拆解为具体可执行任务时使用。 用户在说"替代XX岗位"、"全自动"、"AI取代"、"把X工作交给AI"时激活。 不适用于: 岗位本身只有单一不可拆分的任务、需要整体流程自动化的场景、创意型工作。

The English summary is being prepared. Showing the original description.

kangarooking/ai-for-everyone-skill38Updated Jul 3, 2026

See all skills by kangarooking

Report a problem with this skill