Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

.Net: Bump Cosmos package and use built-in serializer #8616

Merged
merged 6 commits into from
Sep 12, 2024
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion dotnet/Directory.Packages.props
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@
<PackageVersion Include="YamlDotNet" Version="15.3.0" />
<PackageVersion Include="Fluid.Core" Version="2.11.1" />
<!-- Memory stores -->
<PackageVersion Include="Microsoft.Azure.Cosmos" Version="3.41.0-preview.0" />
<PackageVersion Include="Microsoft.Azure.Cosmos" Version="3.44.0-preview.0" />
<PackageVersion Include="Pgvector" Version="0.2.0" />
<PackageVersion Include="NRedisStack" Version="0.12.0" />
<PackageVersion Include="Milvus.Client" Version="2.3.0-preview.1" />
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ public AzureCosmosDBNoSQLMemoryStore(
new CosmosClientOptions
{
ApplicationName = applicationName ?? HttpHeaderConstant.Values.UserAgent,
Serializer = new CosmosSystemTextJsonSerializer(JsonSerializerOptions.Default),
UseSystemTextJsonSerializerWithOptions = JsonSerializerOptions.Default,
}),
databaseName,
new VectorEmbeddingPolicy(
Expand Down Expand Up @@ -100,7 +100,7 @@ public AzureCosmosDBNoSQLMemoryStore(
new CosmosClientOptions
{
ApplicationName = applicationName ?? HttpHeaderConstant.Values.UserAgent,
Serializer = new CosmosSystemTextJsonSerializer(JsonSerializerOptions.Default),
UseSystemTextJsonSerializerWithOptions = JsonSerializerOptions.Default,
westey-m marked this conversation as resolved.
Show resolved Hide resolved
}),
databaseName,
vectorEmbeddingPolicy,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ public static IServiceCollection AddAzureCosmosDBNoSQLVectorStore(
var cosmosClient = new CosmosClient(connectionString, new()
{
ApplicationName = HttpHeaderConstant.Values.UserAgent,
Serializer = new CosmosSystemTextJsonSerializer(options?.JsonSerializerOptions ?? JsonSerializerOptions.Default)
UseSystemTextJsonSerializerWithOptions = options?.JsonSerializerOptions ?? JsonSerializerOptions.Default,
});

var database = cosmosClient.GetDatabase(databaseName);
Expand Down

This file was deleted.

Loading