Schillace法则:使用LLM创建软件的最佳实践

发布时间 2023-03-29 10:54:38作者: 宵伯特

The astronaut standing on the surface of the moon sees the earth rising over the sun, in panoramic view, Screen printing style. --ar 2:1 via Midjounery

LLM(大语言模型)的发展正在改变软件开发的方式。

以前,开发人员需要编写大量的代码来实现其意图,但现在,随着语言模型的发展,开发人员可以使用自然语言来表达他们的意图,而无需编写大量的代码。这使得软件开发更加高效和灵活,同时也降低了开发人员的工作量。LLM的发展将极大地改变软件开发的方式,使软件开发更加人性化和可持续。

在LLM的世界里,开发人员可以更加专注于软件的核心业务逻辑,而不是被迫处理各种琐碎的技术实现细节。这样的转变不仅提高了开发人员的效率和工作质量,也使得软件开发更加快速和灵活。另外,LLM的发展也为非专业人士提供了参与软件开发的机会,这将极大地拓展软件开发的人才池,为软件开发的未来带来更多的可能性。

从GPT-4的使用经验,微软副首席技术官Sam Schillace总结出来了9条使用LLM创建软件的原则,这就是Schillace法则。

1. Don’t write code if the model can do it; the model will get better, but the code won’t.

若模型能胜任编写任务,便勿需动手;模型会不断提高,而代码则无法如此。

2. Trade leverage for precision; use interaction to mitigate.

以精准为代价,换取更高的杠杆;借助互动缓解风险。

3. Code is for syntax and process; models are for semantics and intent.

代码用于语法和过程;模型用于语义和意图。

4. The system will be as brittle as its most brittle part.

系统的脆弱程度取决于最脆弱的部分。

5. Ask Smart to Get Smart.

问得越好,答得越好。

6. Uncertainty is an exception throw.

不确定性是抛出的异常。

7. Text is the universal wire protocol.

文本是一种通用的数据传输协议。

8. Hard for you is hard for the model.

对于你来说困难的,对于模型也是困难的。

9. Beware "pareidolia of consciousness"; the model can be used against itself.

当心"意识的错觉",模型可以用来反过来攻击自身。


参考资料

  1. Schillace Laws of Semantic AI

  2. Early Lessons From GPT-4: The Schillace Laws


  1. 题图由Midjounery提供:The astronaut standing on the surface of the moon sees the earth rising over the sun, in panoramic view, Screen printing style. --ar 2:1
  2. 文章内容由Notion AI协作