diff --git a/dotnet/Directory.Packages.props b/dotnet/Directory.Packages.props
index 37f105c9c934..adf5582061dd 100644
--- a/dotnet/Directory.Packages.props
+++ b/dotnet/Directory.Packages.props
@@ -91,7 +91,7 @@
-
+
@@ -115,7 +115,7 @@
-
+
@@ -126,7 +126,7 @@
-
+
@@ -153,7 +153,7 @@
-
+
@@ -174,9 +174,7 @@
-
-
-
+
@@ -203,15 +201,14 @@
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
diff --git a/dotnet/samples/Concepts/Agents/ChatCompletion_ContextualFunctionSelection.cs b/dotnet/samples/Concepts/Agents/ChatCompletion_ContextualFunctionSelection.cs
index 94d800985fc1..4b28a0025992 100644
--- a/dotnet/samples/Concepts/Agents/ChatCompletion_ContextualFunctionSelection.cs
+++ b/dotnet/samples/Concepts/Agents/ChatCompletion_ContextualFunctionSelection.cs
@@ -2,10 +2,10 @@
using Azure.AI.OpenAI;
using Azure.Identity;
+using CommunityToolkit.VectorData.InMemory;
using Microsoft.Extensions.AI;
using Microsoft.SemanticKernel;
using Microsoft.SemanticKernel.Agents;
-using Microsoft.SemanticKernel.Connectors.InMemory;
using Microsoft.SemanticKernel.Functions;
namespace Agents;
diff --git a/dotnet/samples/Concepts/Agents/ChatCompletion_Rag.cs b/dotnet/samples/Concepts/Agents/ChatCompletion_Rag.cs
index 8d7cf969e319..ef9bbd602fc5 100644
--- a/dotnet/samples/Concepts/Agents/ChatCompletion_Rag.cs
+++ b/dotnet/samples/Concepts/Agents/ChatCompletion_Rag.cs
@@ -2,11 +2,11 @@
using Azure.AI.OpenAI;
using Azure.Identity;
+using CommunityToolkit.VectorData.InMemory;
using Microsoft.Extensions.AI;
using Microsoft.Extensions.VectorData;
using Microsoft.SemanticKernel;
using Microsoft.SemanticKernel.Agents;
-using Microsoft.SemanticKernel.Connectors.InMemory;
using Microsoft.SemanticKernel.Data;
namespace Agents;
diff --git a/dotnet/samples/Concepts/Caching/SemanticCachingWithFilters.cs b/dotnet/samples/Concepts/Caching/SemanticCachingWithFilters.cs
index 8c7115ba1534..8549d40d14e2 100644
--- a/dotnet/samples/Concepts/Caching/SemanticCachingWithFilters.cs
+++ b/dotnet/samples/Concepts/Caching/SemanticCachingWithFilters.cs
@@ -293,7 +293,7 @@ private sealed class CacheRecord
[VectorStoreData]
public string Result { get; set; }
- [VectorStoreVector(Dimensions: 1536)]
+ [VectorStoreVector(1536)]
public ReadOnlyMemory PromptEmbedding { get; set; }
}
diff --git a/dotnet/samples/Concepts/Concepts.csproj b/dotnet/samples/Concepts/Concepts.csproj
index ad6b3fe12a59..5345cdface12 100644
--- a/dotnet/samples/Concepts/Concepts.csproj
+++ b/dotnet/samples/Concepts/Concepts.csproj
@@ -9,6 +9,8 @@
true
$(NoWarn);CS8618,IDE0009,IDE1006,CA1051,CA1050,CA1707,CA1054,CA2007,VSTHRD111,CS1591,RCS1110,RCS1243,CA5394,SKEXP0001,SKEXP0010,SKEXP0020,SKEXP0040,SKEXP0050,SKEXP0060,SKEXP0101,SKEXP0110,OPENAI001,CA1724,IDE1006,IDE0009,MEVD9000
+
+ true
Library
5ee045b0-aea3-4f08-8d31-32d1a6f8fed0
@@ -49,15 +51,12 @@
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
diff --git a/dotnet/samples/Concepts/Memory/HuggingFace_TextEmbeddingCustomHttpHandler.cs b/dotnet/samples/Concepts/Memory/HuggingFace_TextEmbeddingCustomHttpHandler.cs
index 7e27f0a25bc3..06068932ed1c 100644
--- a/dotnet/samples/Concepts/Memory/HuggingFace_TextEmbeddingCustomHttpHandler.cs
+++ b/dotnet/samples/Concepts/Memory/HuggingFace_TextEmbeddingCustomHttpHandler.cs
@@ -1,9 +1,9 @@
// Copyright (c) Microsoft. All rights reserved.
using System.Text.Json;
+using CommunityToolkit.VectorData.InMemory;
using Microsoft.Extensions.VectorData;
using Microsoft.SemanticKernel.Connectors.HuggingFace;
-using Microsoft.SemanticKernel.Connectors.InMemory;
using Microsoft.SemanticKernel.Embeddings;
#pragma warning disable CS8602 // Dereference of a possibly null reference.
@@ -52,7 +52,7 @@ public class Record
[VectorStoreData]
public string Text { get; set; }
- [VectorStoreVector(Dimensions: 768)]
+ [VectorStoreVector(768)]
public string Embedding { get; set; }
}
diff --git a/dotnet/samples/Concepts/Memory/VectorStoreLangchainInterop/PineconeFactory.cs b/dotnet/samples/Concepts/Memory/VectorStoreLangchainInterop/PineconeFactory.cs
deleted file mode 100644
index 2aa8c73a19c9..000000000000
--- a/dotnet/samples/Concepts/Memory/VectorStoreLangchainInterop/PineconeFactory.cs
+++ /dev/null
@@ -1,87 +0,0 @@
-// Copyright (c) Microsoft. All rights reserved.
-
-using Microsoft.Extensions.VectorData;
-using Microsoft.SemanticKernel.Connectors.Pinecone;
-using Pinecone;
-
-namespace Memory.VectorStoreLangchainInterop;
-
-///
-/// Contains a factory method that can be used to create a Pinecone vector store that is compatible with datasets ingested using Langchain.
-///
-///
-/// This class is used with the sample.
-///
-public static class PineconeFactory
-{
- ///
- /// Record definition that matches the storage format used by Langchain for Pinecone.
- ///
- private static readonly VectorStoreCollectionDefinition s_definition = new()
- {
- Properties =
- [
- new VectorStoreKeyProperty("Key", typeof(string)),
- new VectorStoreDataProperty("Content", typeof(string)) { StorageName = "text" },
- new VectorStoreDataProperty("Source", typeof(string)) { StorageName = "source" },
- new VectorStoreVectorProperty("Embedding", typeof(ReadOnlyMemory), 1536) { StorageName = "embedding" }
- ]
- };
-
- ///
- /// Create a new Pinecone-backed that can be used to read data that was ingested using Langchain.
- ///
- /// Pinecone client that can be used to manage the collections and points in a Pinecone store.
- /// The .
- public static VectorStore CreatePineconeLangchainInteropVectorStore(PineconeClient pineconeClient)
- => new PineconeLangchainInteropVectorStore(new PineconeVectorStore(pineconeClient), pineconeClient);
-
- private sealed class PineconeLangchainInteropVectorStore(
- VectorStore innerStore,
- PineconeClient pineconeClient)
- : VectorStore
- {
- private readonly PineconeClient _pineconeClient = pineconeClient;
-
- public override VectorStoreCollection GetCollection(string name, VectorStoreCollectionDefinition? definition = null)
- {
- if (typeof(TKey) != typeof(string) || typeof(TRecord) != typeof(LangchainDocument))
- {
- throw new NotSupportedException("This VectorStore is only usable with string keys and LangchainDocument record types");
- }
-
- // Create a Pinecone collection and pass in our custom record definition that matches
- // the schema used by Langchain so that the default mapper can use the storage names
- // in it, to map to the storage scheme.
- return (new PineconeCollection(
- _pineconeClient,
- name,
- new()
- {
- Definition = s_definition
- }) as VectorStoreCollection)!;
- }
-
- public override VectorStoreCollection
@@ -15,15 +17,13 @@
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
diff --git a/dotnet/samples/GettingStartedWithTextSearch/GettingStartedWithTextSearch.csproj b/dotnet/samples/GettingStartedWithTextSearch/GettingStartedWithTextSearch.csproj
index 9eab7a6c81d7..29ac5e5b7e0b 100644
--- a/dotnet/samples/GettingStartedWithTextSearch/GettingStartedWithTextSearch.csproj
+++ b/dotnet/samples/GettingStartedWithTextSearch/GettingStartedWithTextSearch.csproj
@@ -35,7 +35,7 @@
-
+
diff --git a/dotnet/samples/GettingStartedWithTextSearch/InMemoryVectorStoreFixture.cs b/dotnet/samples/GettingStartedWithTextSearch/InMemoryVectorStoreFixture.cs
index c409d53b8260..6cd2d692c1d5 100644
--- a/dotnet/samples/GettingStartedWithTextSearch/InMemoryVectorStoreFixture.cs
+++ b/dotnet/samples/GettingStartedWithTextSearch/InMemoryVectorStoreFixture.cs
@@ -1,10 +1,10 @@
// Copyright (c) Microsoft. All rights reserved.
using System.Reflection;
+using CommunityToolkit.VectorData.InMemory;
using Microsoft.Extensions.AI;
using Microsoft.Extensions.Configuration;
using Microsoft.Extensions.VectorData;
-using Microsoft.SemanticKernel.Connectors.InMemory;
using Microsoft.SemanticKernel.Data;
using OpenAI;
diff --git a/dotnet/samples/GettingStartedWithVectorStores/GettingStartedWithVectorStores.csproj b/dotnet/samples/GettingStartedWithVectorStores/GettingStartedWithVectorStores.csproj
index b08f7cf0ce95..d911327ee3d6 100644
--- a/dotnet/samples/GettingStartedWithVectorStores/GettingStartedWithVectorStores.csproj
+++ b/dotnet/samples/GettingStartedWithVectorStores/GettingStartedWithVectorStores.csproj
@@ -32,9 +32,9 @@
-
-
-
+
+
+
diff --git a/dotnet/samples/GettingStartedWithVectorStores/Glossary.cs b/dotnet/samples/GettingStartedWithVectorStores/Glossary.cs
index 1516c0d35230..0d5fadb3b2fb 100644
--- a/dotnet/samples/GettingStartedWithVectorStores/Glossary.cs
+++ b/dotnet/samples/GettingStartedWithVectorStores/Glossary.cs
@@ -25,6 +25,6 @@ internal sealed class Glossary
[VectorStoreData]
public string Definition { get; set; }
- [VectorStoreVector(Dimensions: 1536)]
+ [VectorStoreVector(1536)]
public ReadOnlyMemory DefinitionEmbedding { get; set; }
}
diff --git a/dotnet/samples/GettingStartedWithVectorStores/Step1_Ingest_Data.cs b/dotnet/samples/GettingStartedWithVectorStores/Step1_Ingest_Data.cs
index 3f37685eebf0..3b98cc037344 100644
--- a/dotnet/samples/GettingStartedWithVectorStores/Step1_Ingest_Data.cs
+++ b/dotnet/samples/GettingStartedWithVectorStores/Step1_Ingest_Data.cs
@@ -1,8 +1,8 @@
// Copyright (c) Microsoft. All rights reserved.
+using CommunityToolkit.VectorData.InMemory;
using Microsoft.Extensions.AI;
using Microsoft.Extensions.VectorData;
-using Microsoft.SemanticKernel.Connectors.InMemory;
namespace GettingStartedWithVectorStores;
diff --git a/dotnet/samples/GettingStartedWithVectorStores/Step2_Vector_Search.cs b/dotnet/samples/GettingStartedWithVectorStores/Step2_Vector_Search.cs
index 11cec7a34ca8..a8079a0732e3 100644
--- a/dotnet/samples/GettingStartedWithVectorStores/Step2_Vector_Search.cs
+++ b/dotnet/samples/GettingStartedWithVectorStores/Step2_Vector_Search.cs
@@ -1,8 +1,8 @@
// Copyright (c) Microsoft. All rights reserved.
+using CommunityToolkit.VectorData.InMemory;
using Microsoft.Extensions.AI;
using Microsoft.Extensions.VectorData;
-using Microsoft.SemanticKernel.Connectors.InMemory;
namespace GettingStartedWithVectorStores;
diff --git a/dotnet/samples/GettingStartedWithVectorStores/Step3_Switch_VectorStore.cs b/dotnet/samples/GettingStartedWithVectorStores/Step3_Switch_VectorStore.cs
index da035fe5b5b2..1e8706fa9c76 100644
--- a/dotnet/samples/GettingStartedWithVectorStores/Step3_Switch_VectorStore.cs
+++ b/dotnet/samples/GettingStartedWithVectorStores/Step3_Switch_VectorStore.cs
@@ -2,8 +2,8 @@
using Azure;
using Azure.Search.Documents.Indexes;
-using Microsoft.SemanticKernel.Connectors.AzureAISearch;
-using Microsoft.SemanticKernel.Connectors.Redis;
+using CommunityToolkit.VectorData.AzureAISearch;
+using CommunityToolkit.VectorData.Redis;
using StackExchange.Redis;
namespace GettingStartedWithVectorStores;
diff --git a/dotnet/samples/GettingStartedWithVectorStores/Step4_Use_DynamicDataModel.cs b/dotnet/samples/GettingStartedWithVectorStores/Step4_Use_DynamicDataModel.cs
index 3d93a1244818..6d433b594d1d 100644
--- a/dotnet/samples/GettingStartedWithVectorStores/Step4_Use_DynamicDataModel.cs
+++ b/dotnet/samples/GettingStartedWithVectorStores/Step4_Use_DynamicDataModel.cs
@@ -1,8 +1,8 @@
// Copyright (c) Microsoft. All rights reserved.
+using CommunityToolkit.VectorData.Redis;
using Microsoft.Extensions.AI;
using Microsoft.Extensions.VectorData;
-using Microsoft.SemanticKernel.Connectors.Redis;
using StackExchange.Redis;
namespace GettingStartedWithVectorStores;
diff --git a/dotnet/src/IntegrationTests/IntegrationTests.csproj b/dotnet/src/IntegrationTests/IntegrationTests.csproj
index 7ed606ec711d..4e739bf9a96a 100644
--- a/dotnet/src/IntegrationTests/IntegrationTests.csproj
+++ b/dotnet/src/IntegrationTests/IntegrationTests.csproj
@@ -56,6 +56,7 @@
+
diff --git a/dotnet/src/IntegrationTests/Plugins/ContextualFunctionProviderTests.cs b/dotnet/src/IntegrationTests/Plugins/ContextualFunctionProviderTests.cs
index d28fc150aeaf..3bdc20dc3e52 100644
--- a/dotnet/src/IntegrationTests/Plugins/ContextualFunctionProviderTests.cs
+++ b/dotnet/src/IntegrationTests/Plugins/ContextualFunctionProviderTests.cs
@@ -7,12 +7,12 @@
using System.Threading.Tasks;
using Azure.AI.OpenAI;
using Azure.Identity;
+using CommunityToolkit.VectorData.InMemory;
using Microsoft.Extensions.AI;
using Microsoft.Extensions.Configuration;
using Microsoft.Extensions.VectorData;
using Microsoft.SemanticKernel;
using Microsoft.SemanticKernel.Agents;
-using Microsoft.SemanticKernel.Connectors.InMemory;
using Microsoft.SemanticKernel.Functions;
using SemanticKernel.IntegrationTests.TestSettings;
using Xunit;
diff --git a/dotnet/src/InternalUtilities/src/RestrictedInternalUtilities.props b/dotnet/src/InternalUtilities/src/RestrictedInternalUtilities.props
index fddc4409da7c..ecbf07ef859d 100644
--- a/dotnet/src/InternalUtilities/src/RestrictedInternalUtilities.props
+++ b/dotnet/src/InternalUtilities/src/RestrictedInternalUtilities.props
@@ -5,6 +5,8 @@
-->
+
+
diff --git a/dotnet/src/SemanticKernel.AotTests/UnitTests/Search/MockVectorizableTextSearch.cs b/dotnet/src/SemanticKernel.AotTests/UnitTests/Search/MockVectorizableTextSearch.cs
index 3390ec374ff5..09c4a6ddbbca 100644
--- a/dotnet/src/SemanticKernel.AotTests/UnitTests/Search/MockVectorizableTextSearch.cs
+++ b/dotnet/src/SemanticKernel.AotTests/UnitTests/Search/MockVectorizableTextSearch.cs
@@ -5,6 +5,7 @@
namespace SemanticKernel.AotTests.UnitTests.Search;
internal sealed class MockVectorizableTextSearch : IVectorSearchable
+ where TRecord : class
{
private readonly IAsyncEnumerable> _searchResults;
diff --git a/dotnet/src/SemanticKernel.Core/CompatibilitySuppressions.xml b/dotnet/src/SemanticKernel.Core/CompatibilitySuppressions.xml
new file mode 100644
index 000000000000..e0feb2bf67a3
--- /dev/null
+++ b/dotnet/src/SemanticKernel.Core/CompatibilitySuppressions.xml
@@ -0,0 +1,67 @@
+
+
+
+
+ CP0021
+ M:Microsoft.SemanticKernel.TextSearchKernelBuilderExtensions.AddVectorStoreTextSearch``1(Microsoft.SemanticKernel.IKernelBuilder,Microsoft.SemanticKernel.Data.ITextSearchStringMapper,Microsoft.SemanticKernel.Data.ITextSearchResultMapper,Microsoft.SemanticKernel.Data.VectorStoreTextSearchOptions,System.String)``0:class
+ lib/net10.0/Microsoft.SemanticKernel.Core.dll
+ lib/net10.0/Microsoft.SemanticKernel.Core.dll
+ true
+
+
+ CP0021
+ M:Microsoft.SemanticKernel.TextSearchServiceCollectionExtensions.AddVectorStoreTextSearch``1(Microsoft.Extensions.DependencyInjection.IServiceCollection,Microsoft.SemanticKernel.Data.ITextSearchStringMapper,Microsoft.SemanticKernel.Data.ITextSearchResultMapper,Microsoft.SemanticKernel.Data.VectorStoreTextSearchOptions,System.String)``0:class
+ lib/net10.0/Microsoft.SemanticKernel.Core.dll
+ lib/net10.0/Microsoft.SemanticKernel.Core.dll
+ true
+
+
+ CP0021
+ T:Microsoft.SemanticKernel.Data.VectorStoreTextSearch`1``0:class
+ lib/net10.0/Microsoft.SemanticKernel.Core.dll
+ lib/net10.0/Microsoft.SemanticKernel.Core.dll
+ true
+
+
+ CP0021
+ M:Microsoft.SemanticKernel.TextSearchKernelBuilderExtensions.AddVectorStoreTextSearch``1(Microsoft.SemanticKernel.IKernelBuilder,Microsoft.SemanticKernel.Data.ITextSearchStringMapper,Microsoft.SemanticKernel.Data.ITextSearchResultMapper,Microsoft.SemanticKernel.Data.VectorStoreTextSearchOptions,System.String)``0:class
+ lib/net8.0/Microsoft.SemanticKernel.Core.dll
+ lib/net8.0/Microsoft.SemanticKernel.Core.dll
+ true
+
+
+ CP0021
+ M:Microsoft.SemanticKernel.TextSearchServiceCollectionExtensions.AddVectorStoreTextSearch``1(Microsoft.Extensions.DependencyInjection.IServiceCollection,Microsoft.SemanticKernel.Data.ITextSearchStringMapper,Microsoft.SemanticKernel.Data.ITextSearchResultMapper,Microsoft.SemanticKernel.Data.VectorStoreTextSearchOptions,System.String)``0:class
+ lib/net8.0/Microsoft.SemanticKernel.Core.dll
+ lib/net8.0/Microsoft.SemanticKernel.Core.dll
+ true
+
+
+ CP0021
+ T:Microsoft.SemanticKernel.Data.VectorStoreTextSearch`1``0:class
+ lib/net8.0/Microsoft.SemanticKernel.Core.dll
+ lib/net8.0/Microsoft.SemanticKernel.Core.dll
+ true
+
+
+ CP0021
+ M:Microsoft.SemanticKernel.TextSearchKernelBuilderExtensions.AddVectorStoreTextSearch``1(Microsoft.SemanticKernel.IKernelBuilder,Microsoft.SemanticKernel.Data.ITextSearchStringMapper,Microsoft.SemanticKernel.Data.ITextSearchResultMapper,Microsoft.SemanticKernel.Data.VectorStoreTextSearchOptions,System.String)``0:class
+ lib/netstandard2.0/Microsoft.SemanticKernel.Core.dll
+ lib/netstandard2.0/Microsoft.SemanticKernel.Core.dll
+ true
+
+
+ CP0021
+ M:Microsoft.SemanticKernel.TextSearchServiceCollectionExtensions.AddVectorStoreTextSearch``1(Microsoft.Extensions.DependencyInjection.IServiceCollection,Microsoft.SemanticKernel.Data.ITextSearchStringMapper,Microsoft.SemanticKernel.Data.ITextSearchResultMapper,Microsoft.SemanticKernel.Data.VectorStoreTextSearchOptions,System.String)``0:class
+ lib/netstandard2.0/Microsoft.SemanticKernel.Core.dll
+ lib/netstandard2.0/Microsoft.SemanticKernel.Core.dll
+ true
+
+
+ CP0021
+ T:Microsoft.SemanticKernel.Data.VectorStoreTextSearch`1``0:class
+ lib/netstandard2.0/Microsoft.SemanticKernel.Core.dll
+ lib/netstandard2.0/Microsoft.SemanticKernel.Core.dll
+ true
+
+
\ No newline at end of file
diff --git a/dotnet/src/SemanticKernel.Core/Data/TextSearch/TextSearchKernelBuilderExtensions.cs b/dotnet/src/SemanticKernel.Core/Data/TextSearch/TextSearchKernelBuilderExtensions.cs
index 84909b8229c9..fa421d45a2bf 100644
--- a/dotnet/src/SemanticKernel.Core/Data/TextSearch/TextSearchKernelBuilderExtensions.cs
+++ b/dotnet/src/SemanticKernel.Core/Data/TextSearch/TextSearchKernelBuilderExtensions.cs
@@ -24,6 +24,7 @@ public static class TextSearchKernelBuilderExtensions
ITextSearchResultMapper? resultMapper = null,
VectorStoreTextSearchOptions? options = null,
string? serviceId = default)
+ where TRecord : class
{
builder.Services.AddVectorStoreTextSearch(stringMapper, resultMapper, options, serviceId);
return builder;
diff --git a/dotnet/src/SemanticKernel.Core/Data/TextSearch/TextSearchServiceCollectionExtensions.cs b/dotnet/src/SemanticKernel.Core/Data/TextSearch/TextSearchServiceCollectionExtensions.cs
index 950cb46777af..5a60592cce25 100644
--- a/dotnet/src/SemanticKernel.Core/Data/TextSearch/TextSearchServiceCollectionExtensions.cs
+++ b/dotnet/src/SemanticKernel.Core/Data/TextSearch/TextSearchServiceCollectionExtensions.cs
@@ -28,6 +28,7 @@ public static class TextSearchServiceCollectionExtensions
ITextSearchResultMapper? resultMapper = null,
VectorStoreTextSearchOptions? options = null,
string? serviceId = default)
+ where TRecord : class
{
// If we are not constructing the dependent services, add the VectorStoreTextSearch as transient, since we
// cannot make assumptions about how dependent services are being managed.
diff --git a/dotnet/src/SemanticKernel.Core/Data/TextSearch/VectorStoreTextSearch.cs b/dotnet/src/SemanticKernel.Core/Data/TextSearch/VectorStoreTextSearch.cs
index c83bdbcbddb9..eb26852881ce 100644
--- a/dotnet/src/SemanticKernel.Core/Data/TextSearch/VectorStoreTextSearch.cs
+++ b/dotnet/src/SemanticKernel.Core/Data/TextSearch/VectorStoreTextSearch.cs
@@ -21,6 +21,7 @@ namespace Microsoft.SemanticKernel.Data;
[Experimental("SKEXP0001")]
#pragma warning disable CS0618 // ITextSearch is obsolete
public sealed class VectorStoreTextSearch<[DynamicallyAccessedMembers(DynamicallyAccessedMemberTypes.PublicProperties)] TRecord> : ITextSearch, ITextSearch
+ where TRecord : class
#pragma warning restore CS0618
#pragma warning restore CA1711 // Identifiers should not have incorrect suffix
{
diff --git a/dotnet/src/SemanticKernel.UnitTests/Data/TextSearchServiceCollectionExtensionsTests.cs b/dotnet/src/SemanticKernel.UnitTests/Data/TextSearchServiceCollectionExtensionsTests.cs
index ede2e742cade..a7b79dcc0ed8 100644
--- a/dotnet/src/SemanticKernel.UnitTests/Data/TextSearchServiceCollectionExtensionsTests.cs
+++ b/dotnet/src/SemanticKernel.UnitTests/Data/TextSearchServiceCollectionExtensionsTests.cs
@@ -1,10 +1,10 @@
// Copyright (c) Microsoft. All rights reserved.
using System;
+using CommunityToolkit.VectorData.InMemory;
using Microsoft.Extensions.DependencyInjection;
using Microsoft.Extensions.VectorData;
using Microsoft.SemanticKernel;
-using Microsoft.SemanticKernel.Connectors.InMemory;
using Microsoft.SemanticKernel.Data;
using Microsoft.SemanticKernel.Embeddings;
using Xunit;
diff --git a/dotnet/src/SemanticKernel.UnitTests/Data/VectorStoreTextSearchTestBase.cs b/dotnet/src/SemanticKernel.UnitTests/Data/VectorStoreTextSearchTestBase.cs
index 066cf7ef2398..dc0422c2b4a2 100644
--- a/dotnet/src/SemanticKernel.UnitTests/Data/VectorStoreTextSearchTestBase.cs
+++ b/dotnet/src/SemanticKernel.UnitTests/Data/VectorStoreTextSearchTestBase.cs
@@ -5,10 +5,10 @@
using System.Collections.ObjectModel;
using System.Threading;
using System.Threading.Tasks;
+using CommunityToolkit.VectorData.InMemory;
using Microsoft.Extensions.AI;
using Microsoft.Extensions.VectorData;
using Microsoft.SemanticKernel;
-using Microsoft.SemanticKernel.Connectors.InMemory;
using Microsoft.SemanticKernel.Data;
using Microsoft.SemanticKernel.Embeddings;
diff --git a/dotnet/src/SemanticKernel.UnitTests/Data/VectorStoreTextSearchTests.cs b/dotnet/src/SemanticKernel.UnitTests/Data/VectorStoreTextSearchTests.cs
index c948240a5646..e3c05d079ae4 100644
--- a/dotnet/src/SemanticKernel.UnitTests/Data/VectorStoreTextSearchTests.cs
+++ b/dotnet/src/SemanticKernel.UnitTests/Data/VectorStoreTextSearchTests.cs
@@ -3,7 +3,7 @@
using System;
using System.Linq;
using System.Threading.Tasks;
-using Microsoft.SemanticKernel.Connectors.InMemory;
+using CommunityToolkit.VectorData.InMemory;
using Microsoft.SemanticKernel.Data;
using Microsoft.SemanticKernel.Embeddings;
using Xunit;
diff --git a/dotnet/src/SemanticKernel.UnitTests/SemanticKernel.UnitTests.csproj b/dotnet/src/SemanticKernel.UnitTests/SemanticKernel.UnitTests.csproj
index 1bc01dd5df06..1394535f761d 100644
--- a/dotnet/src/SemanticKernel.UnitTests/SemanticKernel.UnitTests.csproj
+++ b/dotnet/src/SemanticKernel.UnitTests/SemanticKernel.UnitTests.csproj
@@ -25,7 +25,7 @@
-
+
diff --git a/dotnet/src/VectorData/CosmosMongoDB/CosmosMongoDB.csproj b/dotnet/src/VectorData/CosmosMongoDB/CosmosMongoDB.csproj
index 23f8e0cba2db..b59178cf2183 100644
--- a/dotnet/src/VectorData/CosmosMongoDB/CosmosMongoDB.csproj
+++ b/dotnet/src/VectorData/CosmosMongoDB/CosmosMongoDB.csproj
@@ -30,8 +30,6 @@
-
-
diff --git a/dotnet/src/VectorData/MongoDB/MongoDB.csproj b/dotnet/src/VectorData/MongoDB/MongoDB.csproj
index 6196ba1c4fee..a932c18a17f2 100644
--- a/dotnet/src/VectorData/MongoDB/MongoDB.csproj
+++ b/dotnet/src/VectorData/MongoDB/MongoDB.csproj
@@ -30,8 +30,6 @@
-
-