Prompt IDE

来自WHY42
Riguz讨论 | 贡献2024年1月16日 (二) 05:00的版本

你是怎样调提示词的呢?这看起来是个再简单不过的问题,但对于开发者而言,一直缺乏一个趁手的工具。目前可以用的这些工具大致有以下的问题:

  • 可以同大模型聊天,但是不具备调参能力,例如ChatGPT、文心一言、ChatHub
  • 可以调参,但只支持特定的厂商,例如GPT Playground、Minimax体验中心等
  • 可以调参,也支持不同的厂商,功能也很强大,唯一缺点是不是原生的,如KPP
  • 啥都可以干,但是要写代码,例如LangChain

于是为了解决这个问题,能够更愉快地测试提示词,笔者撸了一个Vs Code插件——Prompt IDE。目前,尽管缺胳膊少腿,Prompt IDE初具雏形。在这个有趣的过程中,学习到了Vs Code插件开发的一些技巧,也对Vs Code的强大有了更深的认知,在这里简单总结一下。

项目起源

这个想法最初源自于公司2023年7月份的黑客马拉松活动,当时,笔者Solo了一个叫做”Prompt Native“的项目。什么是Prompt Native呢?有三层含义

The Three Meanings of “Native” Colud Native: Since it’s server side application, cloud-native is currently the best approach. Think about each prompt to be an independent small application (ie. an API), then it’s naturally a Function in FaaS. Native Editor: No fake editors, No notepad, we developers want a real editor. Better to have all the features that a programming language should have, including versioning, debugging, etc. Native Tooling: Will it be a good idea to use GPT to teach us on it’s own usage?

[1]