南宫的AI小栈

In a lifelong dance, we gracefully confront our fantasies.

For anybody who would actually read this. You may have to know that this whole page is translated by ChatGPT. I only present it as an example template for bilingual posts. So, if you felt something wrong, I am so sorry about that.

Introduction

It’s been almost a year since I left my job and started exploring artificial intelligence and AIGC (Artificial Intelligence Generated Content). In my view, the emergence of ChatGPT is indeed epoch-making. It has lowered the barrier to using artificial intelligence and made it more widespread. However, I firmly believe that AI or AIGC is not as powerful as most marketing claims suggest.

Today, with no internet at home, I decided to write my first blog post from a very unprofessional perspective. I’ll talk about my views on current artificial intelligence, or AIGC. Please note the emphasis on very unprofessional; for more on my lack of expertise, see the “About Me” section in the top right corner. This blog post is simply to share my views and some practical experiences.

GAI

Generative AI refers to a class of artificial intelligence algorithms that generate new outputs based on trained data. Unlike traditional AI systems aimed at identifying patterns and making predictions, generative AI creates new content in forms like images, texts, and audio. Source

Currently, when we talk about AI, we’re actually referring to Generative Artificial Intelligence, or GAI. GAI is a general-purpose AI that generates content from a database based on large data training, as opposed to traditional AI, which has more specific tasks. However, the reason I tagged this article “AI is not strong” is not just because I found that advanced use of GAI involves writing code, but also because using GAI well demands considerable knowledge and skills from the user, not just in computing, but also in understanding and mastering a specific field.

Interaction with Graphical Interface

The basic operation of GAI can be done mostly through a graphical user interface. Popular tools like ChatGPT, Midjourney, Stable Diffusion, and domestic ones like Wenxin Yiyi don’t require command line usage. Thus, GAI is much more accessible than traditional AI, giving us ordinary people the opportunity to use artificial intelligence.

Advanced Operations

However, graphical interfaces are generally limited to basic operations. Advanced use of tools like ChatGPT and Stable Diffusion requires command line usage and coding.

Professional Knowledge and Its Impact on GAI

I intended to quote some of my conversations with ChatGPT here, but I accidentally deleted all the dialogues while testing a new plugin a few days ago. So I’ll try to describe it in words. Additionally, ChatGPT’s Chinese interaction and understanding capabilities were significantly improved only after the update in November 2023. Therefore, many interactions mentioned in this article are based on English.

OpenAI - ChatGPT - 3.5 based

Start: When ChatGPT just became popular, I was in a low period. Curious about this tool that interacts in natural language and supposedly trained on data from the entire internet, I wondered if it could serve as a psychotherapist to help me out.

Continue: Speaking directly to ChatGPT about my problems yielded purely motivational responses, lacking in professionalism. Regenerating responses ten times, about eight were motivational, with only two slightly professional.

Turn: This was a big difference from what I had heard, so I started researching and learned about writing prompts. So, I tried:

You will act like a psychologist. I am feeling frustrated recently.

You will act like a psychological counsellor. I am feeling frustrated recently.

You will act like a mental health advisor. I am feeling frustrated recently.

The professionalism improved a lot, really professional. BUT it turned into a popular science person, giving me a lot of professional knowledge I almost forgot, some of which I had to look up in books to verify.

Combine: Okay, then continue iterating:

I need you to act like a psychologist, specializing in mental health advice. You should use your knowledge of cognitive behavioral therapy, meditation techniques, mindfulness practices, and other therapeutic methods in order to create strategies to help an individual looking for guidance and advice on managing their emotions, stress, anxiety, and other mental health issues.And I am feeling frustrated recently.

This response was very professional and targeted. But it was only correct, not to mention good. Because my description was too simple, and venting itself is an important part of the counseling process. So, keep iterating:

I need you to act like a psychologist, specializing in mental health advice. You should use your knowledge of cognitive behavioral therapy, meditation techniques, mindfulness practices, and other therapeutic methods in order to create strategies to help an individual looking for guidance and advice on managing their emotions, stress, anxiety, and other mental health issues. You should ask as many questions as necessary to gather information for developing the treatment plan in order to develop strategies and plans that the individual can use to improve their overall wellbeing. Interact with the user as many times as possible to gather the necessary information before giving advice or generating the treatment plan. And I am feeling frustrated recently.

This time it was really good, not only very professional and targeted, but it also asked questions and interacted. Those interested can modify the last sentence and try it out. But please note!!! It cannot replace a psychotherapist or psychiatrist and can only provide suggestions and guidance for general psychological problems. If you feel uncomfortable, ineffective, averse, or need help, be sure to contact a professional immediately!

Reflection

First, to summarize the final product, this prompt as an assistant psychotherapist is fully qualified. Both the communication process and the advice given are worth 80 points for common psychological problems encountered by ordinary people. Of course, for serious psychological issues, it definitely can’t help. But this simple prompt took me about three to five hours to develop, equivalent to three years of undergraduate study in applied psychology. So, is GAI useful? I think the answer is yes.

