AI English Shift · Lessons / E05
Serving, cost and operations
服务运行、成本与运维
Open the interactive lesson · 打开互动课程Operating an AI service means meeting user needs while managing variable demand, external dependencies, model changes, and failure recovery.
运营 AI 服务意味着在满足用户需求的同时,管理波动的请求量、外部依赖、模型变化和故障恢复。
AIサービスの運用は、需要変動、外部依存、モデル変更、障害復旧を管理しながら、利用者の需要を満たすことです。
Measure both the time to initial feedback and the time to a usable completed result, because streaming can improve one without improving the other.
应同时衡量用户收到首次反馈的时间,以及获得可用完整结果的时间,因为流式输出可能改善前者,却没有改善后者。
ストリーミングは片方だけを改善することもあるため、初期反応までと、使える結果の完成までを両方測ります。
A median hides the experience of the slowest users, so also inspect tail latency and timeout rates for representative tasks.
中位数会掩盖最慢那部分用户的体验,因此还应检查代表性任务的尾延迟和超时率。
中央値は特に遅い利用者の体験を隠すため、代表的な作業の遅い側の分布とタイムアウト率も確認します。
Batching can improve throughput but may delay individual results, which makes its suitability depend on the product's interaction pattern.
批处理可以提高吞吐量,但可能延迟单个结果的返回,因此是否适用取决于产品的交互方式。
バッチ処理は処理量を増やしても個々の結果を遅らせる場合があり、適性は製品の使われ方によります。
Caching can reduce repeated computation, while routing can select different processing paths for tasks with different needs.
缓存可以减少重复计算,而路由机制可以为需求不同的任务选择不同的处理路径。
キャッシュは繰り返す計算を減らし、ルーティングは必要性の異なる作業に別の処理経路を選べます。
Both mechanisms need evaluation because stale caches or incorrect routing can save money at the expense of answer quality.
这两种机制都需要评估,因为过时的缓存或错误路由可能以牺牲回答质量为代价节省费用。
古いキャッシュや誤った振り分けは品質を犠牲に費用を節約する場合があるため、どちらも評価が必要です。
Calculate cost using all attempts, tool charges and relevant review or recovery work, then divide by the successful outcome being measured.
计算成本时应计入所有尝试、工具费用,以及相关的审核或恢复工作,再除以所衡量的成功结果数量。
全試行、ツール料金、関連する確認や復旧を含めて費用を計算し、測定する成功成果数で割ります。
A canary release exposes a limited share of eligible traffic to a new version so the team can compare behavior before broader deployment.
金丝雀发布会把符合条件的一小部分流量导向新版本,让团队在扩大部署前比较实际表现。
カナリアリリースでは、新版を対象となる利用の一部に限定し、広く導入する前に動作を比較します。
The design must still identify who is exposed, what severe failures cause an immediate stop, and how users reach a fallback.
设计仍需明确哪些用户会接触到新版本、哪些严重故障会触发立即停止,以及用户如何进入备用方案。
それでも、対象者、即時停止につながる重大な失敗、代替手段への移り方を明確にする必要があります。
Preserve the versions of prompts, model settings, source indexes and graders used in important comparisons.
应保留重要比较中使用的提示词版本、模型设置、来源索引版本和评审器版本。
重要な比較で使ったプロンプト、モデル設定、出典索引、採点者の版を保持します。
Rolling back code may not undo external actions already performed, so recovery plans must account for the actual side effects.
回滚代码不一定能撤销已经执行的外部操作,因此恢复计划必须考虑实际产生的副作用。
コードを戻しても実行済みの外部操作は取り消せない場合があるため、復旧計画は実際の影響を考慮します。
Operational readiness means that someone can detect degradation, explain its scope, stop harmful behavior, and restore a useful service.
做好运行准备,意味着有人能够发现服务退化、说明影响范围、停止有害行为,并恢复有用的服务。
運用の準備が整うとは、悪化を検知し、範囲を説明し、有害な動作を止め、有用なサービスへ戻せる担当がいることです。
Key terms
- Prefix cache: A provider mechanism that reuses eligible computation for a shared beginning of model input.
- Streaming: Delivering output incrementally as it becomes available.
- Latency: Elapsed time for a precisely defined stage or outcome, such as first output or completed task.
- Cost per successful task: Total relevant cost, including failed attempts, divided by successfully completed tasks.
- Rollback: Restoring a previous version or process after a problematic change.
- Monitoring: Ongoing observation of system behavior, quality and operational signals after deployment.