Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Enable managed identity for postgres vectore store with pgvector #1077

Unanswered
asindarov asked this question in Q&A
Discussion options

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:

 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.

Thanks

You must be logged in to vote

Replies: 0 comments

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant

AltStyle によって変換されたページ (->オリジナル) /