You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
How can I use Azure managed Identity to connect to postgres pg vector when doing the embedding ? I have the following chunk of code:
PostgresConfig postgresConfig = new()
{
ConnectionString = configuration.GetConnectionString("DefaultConnection")
};
var memory = new KernelMemoryBuilder()
.WithAzureOpenAITextGeneration(chatConfig)
.WithAzureOpenAITextEmbeddingGeneration(embeddingConfig)
.WithAzureBlobsDocumentStorage(azureBlobsConfig)
.WithAzureAIDocIntel(azureAIDocIntelConfig)
.WithPostgresMemoryDb(postgresConfig)
.Build<MemoryServerless>();
I was able to use managed identity ith ef core but it seems semantic kernel postgres configuration does not support managed identity out of the box, or am I wrong there ? Please let me know if there is any better way of enabling managed identity without rolling my own IMemoryStore implementation.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
Hi,
How can I use Azure managed Identity to connect to postgres pg vector when doing the embedding ? I have the following chunk of code:
I was able to use managed identity ith ef core but it seems semantic kernel postgres configuration does not support managed identity out of the box, or am I wrong there ? Please let me know if there is any better way of enabling managed identity without rolling my own IMemoryStore implementation.
Thanks
Beta Was this translation helpful? Give feedback.
All reactions