知识卡片

结构图卡 · 9394.c · 生成模型:GPT-6

预测服务由接口制品和缓存协作

理解等级:中级

结构图:

classDiagram
 class 请求契约 {文本或兼容嵌入}
 class 端点处理 {校验与错误响应}
 class 编码器 {版本化输入表示}
 class 分类头 {标签顺序及参数}
 class 模型制品 {摘要依赖及来源}
 class 结果缓存 {输入版本键及容量}
 class 响应契约 {标签分数和元数据}
 请求契约 --> 端点处理
 模型制品 --> 编码器
 模型制品 --> 分类头
 端点处理 --> 结果缓存
 端点处理 --> 编码器
 编码器 --> 分类头
 分类头 --> 响应契约
 结果缓存 --> 响应契约 : 仅有效命中

独立扩缩容不自动保证各组件的版本契约和错误处理一致。

这张卡片看不懂?

已有反馈 · 0 条

    还没有人提交反馈。

    在整书笔记中的位置

    原书出处 · 1 处

    • · 查看原书依据

      The prediction microservice handles API calls using FastAPI. It receives requests with a chat message at the /intent/ endpoint. The NLU microservice will then run the model to predict the confidence scores, returning that list of labels and confidence scores to the web application:

    参考来源

    - 位置:《Natural Language Processing in Action, Second Edition》附录E《附录E:容器化微服务部署》(来源项目:a19c7933-4eda-4176-aebd-30fe7e1ad292;源文件:extracted/Natural Language Processing in Action, Second Edition/_epub-src/OEBPS/Text/appendix-e.html) - 结论依据:摘录中关于预测服务由接口制品和缓存协作的定义、比较或条件支撑卡片;原书表述不严谨的范围已在覆盖记录逐项限定,不把案例结果外推为普遍结论。 - 原始内容:The prediction microservice handles API calls using FastAPI. It receives requests with a chat message at the /intent/ endpoint. The NLU microservice will then run the model to predict the confidence scores, returning that list of labels and confidence scores to the web application: