Forum Discussion
Bhavin163884
Jun 27, 2024Copper Contributor
Kernel Memory - Retrieval Augmented Generation (RAG) using Azure Open AI
Hello Community,
I am seeking for guidance here, Looking for Kernel Memory - Retrieval Augmented Generation (RAG) using Azure Open AI which can read file in kernel memory. I can ask question and based on memory it can answer my questions. I want to use .NetCore here for implementation.
I have referred below article but i did not found configuration related to Azure Open AI.
https://github.com/microsoft/kernel-memory/tree/main%22github.com%22
1 Reply
Try below steps:
- Set Up Your Environment: Ensure you have .NET Core installed and set up your development environment.
- Install Required Packages: You'll need to install the necessary packages for Kernel Memory and Azure Open AI. You can find these packages on NuGet or GitHub.
- Configure Kernel Memory: Use the configuration settings provided in the Kernel Memory repository to set up your project.
var builder = DistributedApplication.CreateBuilder(); builder.AddContainer("kernel-memory", "kernelmemory/service") .WithEnvironment("KernelMemory__TextGeneratorType", "OpenAI") .WithEnvironment("KernelMemory__DataIngestion__EmbeddingGeneratorTypes__0", "OpenAI") .WithEnvironment("KernelMemory__Retrieval__EmbeddingGeneratorType", "OpenAI") .WithEnvironment("KernelMemory__Services__OpenAI__APIKey", "your OpenAI key"); builder.Build().Run();
- Implement RAG: Use the Kernel Memory service to index your data and perform queries.