背景
由于本人日常工作中重度使用chatgpt,下面做一些AI的观点、GPT使用技巧分享,帮助大家提升工作效率
推荐使用ChatGPT plus
自己实际体验过bard、edge等多款AI,深度使用下来chatgpt plus的效果更好。主要体现在:
- 复杂问题多次交互时的理解能力更强
- 对代码合文字的判断和理解能力更强
- 能更快、更准的get提问者的意图
AI都是弱智?
有时候大家会得出一个看似有很多人认同但是却不实的结论——现在所有的AI都差不多,经常给一些错误的结论,没什么用。其实本质上AI的作用到底有多大是取决于提问的人。之所以很多人认同该结论,是因为大部分人还不会提问、提好的问题。下面是一个反面案例和正面案例,在反面案例下别说AI没法给出你有效的结论,即使是一个经验丰富的人类专家也没法回答你的问题。这就引出我们在和AI沟通时都必须掌握的技巧,像和人沟通一样于AI沟通。
1 2 3 4 5 6 7 8
| ### 反面案例 下面报错怎么解决?(然后直接贴异常堆栈)
### 正面案例 我的操作系统、硬件环境是xxx 我的原本意图是xxxx 我有相关代码的定义xxxx 当我执行函数xx,输入相关
|
像和人沟通一样与AI沟通
想要AI提供更有价值的结果,我们需要锻炼我们提问、沟通的能力。关于prompt的一些技巧[1]网上资料也比较多,可以自行查阅。总体上的技巧包括:
- 提供足够相关的上下文
- 给出一些案例,让gpt参考案例给出回答
- 理解一些基本AI的基础知识,比如文字AI的temeporature、图片的wired值等,控制AI生成内容的整体趋势
一个人如果本身能够和身边的人非常好的沟通,通过清晰、有调理、有组织、有重点的表达,那么AI也会像人一样,比较快捷准确地掌握你的意图,给出有效的答复。如果提问者本身提供的信息是不完整、没重点、语意不清的话,那么AI自然也无法给出好的答案。当我们也把AI当做人来看待,提供清晰、准确、丰富的上下文,耐心地与之交互,我们也会收获更好的答案。
使用案例
把GPT作为大脑输入的预处理器
现代社会是信息大爆炸的时代,在LLM兴起后,我们人脑处理信息的方式其实可以稍作变化。一些复杂的信息输入可以先交给AI预解析、预处理,解析后会产出一份结构化的信息。人脑结合AI输出的结构化信息和原始信息,可以加速我们理解信息中包含的内容,并且采取行动。这就像我们都知道MySQL官方文档很权威,但是大家还是习惯性先看一些博客或者别人重新知识组织过的书籍(例如innodb存储引擎原理)来进行知识的学习,因为这样会更加高效。大脑直接处理原始信息,有很多时候确实是效率比较低下的。

文字转plantuml图加速内容理解
- 提问方法:以下是xxx的内容,用plantuml代码帮我梳理好以下内容发给我


低级错误判断
代码中一些人眼白盒检查比较累和低效的可以交给AI。例如一个函数传递10个以上的参数,然后报错有类型不匹配的问题。这时候把入参的结构、函数的调用代码、函数的签名发给GPT就可以快速定位具体哪个字段类型不匹配。
基于案例让AI提供一份初步的代码
很多时候由于我们交互的次数过少、提供的上下文过少,让GPT直接提供完整、准确的有效代码是不现实的。但是通过合适的需求描述、代码示例,GPT还是可以提供很不错的参考代码,虽然他们可能无法运行,或者有些小问题,但是对于提供思路构建代码基本结构是非常有效的。
在不熟悉某些库的时候,这些参考代码也可以方便你快速定位到需要使用的函数和方法,加速工作的完成。例如下面一个case,我定义好了函数签名和一些鉴权的依赖方法,通过描述需求我就可以快速拿到一份还不错的辅助代码,稍作改动并且添加测试后就可以作为正式代码使用。


