File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
docs/ai/how-to/snippets/semantic-kernel Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change 1- using Azure . Core ;
1+ using Azure . Core ;
22using Azure . Identity ;
33using Microsoft . Extensions . Configuration ;
44using Microsoft . SemanticKernel ;
@@ -94,7 +94,7 @@ static async Task AiSearchExample()
9494 // Build a SemanticMemoryStore with Azure AI Search as the store.
9595 // Must also include a text embedding generation service.
9696 ISemanticTextMemory memory = new MemoryBuilder ( )
97- . WithAzureOpenAITextEmbeddingGeneration ( embeddingModel , openAiEndpoint , credentials )
97+ . WithOpenAITextEmbeddingGeneration ( embeddingModel , openAiEndpoint )
9898 . WithMemoryStore ( memoryStore )
9999 . Build ( ) ;
100100 // </aiStore>
@@ -165,7 +165,7 @@ await ConnectionMultiplexer.ConnectAsync(redisConnectionString)
165165 // Build a SemanticMemoryStore with Azure AI Search as the store.
166166 // Must also include a text embedding generation service.
167167 ISemanticTextMemory memory = new MemoryBuilder ( )
168- . WithAzureOpenAITextEmbeddingGeneration ( embeddingModel , openAiEndpoint , credentials )
168+ . WithOpenAITextEmbeddingGeneration ( embeddingModel , openAiEndpoint )
169169 . WithMemoryStore ( memoryStore )
170170 . Build ( ) ;
171171 // </redisStore>
You can’t perform that action at this time.
0 commit comments