Skip to content

A Retrieval Augmented Generation System using Semantic Kernel and a Vector Database.

Notifications You must be signed in to change notification settings

KuijpersNick0/RAG_System

Repository files navigation

Prerequisites

Using .NET Secret Manager

Configure an OpenAI endpoint

cd RecommandationSystem

dotnet user-secrets set "Global:LlmService" "OpenAI"

dotnet user-secrets set "OpenAI:ModelType" "chat-completion"
dotnet user-secrets set "OpenAI:ChatCompletionModelId" "gpt-3.5-turbo"
dotnet user-secrets set "OpenAI:ApiKey" "... your OpenAI key ..."
dotnet user-secrets set "OpenAI:OrgId" "... your ord ID ..."

Configure an Azure OpenAI endpoint

cd RecommandationSystem

dotnet user-secrets set "Global:LlmService" "AzureOpenAI"

dotnet user-secrets set "AzureOpenAI:DeploymentType" "chat-completion"
dotnet user-secrets set "AzureOpenAI:ChatCompletionDeploymentName" "gpt-35-turbo"
dotnet user-secrets set "AzureOpenAI:ChatCompletionModelId" "gpt-3.5-turbo-0613"
dotnet user-secrets set "AzureOpenAI:Endpoint" "... your Azure OpenAI endpoint ..."
dotnet user-secrets set "AzureOpenAI:ApiKey" "... your Azure OpenAI key ..."

Running the sample

After configuring the sample, to build and run the console application just hit F5.

To build and run the console application from the terminal use the following commands:

dotnet build
dotnet run

RAG_System

RAG_System_V2

About

A Retrieval Augmented Generation System using Semantic Kernel and a Vector Database.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published