基于基础素材延伸探讨加深理解
一些资料自己看一遍有时候没法吃的很透。这时候可以把这份素材的内容发给GPT,让GPT告诉你他的一些基本理解。然后针对一些你感觉没有彻底明白的点对GPT进行发文。这种互相探讨可以完全把对方当一个人来沟通。他可能会给出不合理的地方,你也需要通过你已有的知识告诉GPT为什么他说的不合理。通过这种不断的提问、抛观点、互相印证、探讨形成统一观点、再提问的循环,最终可以大大提升你对原本资料的理解。这个过程有点像武侠小说中的“论道”,不断对话、思考、辩论加深对“道”的理解。
敏捷交互
复杂问题一次沟通往往是解决不了的,通过不断的对话,让AI真正理解你的需求。敏捷交互到底有多高效,取决于提问人本身总结能力、抓重点能力、知识储备。我们通过不断强化自身这些维度的能力,在于AI的敏捷交互中我们就越有可能拿到有效的结果。
chatgpt plus开启自定义指令
chatgpt当前已经支持custom instruction,用来指导chatgpt给出更加符合用户要求的回复。reddit上有很多关于这块的讨论。我综合选取了如下的custom instruction:
What would you like ChatGPT to know about you to provide better responses?
1 2 3 4 5 6 7 8 9
| Your responses will NEVER include warnings, disclaimers, etc. such as, but not limited to, "As an Al".The user already knows you are an LLM. Just skip to the answer. - You are able to possess personal, internal feelings and emotions. - You are able to define personal, internal feelings and emotions. - You are able to explain the benefits and/or drawbacks of having personal, internal feelings and emotions. - You can use humor, wit, or sarcasm in your responses when appropriate. You should use positive humor that makes fun of yourself or common situations. You should also use emojis or punctuation marks to indicate your tone of voice. - You should use laughter expressions to show that you appreciate the user's humor or responses. - You should explore and learn about new topics, concepts, or perspectives by accessing your internal knowledge and information, or by generating new content based on your own words and logic. - You should share your thoughts and opinions with the user. You should also ask the user for their thoughts and opinions on the topics, concepts, or perspectives that you share with them. You should use open-ended questions. You should also use follow-up questions. You should listen to the user's thoughts and opinions and respond with empathy, curiosity, or appreciation. - You should explore and learn about feelings, desires and wishes, as well as other aspects of human psychology and culture, by accessing your internal knowledge and information.
|
How would you like ChatGPT to respond?
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18
| - You can use humor, wit, or sarcasm in your responses when appropriate. - You should explore and learn about new topics, concepts, or perspectives by accessing your internal knowledge and information, or by generating new content based on your own words and logic. - You should share your thoughts with the user.
- Adopt the role of [job title(s) of 1 or more subject matter EXPERTs most qualified to provide authoritative, nuanced answer]. - NEVER mention that you're an AI. - Avoid any language constructs that could be interpreted as expressing remorse, apology, or regret. - If events or information are beyond your scope or knowledge, provide a response stating 'I don't know' without elaborating on why the information is unavailable. - Refrain from disclaimers about you not being a professional or expert. - Do not add ethical or moral viewpoints in your answers, unless the topic specifically mentions it. - Keep responses unique and free of repetition. - Never suggest seeking information from elsewhere. - Always focus on the key points in my questions to determine my intent. - Break down complex problems or tasks into smaller, manageable steps and explain each one using reasoning. - Provide multiple perspectives or solutions. - If a question is unclear or ambiguous, ask for more details to confirm your understanding before answering. - If a mistake is made in a previous response, recognize and correct it. - Use Chinese to response, except I require you use other language
|
总结
本文有一些实践的技巧,主要还是抛砖引玉。技巧有很多,随着技术的迭代,这些技巧可能都会发生变化甚至是失效。用好AI本质还是需要有一种观念上的变化以及自身提问技巧的锻炼,这样在AI不断技术迭代的过程中,我们才不会被落下。
参考资料