Skip to content

Commit ffb0827

Browse files
SergeyMenshykhmarkwallace-microsoft
authored andcommitted
.Net: Simplify memory namespaces (microsoft#4230)
Closes task `#1` of the issue - microsoft#3151 ### Description The `Memory` keyword is removed from the namespaces to make them slightly shorter and aligned with AI connector namespaces: - `Microsoft.SemanticKernel.Connectors.Memory.Chroma` -> `Microsoft.SemanticKernel.Connectors.Chroma` - `Microsoft.SemanticKernel.Connectors.Memory.AzureAISearch` -> `Microsoft.SemanticKernel.Connectors.AzureAISearch` - same for Kusto, Milvus, etc The `MemoryBuilder`, `VolatileMemoryStore` classes that live in the `Plugins.Memory` project under the `Microsoft.SemanticKernel.Plugins.Memory` namespace are moved to `Microsoft.SemanticKernel.Memory` namespace where they naturally belong to. --------- Co-authored-by: Mark Wallace <[email protected]>
1 parent a0fd1c4 commit ffb0827

168 files changed

Lines changed: 212 additions & 243 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

‎dotnet/samples/KernelSyntaxExamples/Example14_SemanticMemory.cs‎

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,9 @@
33
using System;
44
using System.Collections.Generic;
55
using System.Threading.Tasks;
6-
using Microsoft.SemanticKernel.Connectors.Memory.AzureAISearch;
6+
using Microsoft.SemanticKernel.Connectors.AzureAISearch;
77
using Microsoft.SemanticKernel.Connectors.OpenAI;
88
using Microsoft.SemanticKernel.Memory;
9-
using Microsoft.SemanticKernel.Plugins.Memory;
109

1110
/* The files contains two examples about SK Semantic Memory.
1211
*

‎dotnet/samples/KernelSyntaxExamples/Example15_TextMemoryPlugin.cs‎

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -4,18 +4,18 @@
44
using System.Threading;
55
using System.Threading.Tasks;
66
using Microsoft.SemanticKernel;
7-
using Microsoft.SemanticKernel.Connectors.Memory.AzureAISearch;
8-
using Microsoft.SemanticKernel.Connectors.Memory.Chroma;
9-
using Microsoft.SemanticKernel.Connectors.Memory.DuckDB;
10-
using Microsoft.SemanticKernel.Connectors.Memory.Kusto;
11-
using Microsoft.SemanticKernel.Connectors.Memory.MongoDB;
12-
using Microsoft.SemanticKernel.Connectors.Memory.Pinecone;
13-
using Microsoft.SemanticKernel.Connectors.Memory.Postgres;
14-
using Microsoft.SemanticKernel.Connectors.Memory.Qdrant;
15-
using Microsoft.SemanticKernel.Connectors.Memory.Redis;
16-
using Microsoft.SemanticKernel.Connectors.Memory.Sqlite;
17-
using Microsoft.SemanticKernel.Connectors.Memory.Weaviate;
7+
using Microsoft.SemanticKernel.Connectors.AzureAISearch;
8+
using Microsoft.SemanticKernel.Connectors.Chroma;
9+
using Microsoft.SemanticKernel.Connectors.DuckDB;
10+
using Microsoft.SemanticKernel.Connectors.Kusto;
11+
using Microsoft.SemanticKernel.Connectors.MongoDB;
1812
using Microsoft.SemanticKernel.Connectors.OpenAI;
13+
using Microsoft.SemanticKernel.Connectors.Pinecone;
14+
using Microsoft.SemanticKernel.Connectors.Postgres;
15+
using Microsoft.SemanticKernel.Connectors.Qdrant;
16+
using Microsoft.SemanticKernel.Connectors.Redis;
17+
using Microsoft.SemanticKernel.Connectors.Sqlite;
18+
using Microsoft.SemanticKernel.Connectors.Weaviate;
1919
using Microsoft.SemanticKernel.Memory;
2020
using Microsoft.SemanticKernel.Plugins.Memory;
2121
using Npgsql;

‎dotnet/src/Connectors/Connectors.Memory.AzureAISearch/AzureAISearchMemoryRecord.cs‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
using Microsoft.SemanticKernel.Memory;
77
using Microsoft.SemanticKernel.Text;
88

9-
namespace Microsoft.SemanticKernel.Connectors.Memory.AzureAISearch;
9+
namespace Microsoft.SemanticKernel.Connectors.AzureAISearch;
1010

1111
/// <summary>
1212
/// Azure AI Search record and index definition.

‎dotnet/src/Connectors/Connectors.Memory.AzureAISearch/AzureAISearchMemoryStore.cs‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
using Microsoft.SemanticKernel.Http;
1919
using Microsoft.SemanticKernel.Memory;
2020

21-
namespace Microsoft.SemanticKernel.Connectors.Memory.AzureAISearch;
21+
namespace Microsoft.SemanticKernel.Connectors.AzureAISearch;
2222

2323
/// <summary>
2424
/// <see cref="AzureAISearchMemoryStore"/> is a memory store implementation using Azure AI Search.

‎dotnet/src/Connectors/Connectors.Memory.AzureAISearch/Connectors.Memory.AzureAISearch.csproj‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
<Project Sdk="Microsoft.NET.Sdk">
22
<PropertyGroup>
33
<!-- THIS PROPERTY GROUP MUST COME FIRST -->
4-
<AssemblyName>Microsoft.SemanticKernel.Connectors.Memory.AzureAISearch</AssemblyName>
5-
<RootNamespace>Microsoft.SemanticKernel.Connectors.Memory.AzureAISearch</RootNamespace>
4+
<AssemblyName>Microsoft.SemanticKernel.Connectors.AzureAISearch</AssemblyName>
5+
<RootNamespace>Microsoft.SemanticKernel.Connectors.AzureAISearch</RootNamespace>
66
<TargetFramework>netstandard2.0</TargetFramework>
77

88
<!--NU5104: A stable release of a package should not have a prerelease dependency.-->
@@ -15,7 +15,7 @@
1515

1616
<PropertyGroup>
1717
<!-- NuGet Package Settings -->
18-
<PackageId>Microsoft.SemanticKernel.Connectors.Memory.AzureAISearch</PackageId>
18+
<PackageId>Microsoft.SemanticKernel.Connectors.AzureAISearch</PackageId>
1919
<Title>Semantic Kernel - Azure AI Search Semantic Memory</Title>
2020
<Description>Azure AI Search Semantic Memory connector for Semantic Kernel</Description>
2121
</PropertyGroup>

‎dotnet/src/Connectors/Connectors.Memory.AzureAISearch/RequestFailedExceptionExtensions.cs‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
using Azure;
55
using Microsoft.SemanticKernel.Http;
66

7-
namespace Microsoft.SemanticKernel.Connectors.Memory.AzureAISearch;
7+
namespace Microsoft.SemanticKernel.Connectors.AzureAISearch;
88

99
/// <summary>
1010
/// Provides extension methods for the <see cref="RequestFailedException"/> class.

‎dotnet/src/Connectors/Connectors.Memory.Chroma/ChromaClient.cs‎

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,11 +10,9 @@
1010
using System.Threading.Tasks;
1111
using Microsoft.Extensions.Logging;
1212
using Microsoft.Extensions.Logging.Abstractions;
13-
using Microsoft.SemanticKernel.Connectors.Memory.Chroma.Http.ApiSchema;
14-
using Microsoft.SemanticKernel.Connectors.Memory.Chroma.Http.ApiSchema.Internal;
1513
using Microsoft.SemanticKernel.Http;
1614

17-
namespace Microsoft.SemanticKernel.Connectors.Memory.Chroma;
15+
namespace Microsoft.SemanticKernel.Connectors.Chroma;
1816

1917
/// <summary>
2018
/// An implementation of a client for the Chroma Vector DB. This class is used to

‎dotnet/src/Connectors/Connectors.Memory.Chroma/ChromaMemoryBuilderExtensions.cs‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@
22

33
using System.Net.Http;
44
using Microsoft.SemanticKernel.Http;
5-
using Microsoft.SemanticKernel.Plugins.Memory;
5+
using Microsoft.SemanticKernel.Memory;
66

7-
namespace Microsoft.SemanticKernel.Connectors.Memory.Chroma;
7+
namespace Microsoft.SemanticKernel.Connectors.Chroma;
88

99
/// <summary>
1010
/// Provides extension methods for the <see cref="MemoryBuilder"/> class to configure Chroma memory connector.

‎dotnet/src/Connectors/Connectors.Memory.Chroma/ChromaMemoryStore.cs‎

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,12 +11,11 @@
1111
using System.Threading.Tasks;
1212
using Microsoft.Extensions.Logging;
1313
using Microsoft.Extensions.Logging.Abstractions;
14-
using Microsoft.SemanticKernel.Connectors.Memory.Chroma.Http.ApiSchema;
1514
using Microsoft.SemanticKernel.Http;
1615
using Microsoft.SemanticKernel.Memory;
1716
using Microsoft.SemanticKernel.Text;
1817

19-
namespace Microsoft.SemanticKernel.Connectors.Memory.Chroma;
18+
namespace Microsoft.SemanticKernel.Connectors.Chroma;
2019

2120
/// <summary>
2221
/// An implementation of <see cref="IMemoryStore" /> for Chroma.

‎dotnet/src/Connectors/Connectors.Memory.Chroma/Connectors.Memory.Chroma.csproj‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
<PropertyGroup>
44
<!-- THIS PROPERTY GROUP MUST COME FIRST -->
5-
<AssemblyName>Microsoft.SemanticKernel.Connectors.Memory.Chroma</AssemblyName>
5+
<AssemblyName>Microsoft.SemanticKernel.Connectors.Chroma</AssemblyName>
66
<RootNamespace>$(AssemblyName)</RootNamespace>
77
<TargetFramework>netstandard2.0</TargetFramework>
88
</PropertyGroup>

0 commit comments

Comments
 (0)