Add Aspire integration #766
Closed
NikiforovAll
started this conversation in
2. Feature requests
Replies: 2 comments 9 replies
-
hi @NikiforovAll I'm not sure I understand what the work to do would be. Is there something stopping from running KM with Aspire? e.g. see #768 |
Beta Was this translation helpful? Give feedback.
8 replies
-
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.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Add Aspire integration for standalone mode.
Beta Was this translation helpful? Give feedback.
All reactions