Kernel Memory and .NET Aspire #768
Closed
NikiforovAll
started this conversation in
3. Show and tell
Replies: 2 comments 1 reply
-
nice :-). One can also use |
Beta Was this translation helpful? Give feedback.
1 reply
-
Here's an example of KM with Qdrant: var builder = DistributedApplication.CreateBuilder(args);
var qdrant = builder.AddContainer("qdrant", "qdrant/qdrant")
.WithHttpEndpoint(targetPort: 6333)
.PublishAsContainer();
var qdrantEndpoint = qdrant.GetEndpoint("http");
builder.AddProject<Projects.Service>("kernel-memory")
.WaitFor(qdrant)
.WithEnvironment("KernelMemory__TextGeneratorType", "AzureOpenAIText")
.WithEnvironment("KernelMemory__DataIngestion__EmbeddingGeneratorTypes__0", "AzureOpenAIEmbedding")
.WithEnvironment("KernelMemory__DataIngestion__MemoryDbTypes__0", "Qdrant")
.WithEnvironment("KernelMemory__Retrieval__EmbeddingGeneratorType", "AzureOpenAIEmbedding")
.WithEnvironment("KernelMemory__Retrieval__MemoryDbType", "Qdrant")
.WithEnvironment("KernelMemory__Services__Qdrant__Endpoint", qdrantEndpoint)
.WithEnvironment("KernelMemory__Services__Qdrant__APIKey", "")
.WithEnvironment("KernelMemory__Services__AzureOpenAIText__Endpoint", "https://....openai.azure.com/")
.WithEnvironment("KernelMemory__Services__AzureOpenAIText__Deployment", "gpt-4o")
.WithEnvironment("KernelMemory__Services__AzureOpenAIEmbedding__Endpoint", "https://....openai.azure.com/")
.WithEnvironment("KernelMemory__Services__AzureOpenAIEmbedding__Deployment", "text-embedding-ada-002");
builder.Build().Run(); |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
https://nikiforovall.github.io/dotnet/ai/2024/09/04/typical-rag-dotnet.html
https://x.com/nikiforovall/status/1831242148533973289
Beta Was this translation helpful? Give feedback.
All reactions