But, of course, there’s an inevitable twist. Because I accidentally cleared the conversation, I only extracted the most important three iterations from the preserved prompts. However, it’s not hard to see the professional knowledge required to write a prompt:

  1. Knowing the difference between a psychotherapist, a psychological therapist, and a psychiatrist;
  2. Knowing the skills a psychotherapist should have. For example, in my prompt, I chose cognitive behavioral therapy, meditation, and mindfulness techniques because these techniques are more versatile and inherently step-by-step. In contrast, humanistic, psychoanalytic, and mirroring therapies are too subjective, requiring the full cognitive ability of the therapist as a person. (Yes, I tried these subjective therapies around iterations 1.6-1.7);
  3. Knowing what a psychotherapist should do. It’s not just about letting ChatGPT ask proactively, but also about collecting necessary information. (Iterated about ten to twenty times)

Final Words

Recently, due to various issues in work and life, I’ve also fallen into a state of intense anxiety. I always feel that AI is developing too fast, and I can’t keep up, fearing I’ll be left behind by the world 🙄! A chance occurrence calmed me down a bit and made me, someone severely lacking in execution, decide to start blogging and creating content.

I chose this topic for my first post because I think GAI is very useful, a very powerful auxiliary tool. But it’s not as amazing as marketed, and most people don’t need to feel huge anxiety over the ubiquitous AI. Actually, there’s a lot more I want to write about, like my exchange with my supervisor about whether AI is artificial intelligence or artificial idiocy, fun facts about raw images from Stable Diffusion, and more. But my neighborhood is undergoing renovation recently, with intermittent water and power outages and internet disconnections. So, I’ve decided to make these topics a series, starting with my first blog post.

From my student days to my teaching career, a lot of knowledge and skills have evolved and been updated. But one thing my mentors taught me, and I taught my students, is the difference between methodology and method. Methodology indicates which method to use and why, while method refers to how to do something specifically. Methodology

One of the main reasons I started this blog and subsequent content creation is the hope that someone might gain some inspiration from what I share. Not just what I do, but also why I do it and my thought process, hoping that at least one of these aspects can inspire others.

Therefore, my articles may contain a lot of “nonsense,” because I believe that actions (methods) and motives (methodologies) are always equally important.

To be continued

前言

  离职之后开始接触人工智能和AIGC的内容已经有快一年的时间了。在我看来ChatGPT的出现确实是具有划时代的意义,它让人工智能使用的门槛变低了也变得更加普及化了。可是我也坚定地认为,AI或者AIGC并没有大部分营销号宣传的那么强大。

  正好今天家里断网,我就从一个非常不专业的角度来写下我的第一篇博客。聊一聊我对当下人工智能或者说AIGC的看法吧。请注意划重点非常不专业,有多不专业详情请见右上角“关于我”。这篇博客仅仅是说说我的看法以及一些实践体会。

GAI

生成式AI(Generative AI)是指一类人工智能算法,它根据训练过的数据生成新的输出。与旨在识别模式和做出预测的传统人工智能系统不同,生成式人工智能以图像、文本、音频等形式创建新内容。Source

  目前我们所说的AI其实指的是Generative Artificial Intelligence,也就是生成式人工智能。GAI是基于大数据的训练后从数据库从生成内容的泛任务化的人工智能。传统AI与之相比任务的指向性更强一些。话虽如此,我之所以tag这篇文章“AI不强”是不仅仅是因为我发现GAI的进阶使用会涉及到代码编写而且要用好GAI对使用者作为一个人的知识、技能等能力的要求是不低的,我指的并不是和计算机相关的知识技能而是对某一个专业的了解和掌握程度。

交互式界面的操作

  GAI的基本操作绝大部分都是可以通过图形化操作界面完成的,像热门的ChatGPT、Midejourny、Stable Diffusion还有国内的文心一言等等的操作使用并不需要使用命令行。因此GAI的使用门槛比传统AI低了很多,也让我们这些普通人有了使用人工智能的机会。

进阶操作

  但是相对而言,图形化操作界面也仅仅能完成基本的操作。ChatGPT、Stable Diffusion等的进阶操作不仅需要使用命令行,还需要编写代码。

专业知识对GAI的影响

  这一段本应该引用一些我和ChatGPT的对话的,但是前几天试用一个新插件的时候意外的删除了所有的对话。所以只能尽量用语言来描述这件事了。另,ChatGPT的中文交互和理解能力截至2023年11月的那次更新后才有明显改善。所以本文提到的很多交互都是基于英文的。

OpenAI - ChatGPT - 3.5 based

   ChatGPT刚火起来时,我正处于一个低潮期。对于这个可以自然语言交互而且据说训练用的数据库是来自整个互联网的,我就很好奇它能否作为一名心理咨询师为我排忧解难。

   直接向ChatGPT诉说我的问题,得到的回答完全是“心灵鸡汤”,一点专业性都没有。Regenerate十次, 大概8次心灵鸡汤加上两次稍微有点专业性。

   这和网传的差别太大,我就去搜集资料学习,才知道还要写prompt。好吧那就试试看:

