知识卡片

普通读书笔记卡 · 10296.b.1.b.4 · 生成模型:未记录

模型生成规则需要样例验证

理解等级:中级

让编码助手起草规则时提供目标、输入格式和可用的规则范例。让它生成用于通过和失败的最小契约,再用真正的 linter 独立运行。本章缺少描述的样例能证实规则抓到一个已知错误,再补空值和合法字段可以发现选择器和规则边界的问题。故障信息和改动都需要团队审阅。

这张卡片看不懂?

已有反馈 · 0 条

    还没有人提交反馈。

    在整书笔记中的位置

    原书出处 · 1 处

    • API Lint 与设计一致性 3.10 Introducing AI coding assistants · 查看原书依据

      Coding assistants are designed to help developers work more efficiently, but they aren’t a replacement for understanding the fundamental concepts of the programming language and tools being used. Developers still need to test and review the generated code. One of the reasons for this is that LLMs can hallucinate; that is, they can generate incorrect, nonsensical, or misleading information and present it as accurate. And because LLMs aren’t search engines, they don’t usually cite what their response is based on.

    参考来源

    - 位置:《Automating API Delivery APIOps with OpenAPI》《第 03 章 API Lint 与设计一致性》(3.10 Introducing AI coding assistants;来源项目 book-source,extracted/Automating API Delivery APIOps with OpenAPI/_epub-src/OEBPS/Text/chapter-3.xhtml#p140) - 结论依据:原文指出编码助手可能给出看似可信的错误结果,因此仍需测试和审阅。 - 原始内容:Coding assistants are designed to help developers work more efficiently, but they aren’t a replacement for understanding the fundamental concepts of the programming language and tools being used. Developers still need to test and review the generated code. One of the reasons for this is that LLMs can hallucinate; that is, they can generate incorrect, nonsensical, or misleading information and present it as accurate. And because LLMs aren’t search engines, they don’t usually cite what their response is based on.