File tree Expand file tree Collapse file tree 2 files changed +7
-7
lines changed
docs/ai/how-to/snippets/semantic-kernel Expand file tree Collapse file tree 2 files changed +7
-7
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>
Original file line number Diff line number Diff line change 1111
1212 <ItemGroup >
1313 <PackageReference Include =" Azure.Extensions.AspNetCore.Configuration.Secrets" Version =" 1.3.2" />
14- <PackageReference Include =" Azure.Identity" Version =" 1.12 .0" />
14+ <PackageReference Include =" Azure.Identity" Version =" 1.13 .0" />
1515 <PackageReference Include =" Microsoft.Extensions.Configuration" Version =" 8.0.0" />
1616 <PackageReference Include =" Microsoft.Extensions.Configuration.EnvironmentVariables" Version =" 8.0.0" />
17- <PackageReference Include =" Microsoft.Extensions.Configuration.UserSecrets" Version =" 8.0.0 " />
18- <PackageReference Include =" Microsoft.SemanticKernel" Version =" 1.17.2 " />
17+ <PackageReference Include =" Microsoft.Extensions.Configuration.UserSecrets" Version =" 8.0.1 " />
18+ <PackageReference Include =" Microsoft.SemanticKernel" Version =" 1.24.1 " />
1919 <PackageReference Include =" Microsoft.SemanticKernel.Connectors.AzureAISearch" Version =" 1.9.0-alpha" />
2020 <PackageReference Include =" Microsoft.SemanticKernel.Connectors.Redis" Version =" 1.9.0-alpha" />
2121 <PackageReference Include =" Microsoft.SemanticKernel.Plugins.Memory" Version =" 1.9.0-alpha" />
22- <PackageReference Include =" StackExchange.Redis" Version =" 2.8.0 " />
22+ <PackageReference Include =" StackExchange.Redis" Version =" 2.8.16 " />
2323 </ItemGroup >
2424
2525</Project >
You can’t perform that action at this time.
0 commit comments