/AiSamples

Various Samples of using AI in C#

Primary LanguageC#MIT LicenseMIT

AI Samples

In this Repo, we explore various AI Samples to learn to be successful with AI in C# and Semantic Kernel

Setup

Most of these Samples rely on an Azure OpenAI Resource with the following to be set up with .NET User Secrets in the Shared Project (in the following format)

secrets.json

{
  "Endpoint": "todo", //URL of your Azure OpenAI Service
  "Key": "todo", //Key of your Azure OpenAI Service
  "ChatDeploymentName": "todo", //DeploymentName of your Azure OpenAI Chat-model (example: "gpt-4o-mini")
  "EmbeddingModelName": "todo", //[Optional] Embedding Model for RAG (example: "text-embedding-ada-002")
  "AzureAiFoundryAgentEndpoint" : "todo", //[Optional] Endpoint for the Azure AI Foundry Agents (if you wish to test those demos)
  "AzureAiFoundryAgentId" : "todo", //[Optional] ID of your agent for the Azure AI Foundry Agents (if you wish to test those demos)
  "BingApiKey" : "todo" //[OPTIONAL] If you wish to use BingSearch in AI Agents
}

Samples:

How-to Guides

Video Material

For more AI Tutorials and videos, please see my YouTube Channel