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> GetDynamicCollection(string name, VectorStoreCollectionDefinition? definition = null) - { - // 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 PineconeDynamicCollection( - _pineconeClient, - name, - new() - { - Definition = s_definition - }); - } - - public override object? GetService(Type serviceType, object? serviceKey = null) => innerStore.GetService(serviceType, serviceKey); - - public override IAsyncEnumerable ListCollectionNamesAsync(CancellationToken cancellationToken = default) => innerStore.ListCollectionNamesAsync(cancellationToken); - - public override Task CollectionExistsAsync(string name, CancellationToken cancellationToken = default) => innerStore.CollectionExistsAsync(name, cancellationToken); - - public override Task EnsureCollectionDeletedAsync(string name, CancellationToken cancellationToken = default) => innerStore.EnsureCollectionDeletedAsync(name, cancellationToken); - } -} diff --git a/dotnet/samples/Concepts/Memory/VectorStoreLangchainInterop/RedisFactory.cs b/dotnet/samples/Concepts/Memory/VectorStoreLangchainInterop/RedisFactory.cs index aa6a108a33b7..013d80122d76 100644 --- a/dotnet/samples/Concepts/Memory/VectorStoreLangchainInterop/RedisFactory.cs +++ b/dotnet/samples/Concepts/Memory/VectorStoreLangchainInterop/RedisFactory.cs @@ -1,7 +1,7 @@ // Copyright (c) Microsoft. All rights reserved. +using CommunityToolkit.VectorData.Redis; using Microsoft.Extensions.VectorData; -using Microsoft.SemanticKernel.Connectors.Redis; using StackExchange.Redis; namespace Memory.VectorStoreLangchainInterop; diff --git a/dotnet/samples/Concepts/Memory/VectorStore_ConsumeFromMemoryStore_AzureAISearch.cs b/dotnet/samples/Concepts/Memory/VectorStore_ConsumeFromMemoryStore_AzureAISearch.cs index 168014e1f0da..c168d9704d11 100644 --- a/dotnet/samples/Concepts/Memory/VectorStore_ConsumeFromMemoryStore_AzureAISearch.cs +++ b/dotnet/samples/Concepts/Memory/VectorStore_ConsumeFromMemoryStore_AzureAISearch.cs @@ -4,9 +4,9 @@ using System.Text.Json; using Azure; using Azure.Search.Documents.Indexes; +using CommunityToolkit.VectorData.AzureAISearch; using Memory.VectorStoreFixtures; using Microsoft.Extensions.VectorData; -using Microsoft.SemanticKernel.Connectors.AzureAISearch; using Microsoft.SemanticKernel.Memory; namespace Memory; diff --git a/dotnet/samples/Concepts/Memory/VectorStore_ConsumeFromMemoryStore_Qdrant.cs b/dotnet/samples/Concepts/Memory/VectorStore_ConsumeFromMemoryStore_Qdrant.cs index 8d0f785f5c59..95bafe4e9ac6 100644 --- a/dotnet/samples/Concepts/Memory/VectorStore_ConsumeFromMemoryStore_Qdrant.cs +++ b/dotnet/samples/Concepts/Memory/VectorStore_ConsumeFromMemoryStore_Qdrant.cs @@ -1,9 +1,9 @@ // Copyright (c) Microsoft. All rights reserved. using System.Text.Json; +using CommunityToolkit.VectorData.Qdrant; using Memory.VectorStoreFixtures; using Microsoft.Extensions.VectorData; -using Microsoft.SemanticKernel.Connectors.Qdrant; using Microsoft.SemanticKernel.Memory; using Qdrant.Client; diff --git a/dotnet/samples/Concepts/Memory/VectorStore_ConsumeFromMemoryStore_Redis.cs b/dotnet/samples/Concepts/Memory/VectorStore_ConsumeFromMemoryStore_Redis.cs index 4e2f6f107696..452f658c36ae 100644 --- a/dotnet/samples/Concepts/Memory/VectorStore_ConsumeFromMemoryStore_Redis.cs +++ b/dotnet/samples/Concepts/Memory/VectorStore_ConsumeFromMemoryStore_Redis.cs @@ -1,8 +1,8 @@ // Copyright (c) Microsoft. All rights reserved. +using CommunityToolkit.VectorData.Redis; using Memory.VectorStoreFixtures; using Microsoft.Extensions.VectorData; -using Microsoft.SemanticKernel.Connectors.Redis; using Microsoft.SemanticKernel.Memory; using StackExchange.Redis; diff --git a/dotnet/samples/Concepts/Memory/VectorStore_DataIngestion_MultiStore.cs b/dotnet/samples/Concepts/Memory/VectorStore_DataIngestion_MultiStore.cs index 43130246517a..c2b24d0d8607 100644 --- a/dotnet/samples/Concepts/Memory/VectorStore_DataIngestion_MultiStore.cs +++ b/dotnet/samples/Concepts/Memory/VectorStore_DataIngestion_MultiStore.cs @@ -3,14 +3,14 @@ using System.Text.Json; using Azure.AI.OpenAI; using Azure.Identity; +using CommunityToolkit.VectorData.InMemory; +using CommunityToolkit.VectorData.Qdrant; +using CommunityToolkit.VectorData.Redis; using Memory.VectorStoreFixtures; using Microsoft.Extensions.AI; using Microsoft.Extensions.DependencyInjection; using Microsoft.Extensions.VectorData; using Microsoft.SemanticKernel; -using Microsoft.SemanticKernel.Connectors.InMemory; -using Microsoft.SemanticKernel.Connectors.Qdrant; -using Microsoft.SemanticKernel.Connectors.Redis; using Qdrant.Client; using StackExchange.Redis; diff --git a/dotnet/samples/Concepts/Memory/VectorStore_DataIngestion_Simple.cs b/dotnet/samples/Concepts/Memory/VectorStore_DataIngestion_Simple.cs index 669f9509b89d..82652063f703 100644 --- a/dotnet/samples/Concepts/Memory/VectorStore_DataIngestion_Simple.cs +++ b/dotnet/samples/Concepts/Memory/VectorStore_DataIngestion_Simple.cs @@ -3,10 +3,10 @@ using System.Text.Json; using Azure.AI.OpenAI; using Azure.Identity; +using CommunityToolkit.VectorData.Qdrant; using Memory.VectorStoreFixtures; using Microsoft.Extensions.AI; using Microsoft.Extensions.VectorData; -using Microsoft.SemanticKernel.Connectors.Qdrant; using Qdrant.Client; namespace Memory; diff --git a/dotnet/samples/Concepts/Memory/VectorStore_DynamicDataModel_Interop.cs b/dotnet/samples/Concepts/Memory/VectorStore_DynamicDataModel_Interop.cs index 6ed8de416340..a9670b18ccc7 100644 --- a/dotnet/samples/Concepts/Memory/VectorStore_DynamicDataModel_Interop.cs +++ b/dotnet/samples/Concepts/Memory/VectorStore_DynamicDataModel_Interop.cs @@ -3,10 +3,10 @@ using System.Text.Json; using Azure.AI.OpenAI; using Azure.Identity; +using CommunityToolkit.VectorData.Qdrant; using Memory.VectorStoreFixtures; using Microsoft.Extensions.AI; using Microsoft.Extensions.VectorData; -using Microsoft.SemanticKernel.Connectors.Qdrant; using Qdrant.Client; namespace Memory; diff --git a/dotnet/samples/Concepts/Memory/VectorStore_HybridSearch_Simple_AzureAISearch.cs b/dotnet/samples/Concepts/Memory/VectorStore_HybridSearch_Simple_AzureAISearch.cs index 5192022abaa1..f0be86cc9294 100644 --- a/dotnet/samples/Concepts/Memory/VectorStore_HybridSearch_Simple_AzureAISearch.cs +++ b/dotnet/samples/Concepts/Memory/VectorStore_HybridSearch_Simple_AzureAISearch.cs @@ -4,9 +4,9 @@ using Azure.AI.OpenAI; using Azure.Identity; using Azure.Search.Documents.Indexes; +using CommunityToolkit.VectorData.AzureAISearch; using Microsoft.Extensions.AI; using Microsoft.Extensions.VectorData; -using Microsoft.SemanticKernel.Connectors.AzureAISearch; namespace Memory; diff --git a/dotnet/samples/Concepts/Memory/VectorStore_Langchain_Interop.cs b/dotnet/samples/Concepts/Memory/VectorStore_Langchain_Interop.cs index a31e9cead6e7..234d7314d307 100644 --- a/dotnet/samples/Concepts/Memory/VectorStore_Langchain_Interop.cs +++ b/dotnet/samples/Concepts/Memory/VectorStore_Langchain_Interop.cs @@ -5,7 +5,6 @@ using Memory.VectorStoreLangchainInterop; using Microsoft.Extensions.AI; using Microsoft.Extensions.VectorData; -using Pinecone; using StackExchange.Redis; namespace Memory; @@ -25,17 +24,6 @@ namespace Memory; /// public class VectorStore_Langchain_Interop(ITestOutputHelper output) : BaseTest(output) { - /// - /// Shows how to read data from a Pinecone collection that was created and ingested using Langchain. - /// - [Fact] - public async Task ReadDataFromLangchainPineconeAsync() - { - var pineconeClient = new PineconeClient(TestConfiguration.Pinecone.ApiKey); - var vectorStore = PineconeFactory.CreatePineconeLangchainInteropVectorStore(pineconeClient); - await this.ReadDataFromCollectionAsync(vectorStore, "pets"); - } - /// /// Shows how to read data from a Redis collection that was created and ingested using Langchain. /// diff --git a/dotnet/samples/Concepts/Memory/VectorStore_VectorSearch_MultiStore_AzureAISearch.cs b/dotnet/samples/Concepts/Memory/VectorStore_VectorSearch_MultiStore_AzureAISearch.cs index 20952c325589..81cd303017d6 100644 --- a/dotnet/samples/Concepts/Memory/VectorStore_VectorSearch_MultiStore_AzureAISearch.cs +++ b/dotnet/samples/Concepts/Memory/VectorStore_VectorSearch_MultiStore_AzureAISearch.cs @@ -4,10 +4,10 @@ using Azure.AI.OpenAI; using Azure.Identity; using Azure.Search.Documents.Indexes; +using CommunityToolkit.VectorData.AzureAISearch; using Microsoft.Extensions.AI; using Microsoft.Extensions.DependencyInjection; using Microsoft.SemanticKernel; -using Microsoft.SemanticKernel.Connectors.AzureAISearch; namespace Memory; diff --git a/dotnet/samples/Concepts/Memory/VectorStore_VectorSearch_MultiStore_InMemory.cs b/dotnet/samples/Concepts/Memory/VectorStore_VectorSearch_MultiStore_InMemory.cs index 034f59ff715b..f88f893c489d 100644 --- a/dotnet/samples/Concepts/Memory/VectorStore_VectorSearch_MultiStore_InMemory.cs +++ b/dotnet/samples/Concepts/Memory/VectorStore_VectorSearch_MultiStore_InMemory.cs @@ -2,10 +2,10 @@ using Azure.AI.OpenAI; using Azure.Identity; +using CommunityToolkit.VectorData.InMemory; using Microsoft.Extensions.AI; using Microsoft.Extensions.DependencyInjection; using Microsoft.SemanticKernel; -using Microsoft.SemanticKernel.Connectors.InMemory; namespace Memory; diff --git a/dotnet/samples/Concepts/Memory/VectorStore_VectorSearch_MultiStore_Postgres.cs b/dotnet/samples/Concepts/Memory/VectorStore_VectorSearch_MultiStore_Postgres.cs index f3351416c039..3995ba486c87 100644 --- a/dotnet/samples/Concepts/Memory/VectorStore_VectorSearch_MultiStore_Postgres.cs +++ b/dotnet/samples/Concepts/Memory/VectorStore_VectorSearch_MultiStore_Postgres.cs @@ -2,11 +2,11 @@ using Azure.AI.OpenAI; using Azure.Identity; +using CommunityToolkit.VectorData.PgVector; using Memory.VectorStoreFixtures; using Microsoft.Extensions.AI; using Microsoft.Extensions.DependencyInjection; using Microsoft.SemanticKernel; -using Microsoft.SemanticKernel.Connectors.PgVector; namespace Memory; diff --git a/dotnet/samples/Concepts/Memory/VectorStore_VectorSearch_MultiStore_Qdrant.cs b/dotnet/samples/Concepts/Memory/VectorStore_VectorSearch_MultiStore_Qdrant.cs index 4912c0b8e912..3640c4ba7330 100644 --- a/dotnet/samples/Concepts/Memory/VectorStore_VectorSearch_MultiStore_Qdrant.cs +++ b/dotnet/samples/Concepts/Memory/VectorStore_VectorSearch_MultiStore_Qdrant.cs @@ -2,11 +2,11 @@ using Azure.AI.OpenAI; using Azure.Identity; +using CommunityToolkit.VectorData.Qdrant; using Memory.VectorStoreFixtures; using Microsoft.Extensions.AI; using Microsoft.Extensions.DependencyInjection; using Microsoft.SemanticKernel; -using Microsoft.SemanticKernel.Connectors.Qdrant; using Qdrant.Client; namespace Memory; diff --git a/dotnet/samples/Concepts/Memory/VectorStore_VectorSearch_MultiStore_Redis.cs b/dotnet/samples/Concepts/Memory/VectorStore_VectorSearch_MultiStore_Redis.cs index 9e0105aa65ed..ae8e2e1d2bab 100644 --- a/dotnet/samples/Concepts/Memory/VectorStore_VectorSearch_MultiStore_Redis.cs +++ b/dotnet/samples/Concepts/Memory/VectorStore_VectorSearch_MultiStore_Redis.cs @@ -2,11 +2,11 @@ using Azure.AI.OpenAI; using Azure.Identity; +using CommunityToolkit.VectorData.Redis; using Memory.VectorStoreFixtures; using Microsoft.Extensions.AI; using Microsoft.Extensions.DependencyInjection; using Microsoft.SemanticKernel; -using Microsoft.SemanticKernel.Connectors.Redis; using StackExchange.Redis; namespace Memory; diff --git a/dotnet/samples/Concepts/Memory/VectorStore_VectorSearch_MultiVector.cs b/dotnet/samples/Concepts/Memory/VectorStore_VectorSearch_MultiVector.cs index b3a2cec40609..99707dd0cf62 100644 --- a/dotnet/samples/Concepts/Memory/VectorStore_VectorSearch_MultiVector.cs +++ b/dotnet/samples/Concepts/Memory/VectorStore_VectorSearch_MultiVector.cs @@ -2,9 +2,9 @@ using Azure.AI.OpenAI; using Azure.Identity; +using CommunityToolkit.VectorData.InMemory; using Microsoft.Extensions.AI; using Microsoft.Extensions.VectorData; -using Microsoft.SemanticKernel.Connectors.InMemory; namespace Memory; diff --git a/dotnet/samples/Concepts/Memory/VectorStore_VectorSearch_Paging.cs b/dotnet/samples/Concepts/Memory/VectorStore_VectorSearch_Paging.cs index 2bf34cd0c785..60ffef9cea61 100644 --- a/dotnet/samples/Concepts/Memory/VectorStore_VectorSearch_Paging.cs +++ b/dotnet/samples/Concepts/Memory/VectorStore_VectorSearch_Paging.cs @@ -1,7 +1,7 @@ // Copyright (c) Microsoft. All rights reserved. +using CommunityToolkit.VectorData.InMemory; using Microsoft.Extensions.VectorData; -using Microsoft.SemanticKernel.Connectors.InMemory; namespace Memory; diff --git a/dotnet/samples/Concepts/Memory/VectorStore_VectorSearch_Simple.cs b/dotnet/samples/Concepts/Memory/VectorStore_VectorSearch_Simple.cs index 291198fd5b29..bae6fe82175a 100644 --- a/dotnet/samples/Concepts/Memory/VectorStore_VectorSearch_Simple.cs +++ b/dotnet/samples/Concepts/Memory/VectorStore_VectorSearch_Simple.cs @@ -2,9 +2,9 @@ using Azure.AI.OpenAI; using Azure.Identity; +using CommunityToolkit.VectorData.InMemory; using Microsoft.Extensions.AI; using Microsoft.Extensions.VectorData; -using Microsoft.SemanticKernel.Connectors.InMemory; namespace Memory; diff --git a/dotnet/samples/Concepts/Memory/VolatileVectorStore_LoadData.cs b/dotnet/samples/Concepts/Memory/VolatileVectorStore_LoadData.cs index 2e2af26e7d93..dc14c1acf8e7 100644 --- a/dotnet/samples/Concepts/Memory/VolatileVectorStore_LoadData.cs +++ b/dotnet/samples/Concepts/Memory/VolatileVectorStore_LoadData.cs @@ -3,9 +3,9 @@ using System.ClientModel; using System.ClientModel.Primitives; using System.Text.Json; +using CommunityToolkit.VectorData.InMemory; using Microsoft.Extensions.AI; using Microsoft.Extensions.VectorData; -using Microsoft.SemanticKernel.Connectors.InMemory; using Microsoft.SemanticKernel.Data; using Resources; diff --git a/dotnet/samples/Concepts/Optimization/FrugalGPTWithFilters.cs b/dotnet/samples/Concepts/Optimization/FrugalGPTWithFilters.cs index 132781e96393..1bd908f6d17a 100644 --- a/dotnet/samples/Concepts/Optimization/FrugalGPTWithFilters.cs +++ b/dotnet/samples/Concepts/Optimization/FrugalGPTWithFilters.cs @@ -1,12 +1,12 @@ // Copyright (c) Microsoft. All rights reserved. using System.Runtime.CompilerServices; +using CommunityToolkit.VectorData.InMemory; using Microsoft.Extensions.AI; using Microsoft.Extensions.DependencyInjection; using Microsoft.Extensions.VectorData; using Microsoft.SemanticKernel; using Microsoft.SemanticKernel.ChatCompletion; -using Microsoft.SemanticKernel.Connectors.InMemory; using Microsoft.SemanticKernel.PromptTemplates.Handlebars; using Microsoft.SemanticKernel.Services; diff --git a/dotnet/samples/Concepts/RAG/WithPlugins.cs b/dotnet/samples/Concepts/RAG/WithPlugins.cs index 100b4f28a3f7..ac4055e95f0f 100644 --- a/dotnet/samples/Concepts/RAG/WithPlugins.cs +++ b/dotnet/samples/Concepts/RAG/WithPlugins.cs @@ -2,10 +2,10 @@ using System.Net.Http.Headers; using System.Text.Json; +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.PromptTemplates.Handlebars; using OpenAI; diff --git a/dotnet/samples/Concepts/Search/VectorStore_TextSearch.cs b/dotnet/samples/Concepts/Search/VectorStore_TextSearch.cs index 3bd36a4aaa25..9de850430186 100644 --- a/dotnet/samples/Concepts/Search/VectorStore_TextSearch.cs +++ b/dotnet/samples/Concepts/Search/VectorStore_TextSearch.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; using Microsoft.SemanticKernel.Data; using OpenAI; diff --git a/dotnet/samples/Demos/AgentFrameworkWithAspire/ChatWithAgent.ApiService/ChatWithAgent.ApiService.csproj b/dotnet/samples/Demos/AgentFrameworkWithAspire/ChatWithAgent.ApiService/ChatWithAgent.ApiService.csproj index 97a8fd847747..f8d23a8de1b8 100644 --- a/dotnet/samples/Demos/AgentFrameworkWithAspire/ChatWithAgent.ApiService/ChatWithAgent.ApiService.csproj +++ b/dotnet/samples/Demos/AgentFrameworkWithAspire/ChatWithAgent.ApiService/ChatWithAgent.ApiService.csproj @@ -15,7 +15,7 @@ - + diff --git a/dotnet/samples/Demos/ModelContextProtocolClientServer/MCPServer/MCPServer.csproj b/dotnet/samples/Demos/ModelContextProtocolClientServer/MCPServer/MCPServer.csproj index 55b4a187a65e..411324d8148c 100644 --- a/dotnet/samples/Demos/ModelContextProtocolClientServer/MCPServer/MCPServer.csproj +++ b/dotnet/samples/Demos/ModelContextProtocolClientServer/MCPServer/MCPServer.csproj @@ -32,7 +32,7 @@ - + diff --git a/dotnet/samples/Demos/ModelContextProtocolClientServer/MCPServer/Program.cs b/dotnet/samples/Demos/ModelContextProtocolClientServer/MCPServer/Program.cs index 856386d66827..27644394af45 100644 --- a/dotnet/samples/Demos/ModelContextProtocolClientServer/MCPServer/Program.cs +++ b/dotnet/samples/Demos/ModelContextProtocolClientServer/MCPServer/Program.cs @@ -1,5 +1,6 @@ // Copyright (c) Microsoft. All rights reserved. +using CommunityToolkit.VectorData.InMemory; using MCPServer; using MCPServer.ProjectResources; using MCPServer.Prompts; @@ -9,7 +10,6 @@ using Microsoft.Extensions.VectorData; using Microsoft.SemanticKernel; using Microsoft.SemanticKernel.Agents; -using Microsoft.SemanticKernel.Connectors.InMemory; using ModelContextProtocol.Protocol; using ModelContextProtocol.Server; diff --git a/dotnet/samples/Demos/OnnxSimpleRAG/OnnxSimpleRAG.csproj b/dotnet/samples/Demos/OnnxSimpleRAG/OnnxSimpleRAG.csproj index 9507fd81365c..e0e2dd55bc58 100644 --- a/dotnet/samples/Demos/OnnxSimpleRAG/OnnxSimpleRAG.csproj +++ b/dotnet/samples/Demos/OnnxSimpleRAG/OnnxSimpleRAG.csproj @@ -16,7 +16,7 @@ - + diff --git a/dotnet/samples/Demos/OnnxSimpleRAG/Program.cs b/dotnet/samples/Demos/OnnxSimpleRAG/Program.cs index 94d49fdd1707..96bb361b7554 100644 --- a/dotnet/samples/Demos/OnnxSimpleRAG/Program.cs +++ b/dotnet/samples/Demos/OnnxSimpleRAG/Program.cs @@ -3,13 +3,13 @@ using System; using System.IO; using System.Linq; +using CommunityToolkit.VectorData.InMemory; using Microsoft.Extensions.AI; using Microsoft.Extensions.Configuration; using Microsoft.Extensions.VectorData; using Microsoft.ML.OnnxRuntimeGenAI; using Microsoft.SemanticKernel; using Microsoft.SemanticKernel.ChatCompletion; -using Microsoft.SemanticKernel.Connectors.InMemory; using Microsoft.SemanticKernel.Connectors.Onnx; using Microsoft.SemanticKernel.Data; using Microsoft.SemanticKernel.PromptTemplates.Handlebars; @@ -134,6 +134,6 @@ internal sealed class InformationItem [TextSearchResultValue] public string Text { get; set; } = string.Empty; - [VectorStoreVector(Dimensions: 384)] + [VectorStoreVector(384)] public string Embedding => this.Text; } diff --git a/dotnet/samples/Demos/VectorStoreRAG/VectorStoreRAG.csproj b/dotnet/samples/Demos/VectorStoreRAG/VectorStoreRAG.csproj index 97b89013fef8..e4640a13f8eb 100644 --- a/dotnet/samples/Demos/VectorStoreRAG/VectorStoreRAG.csproj +++ b/dotnet/samples/Demos/VectorStoreRAG/VectorStoreRAG.csproj @@ -6,6 +6,8 @@ enable enable $(NoWarn);SKEXP0001;SKEXP0010 + + true c4203b00-7179-47c1-8701-ee352e381412 @@ -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 @@ - -