After my last experiment using ChatGPT to help generate questions pertaining to their consultation with the doctor, I continued my experiment. In this post, I'll take you through my journey of using different prompts to generate multiple questions from various individuals who may be patients or caregivers seeking consultation with an ophthalmologist.

Previously, I thought I'd keep using the same prompt over and over again to get different question each time. So, that was good reuseability. I unlocked an endless stream of questions.

Then, I thought I could make more productive. Ask for more questions to be generated each time and providing the response in a table format. OK, it was pretty but it wasn't in the rows and I wanted but I was happy with the format. Anyway, it started a bit of hallucination including asking about glaucoma.

I decided bring it back on track to focus on just 'cataract' issuesI got some patients or caregiver to question in Singlish too.

I got some patients or caregiver to question in Singlish too.

Chinese response in table works well too.

Then, it's time to let the doctor deal with multi-lingual so I further exploring the capabilities of prompt engineering. I requested questions in different languages. ChatGPT effortlessly generated questions in English, Singlish, Chinese, Cantonese, and Malay, catering to a wider audience and embracing linguistic diversity.

If I needed to get the response in CSV file which I can use later, I could rework the way I want my output.

Another possibility is to get it in JSON output if you want to process it like that.

Want a lazy way to keep the responses to database table. Just tell it to create the SQL statements and you can copy that and run it to insert into the database table.

The rest here is sort of my lesson learned written with the help of ChatGPT as prompted by me and revised by me.

The focus of this exploration is the fascinating world of prompt engineering and how it can direct responses in different languages and formats. One of the most significant benefits of prompt engineering is its ability to transcend language barriers.

In the dynamic world of prompt engineering, I think our journey doesn't end here. It's an ongoing process of experimentation, refinement, and discovery. As we continue to explore and refine prompts, we unlock new possibilities for generating even more nuanced and context-specific questions.

Some of the prompts were inspired by what I learned in the free course on ""ChatGPT Prompt Engineering for Developers"". Thanks to the people at DeepLearning.AI who made this course. If your are interested to check it out, go to:

https://www.deeplearning.ai/short-courses/chatgpt-prompt-engineering-for-developers/

See my other posts at:

https://scorum.co/en-gb/profile/@ace108