Skip to content

Latest commit

 

History

History
 
 

03-SimpleRag

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Simple RAG chat

This sample demonstrates how to create a chat bot that performs basic RAG with V1 of Semantic Kernel.

Prerequisites

Configuring the sample

Configure an Azure OpenAI endpoint

cd ./dotnet/samples/03-SimpleRag

dotnet user-secrets set "AzureOpenAI:Gpt35TurboDeploymentName" "gpt-35-turbo"
dotnet user-secrets set "AzureOpenAI:Gpt4DeploymentName" "gpt-4"
dotnet user-secrets set "AzureOpenAI:Endpoint" "... your Azure OpenAI endpoint ..."
dotnet user-secrets set "AzureOpenAI:ApiKey" "... your Azure OpenAI key ..."
dotnet user-secrets set ""Bing:ApiKey" "... your Bing key ..."

Running the sample

cd ./dotnet/samples/03-SimpleRag

dotnet run