Skip to content
Merged
Show file tree
Hide file tree
Changes from all 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
6 changes: 3 additions & 3 deletions Directory.Packages.props
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,13 @@
<PackageVersion Include="System.Linq.AsyncEnumerable" Version="10.0.6" />
<PackageVersion Include="System.Numerics.Tensors" Version="10.0.6" />
<PackageVersion Include="System.Text.Json" Version="10.0.6" />
<PackageVersion Include="Microsoft.Extensions.AI.Abstractions" Version="10.5.0" />
<PackageVersion Include="Microsoft.Extensions.AI.Abstractions" Version="10.5.2" />
<PackageVersion Include="Microsoft.Extensions.DependencyInjection.Abstractions" Version="10.0.6" />
</ItemGroup>

<ItemGroup Label="MEVD">
<PackageVersion Include="Microsoft.Extensions.VectorData.Abstractions" Version="10.5.0" />
<PackageVersion Include="Microsoft.Extensions.VectorData.ConformanceTests" Version="10.5.0" />
<PackageVersion Include="Microsoft.Extensions.VectorData.Abstractions" Version="10.5.2" />
<PackageVersion Include="Microsoft.Extensions.VectorData.ConformanceTests" Version="10.5.2" />

<PackageVersion Include="Azure.Search.Documents" Version="11.7.0" />
<PackageVersion Include="Microsoft.Data.Sqlite" Version="10.0.6" />
Expand Down
2 changes: 1 addition & 1 deletion MEVD/src/AzureAISearch/AzureAISearch.csproj
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<Version>1.0.0-preview.2</Version>
<Version>1.0.0-preview.3</Version>
<AssemblyName>CommunityToolkit.VectorData.AzureAISearch</AssemblyName>
<RootNamespace>$(AssemblyName)</RootNamespace>
<TargetFrameworks>net10.0;net8.0;netstandard2.0;net462</TargetFrameworks>
Expand Down
2 changes: 1 addition & 1 deletion MEVD/src/CosmosMongoDB/CosmosMongoDB.csproj
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<Version>1.0.0-preview.2</Version>
<Version>1.0.0-preview.3</Version>
<AssemblyName>CommunityToolkit.VectorData.CosmosMongoDB</AssemblyName>
<RootNamespace>$(AssemblyName)</RootNamespace>
<TargetFrameworks>net10.0;net8.0;netstandard2.1;net472</TargetFrameworks>
Expand Down
18 changes: 3 additions & 15 deletions MEVD/src/CosmosMongoDB/MongoShared/MongoModelBuilder.cs
Original file line number Diff line number Diff line change
Expand Up @@ -32,22 +32,10 @@ protected override void ProcessProperty(PropertyInfo? clrProperty, VectorStorePr
{
base.ProcessProperty(clrProperty!, definitionProperty!);

// TODO: Reenable this after https://github.com/dotnet/extensions/pull/7475
// if (clrProperty?.GetCustomAttribute<BsonElementAttribute>() is { } bsonElementAttribute
// && this.PropertyMap.TryGetValue(clrProperty.Name, out var property))
// {
// property.StorageName = bsonElementAttribute.ElementName;
// }

// TODO: Workaround for https://github.com/dotnet/extensions/pull/7475
// The BSON serializer determines field names from the CLR property name (or [BsonElement] if present).
// Since UsesExternalSerializer is true, the base CollectionModelBuilder is supposed to ignore StorageName
// from VectorStoreProperty attributes to stay in sync with the serializer. However, some versions of the
// base class don't do this correctly, causing StorageName to diverge from what the serializer uses.
// Override here to always keep StorageName in sync with the serializer's behavior.
if (clrProperty is not null && this.PropertyMap.TryGetValue(clrProperty.Name, out var property))
if (clrProperty?.GetCustomAttribute<BsonElementAttribute>() is { } bsonElementAttribute
&& this.PropertyMap.TryGetValue(clrProperty.Name, out var property))
{
property.StorageName = clrProperty.GetCustomAttribute<BsonElementAttribute>()?.ElementName ?? clrProperty.Name;
property.StorageName = bsonElementAttribute.ElementName;
}
}

Expand Down
2 changes: 1 addition & 1 deletion MEVD/src/InMemory/InMemory.csproj
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<Version>1.0.0-preview.2</Version>
<Version>1.0.0-preview.3</Version>
<AssemblyName>CommunityToolkit.VectorData.InMemory</AssemblyName>
<RootNamespace>$(AssemblyName)</RootNamespace>
<TargetFrameworks>net10.0;net8.0;netstandard2.0;net462</TargetFrameworks>
Expand Down
2 changes: 1 addition & 1 deletion MEVD/src/PgVector/PgVector.csproj
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<Version>1.0.0-preview.2</Version>
<Version>1.0.0-preview.3</Version>
<AssemblyName>CommunityToolkit.VectorData.PgVector</AssemblyName>
<RootNamespace>$(AssemblyName)</RootNamespace>
<TargetFrameworks>net10.0;net8.0;netstandard2.0;net462</TargetFrameworks>
Expand Down
2 changes: 1 addition & 1 deletion MEVD/src/Pinecone/Pinecone.csproj
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<Version>1.0.0-preview.2</Version>
<Version>1.0.0-preview.3</Version>
<AssemblyName>CommunityToolkit.VectorData.Pinecone</AssemblyName>
<RootNamespace>$(AssemblyName)</RootNamespace>
<TargetFrameworks>net10.0;net8.0;netstandard2.0;net462</TargetFrameworks>
Expand Down
2 changes: 1 addition & 1 deletion MEVD/src/Qdrant/Qdrant.csproj
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<Version>1.0.0-preview.2</Version>
<Version>1.0.0-preview.3</Version>
<AssemblyName>CommunityToolkit.VectorData.Qdrant</AssemblyName>
<RootNamespace>$(AssemblyName)</RootNamespace>
<TargetFrameworks>net10.0;net8.0;netstandard2.0;net462</TargetFrameworks>
Expand Down
2 changes: 1 addition & 1 deletion MEVD/src/Redis/Redis.csproj
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<Version>1.0.0-preview.2</Version>
<Version>1.0.0-preview.3</Version>
<AssemblyName>CommunityToolkit.VectorData.Redis</AssemblyName>
<RootNamespace>$(AssemblyName)</RootNamespace>
<TargetFrameworks>net10.0;net8.0;netstandard2.0;net462</TargetFrameworks>
Expand Down
2 changes: 1 addition & 1 deletion MEVD/src/SqliteVec/SqliteVec.csproj
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<Version>1.0.0-preview.2</Version>
<Version>1.0.0-preview.3</Version>
<AssemblyName>CommunityToolkit.VectorData.SqliteVec</AssemblyName>
<RootNamespace>$(AssemblyName)</RootNamespace>
<TargetFrameworks>net10.0;net8.0;netstandard2.0;net462</TargetFrameworks>
Expand Down
2 changes: 1 addition & 1 deletion MEVD/src/Weaviate/Weaviate.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

<PropertyGroup>
<!-- THIS PROPERTY GROUP MUST COME FIRST -->
<Version>1.0.0-preview.2</Version>
<Version>1.0.0-preview.3</Version>
<AssemblyName>CommunityToolkit.VectorData.Weaviate</AssemblyName>
<RootNamespace>$(AssemblyName)</RootNamespace>
<TargetFrameworks>net10.0;net8.0;netstandard2.0;net462</TargetFrameworks>
Expand Down
Loading