Upskilling: ChatGPT Prompt Engineering for Developers now in C#
Published May 25 2023 02:45 PM 11.3K Views
Microsoft

Like most developers today, I'm upskilling on the new Generative AI technologies like OpenAI's ChatGPT, Microsoft Bing Chat, GitHub Copilot, and the Azure OpenAI Service. The key to effectively using these technologies lies in crafting the right prompts. A prompt includes instructions that describe the desired output and provide context to the AI service.

ChatGPT Prompt Engineering for Developers.png

Writing effective prompts is a valuable skill, and it has even given rise to the role of a "Prompt Engineer." While you don't need to be a Prompt Engineer to use these technologies efficiently, understanding the different types of prompts is essential to unlock their full potential. To help with this, DeepLearning.AI offers a free course called ChatGPT Prompt Engineering for Developers. This course is highly recommended as it provides excellent descriptions and hands-on walkthroughs of various prompt types. The interactive samples in the course are implemented in Python using Jupyter Notebooks, which is a popular language in the AI space.

 

For those who want to use the samples with the Azure OpenAI service and the Azure OpenAI client library for .NET, I have ported the Python samples to C#. I am using the Polyglot Notebooks extension for Visual Studio Code to run the notebooks. The Polyglot Notebooks extension includes the .NET Interactive runtime, providing support for C# and .NET.

csharpnotebook.png

The notebooks are available on GitHub here: Azure OpenAI C# Prompt Engineering Samples.

Co-Authors
Version history
Last update:
‎May 26 2023 08:33 AM
Updated by: