File tree 7 files changed +16
-14
lines changed
KernelMemory.DashScope.UnitTests
SemanticKernel.DashScope.UnitTest
7 files changed +16
-14
lines changed Original file line number Diff line number Diff line change @@ -37,7 +37,7 @@ Install Nuget package `Microsoft.KernelMemory.SemanticKernelPlugin`
37
37
"dashScope" : {
38
38
"apiKey" : " your-key" ,
39
39
"chatCompletionModelId" : " qwen-max" ,
40
- "textEmbeddingModelId" : " text-embedding-v2 "
40
+ "textEmbeddingModelId" : " text-embedding-v3 "
41
41
}
42
42
}
43
43
```
Original file line number Diff line number Diff line change @@ -15,7 +15,7 @@ public class DashScopeTextEmbeddingGenerator(
15
15
IDashScopeClient dashScopeClient ,
16
16
string modelId ,
17
17
ITextTokenizer ? tokenizer = null ,
18
- int maxTokens = 2048 )
18
+ int maxTokens = 8192 )
19
19
: ITextEmbeddingGenerator
20
20
{
21
21
/// <inheritdoc />
Original file line number Diff line number Diff line change @@ -17,8 +17,8 @@ public static class DependencyInjector
17
17
private const string DefaultTextModel = "qwen-max" ;
18
18
private const int DefaultTextModelMaxToken = 6000 ;
19
19
20
- private const string DefaultEmbeddingModel = "text-embedding-v2 " ;
21
- private const int DefaultEmbeddingModelMaxToken = 2048 ;
20
+ private const string DefaultEmbeddingModel = "text-embedding-v3 " ;
21
+ private const int DefaultEmbeddingModelMaxToken = 8192 ;
22
22
23
23
/// <summary>
24
24
/// Use default DashScope models (qwen-max and text-embedding-v2) and settings for ingestion and retrieval.
Original file line number Diff line number Diff line change 19
19
20
20
<ItemGroup >
21
21
<PackageReference Include =" Microsoft.DeepDev.TokenizerLib" Version =" 1.3.3" />
22
- <PackageReference Include =" Microsoft.KernelMemory.Abstractions" Version =" 0.70.240803.1 " />
23
- <PackageReference Include =" Cnblogs.DashScope.Core" Version =" 0.3 .0" />
22
+ <PackageReference Include =" Microsoft.KernelMemory.Abstractions" Version =" 0.76.240930.3 " />
23
+ <PackageReference Include =" Cnblogs.DashScope.Core" Version =" 0.4 .0" />
24
24
</ItemGroup >
25
25
26
26
<ItemGroup >
Original file line number Diff line number Diff line change 19
19
20
20
<ItemGroup >
21
21
<FrameworkReference Include =" Microsoft.AspNetCore.App" />
22
- <PackageReference Include =" Cnblogs.DashScope.Core" Version =" 0.3 .0" />
23
- <PackageReference Include =" JsonSchema.Net.Generation" Version =" 4.5.0 " />
24
- <PackageReference Include =" Microsoft.SemanticKernel.Core" Version =" 1.16.2 " />
22
+ <PackageReference Include =" Cnblogs.DashScope.Core" Version =" 0.4 .0" />
23
+ <PackageReference Include =" JsonSchema.Net.Generation" Version =" 4.5.1 " />
24
+ <PackageReference Include =" Microsoft.SemanticKernel.Core" Version =" 1.21.1 " />
25
25
</ItemGroup >
26
26
27
27
<ItemGroup >
Original file line number Diff line number Diff line change 14
14
<PrivateAssets >all</PrivateAssets >
15
15
<IncludeAssets >runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets >
16
16
</PackageReference >
17
- <PackageReference Include =" Microsoft.KernelMemory.Core" Version =" 0.70.240803.1 " />
18
- <PackageReference Include =" Microsoft.NET.Test.Sdk" Version =" 17.10.0 " />
19
- <PackageReference Include =" xunit" Version =" 2.9.0 " />
17
+ <PackageReference Include =" Microsoft.KernelMemory.Core" Version =" 0.76.240930.3 " />
18
+ <PackageReference Include =" Microsoft.NET.Test.Sdk" Version =" 17.11.1 " />
19
+ <PackageReference Include =" xunit" Version =" 2.9.2 " />
20
20
<PackageReference Include =" xunit.runner.visualstudio" Version =" 2.8.2" >
21
21
<PrivateAssets >all</PrivateAssets >
22
22
<IncludeAssets >runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets >
23
23
</PackageReference >
24
+ <PackageReference Update =" FluentAssertions" Version =" 6.12.1" />
24
25
</ItemGroup >
25
26
26
27
<ItemGroup >
Original file line number Diff line number Diff line change 4
4
<PrivateAssets >all</PrivateAssets >
5
5
<IncludeAssets >runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets >
6
6
</PackageReference >
7
- <PackageReference Include =" Microsoft.NET.Test.Sdk" Version =" 17.10.0 " />
8
- <PackageReference Include =" xunit" Version =" 2.9.0 " />
7
+ <PackageReference Include =" Microsoft.NET.Test.Sdk" Version =" 17.11.1 " />
8
+ <PackageReference Include =" xunit" Version =" 2.9.2 " />
9
9
<PackageReference Include =" xunit.runner.visualstudio" Version =" 2.8.2" >
10
10
<PrivateAssets >all</PrivateAssets >
11
11
<IncludeAssets >runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets >
12
12
</PackageReference >
13
+ <PackageReference Update =" FluentAssertions" Version =" 6.12.1" />
13
14
</ItemGroup >
14
15
<ItemGroup >
15
16
<ProjectReference Include =" ..\..\src\SemanticKernel.DashScope\SemanticKernel.DashScope.csproj" />
You can’t perform that action at this time.
0 commit comments