Posts

Showing posts with the label azure

Generating Structured Code Using Azure, OpenAI and .NET

Image
Introduction This will be the first post on AI that I write, which is really a shame, as it's such an interesting and vast topic; you should expect more in the future! This time I'm going to talk about code generation from inside .NET using OpenAI  and it's Azure integration , in a structured way. As you know, code generation is one of the typical usages for Large Language Models (LLMs); it is part of what is called generative AI . It essentially works out of the box, but we can tweak it to be more useful. In this post I’ll show how we can get multiple files in response to a prompt. We will use Azure, but all the concepts are really from OpenAI. Let's start from the beginning. Setting Up OpenAI in Azure From the Azure portal , start by creating a new resource of type Microsoft Foundry  (it supports OpenAI  and others): QIf you need more info on this operation, please have a look here . You can now see it in the dashboard page: The end...