You will act like a psychologist. I am feeling frustrated recently.

You will act like a psychological counsellor. I am feeling frustrated recently.

You will act like a mental health advisor. I am feeling frustrated recently.

  专业性强了很多,真的很专业。但是变成了科普人,给我科普了一大推我都快忘了的专业知识,有一些我还得去翻一下书才知道它有没有瞎说。

   好吧,那就继续迭代:

I need you to act like a psychologist, specializing in mental health advice. You should use your knowledge of cognitive behavioral therapy, meditation techniques, mindfulness practices, and other therapeutic methods in order to create strategies to help an individual looking for guidance and advice on managing their emotions, stress, anxiety, and other mental health issues.And I am feeling frustrated recently.

  这次给出的回答专业性很强,指向性也很强。但是只能说无错,谈不上对更谈不上好。因为我的描述太简单,而且倾诉本身在咨询过程中也是一个很重要的环节。所以继续迭代呗:

I need you to act like a psychologist, specializing in mental health advice. You should use your knowledge of cognitive behavioral therapy, meditation techniques, mindfulness practices, and other therapeutic methods in order to create strategies to help an individual looking for guidance and advice on managing their emotions, stress, anxiety, and other mental health issues. You should ask as many questions as necessary to gather information for developing the treatment plan in order to develop strategies and plans that the individual can use to improve their overall wellbeing. Interact with the user as many times as possible to gather the necessary information before giving advice or generating the treatment plan. And I am feeling frustrated recently.

  这次就很好了,不仅专业性很强、指向性很准,而且会问问题会交互了。想试试的同学可以直接改掉最后一句拿去玩儿了。   但是请注意!!!它并不能代替心理咨询师或者精神科医生,仅能为一般心理问题提供建议和指导。如果感到不适、无效、反感或者需要求助,请务必立刻联系专业人士!

思考

  首先总结一下成品的效果,这个prompt最终作为一个助理心理咨询师是完全合格的。无论是交流的过程还是给出的建议,针对普通人会遇到的一般心理问题的建议和指导给个80分不为过。当然如果是严重心理问题以上的,它肯定帮不了你。但是这一个简单的prompt,当时花了我大概三五个小时的时间,效果相当于一个应用心理学本科生的三年学习了。所以GAI好不好用,有没有用,我觉得答案是肯定的。

  但是,当然你会遇到一个不出意外的转折。因为意外清除了对话,所以我只从保留的prompt里面截取了最重要的三次迭代。可是从中不难看出撰写一个prompt所需要的专业知识: 1. 知道心理咨询师、心理治疗师和精神科医生的区别; 2. 知道一名心理咨询师应该会哪些技能。例如,在我的prompt里面我选择了认知行为疗法、冥想和正念技术,因为这些技术的泛用性更强并且这些疗法本身就是步进式的。相对而言人本主义、精神分析学派和镜像疗法等等的主观性就太强了,它们需要咨询师作为一个人的所有的认知能力的参与。(是的,在大约1.6 -1.7迭代的时候我试过这些主观疗法); 3. 知道一名心理咨询师该做些什么事。并不止让ChatGPT主动提问,还需要它收集必要的信息。(迭代了大约十次二十次吧)

写在最后的话

  最近因为工作和生活上的各种事情,我也陷入了很强的焦虑状态。总觉得AI发展的太快,完全追赶不上,我要被这个世界淘汰了🙄!一个偶然的事情让我稍微冷静了一点,也让我这个执行力严重欠缺的人决定开始写写博客做做自媒体。

  选择这样的一个主题开篇是因为我觉得GAI很好用,是非常非常强大的辅助工具。但是它也并没有营销中说的那么厉害,绝大部分人都不需要因为铺天盖地的AI而产生巨大的焦虑。其实还有很多想写的,例如我和硕导交流关于AI到底是人工智能还是人工智障的故事、Stable Diffusion生图的趣事等等。但是我家最近小区改造,不定期停水停电断网。所以决定把这些主题做成一个系列吧,先上传我的第一篇博客。

  从我的求学生涯到教学工作,有很多的知识和技能发生了迭代和更新。但其中有一样是我的师长们教给我,而我也教给我的学生们的。那就是方法论和方法的区别。方法论表明要用什么方法以及为什么用这个方法,而方法指的是具体的如何做一件事。. 方法论

  我开始做这个博客还有接下来的一些自媒体有很多原因,其中很重要的一个就是希望或多或少有人从我分享的东西中获得了一些启发。不仅仅是我做了什么还有我为什么这么做以及我的思路,至少其中的某一样可以给大家一点启发吧。

  因此,我的文章中大概有很多“废话”,那是因为我觉得行为(方法)和动机(方法论)永远是同等重要的。

To be continue


共享协议:CC BY-NC-ND 4.0

「我有一个梦想,如果每个中国人赏我一个大洋😏」

南宫的AI小栈

我有一个梦想,如果每个中国人赏我一个大洋😏

使用微信扫描二维码完成支付