mirror of
https://github.com/microsoft/semantic-kernel.git
synced 2026-10-12 02:19:06 +00:00
### Motivation and Context <!-- Thank you for your contribution to the semantic-kernel repo! Please help reviewers and future users, providing the following information: 1. Why is this change required? 2. What problem does it solve? 3. What scenario does it contribute to? 4. If it fixes an open issue, please link to the issue here. --> This PR is based on feature branch created by @shawncal: https://github.com/microsoft/semantic-kernel/tree/feature/memory-plugin The changes include moving part of Memory-related logic to separate `Plugins.Memory` project, as preparation to remove `Memory` property from `Kernel` type (which will be added as Part 2 of this task). More information is available in ADR. Part 2 of this task will be available as soon as the other task regarding service/plugin registration in Kernel will be implemented and merged to `main` branch. In this case, it will be possible to remove Memory logic from main packages completely, and inject Memory as Plugin into other Plugins that require it. ### Description <!-- Describe your changes, the overall approach, the underlying design. These notes will help understanding how your code works. Thanks! --> 1. Created new project `Plugins.Memory`. 2. Moved Memory-related logic to `Plugins.Memory` project. 3. Moved Memory-related unit tests to `Plugins.UnitTests` project. 4. Added `Plugins.Memory` project as part of Semantic Kernel metapackage. 5. Updated access level of Memory data structures to `public` as part of new `Plugins.Memory` project (so they are accessible by tests and users if needed). 6. Added ADR, ### Contribution Checklist <!-- Before submitting this PR, please make sure: --> - [x] The code builds clean without any errors or warnings - [x] The PR follows the [SK Contribution Guidelines](https://github.com/microsoft/semantic-kernel/blob/main/CONTRIBUTING.md) and the [pre-submission formatting script](https://github.com/microsoft/semantic-kernel/blob/main/CONTRIBUTING.md#development-scripts) raises no violations - [x] All unit tests pass, and I have added new tests where possible - [ ] I didn't break anyone 😄 - This PR contains breaking changes as namespaces for several Memory-related classes were changed according to new project location.
72 lines
4.8 KiB
XML
72 lines
4.8 KiB
XML
<Project Sdk="Microsoft.NET.Sdk">
|
|
<PropertyGroup>
|
|
<UserSecretsId>5ee045b0-aea3-4f08-8d31-32d1a6f8fed0</UserSecretsId>
|
|
</PropertyGroup>
|
|
<PropertyGroup>
|
|
<RootNamespace></RootNamespace>
|
|
<TargetFramework>net6.0</TargetFramework>
|
|
<RollForward>LatestMajor</RollForward>
|
|
<OutputType>Exe</OutputType>
|
|
<IsPackable>false</IsPackable>
|
|
<!-- Suppress: "Declare types in namespaces", "Require ConfigureAwait" -->
|
|
<NoWarn>CA1050;CA1707;CA2007;VSTHRD111;CS1591</NoWarn>
|
|
</PropertyGroup>
|
|
<ItemGroup>
|
|
<None Remove="appsettings.json" />
|
|
</ItemGroup>
|
|
<ItemGroup>
|
|
<PackageReference Include="Azure.Identity" />
|
|
<PackageReference Include="Microsoft.Extensions.Configuration" />
|
|
<PackageReference Include="Microsoft.Extensions.Configuration.Binder" />
|
|
<PackageReference Include="Microsoft.Extensions.Configuration.EnvironmentVariables" />
|
|
<PackageReference Include="Microsoft.Extensions.Configuration.Json" />
|
|
<PackageReference Include="Microsoft.Extensions.Configuration.UserSecrets" />
|
|
<PackageReference Include="Microsoft.Extensions.DependencyInjection" />
|
|
<PackageReference Include="Microsoft.Extensions.Http" />
|
|
<PackageReference Include="Microsoft.Extensions.Logging.Console" />
|
|
<PackageReference Include="Newtonsoft.Json" />
|
|
<PackageReference Include="Polly" />
|
|
<PackageReference Include="SharpToken" />
|
|
<PackageReference Include="Microsoft.ML.Tokenizers" />
|
|
<PackageReference Include="Microsoft.DeepDev.TokenizerLib" />
|
|
<PackageReference Include="System.Linq.Async" />
|
|
</ItemGroup>
|
|
<ItemGroup>
|
|
<ProjectReference Include="..\..\src\Connectors\Connectors.AI.OpenAI\Connectors.AI.OpenAI.csproj" />
|
|
<ProjectReference Include="..\..\src\Connectors\Connectors.AI.HuggingFace\Connectors.AI.HuggingFace.csproj" />
|
|
<ProjectReference Include="..\..\src\Connectors\Connectors.Memory.AzureCognitiveSearch\Connectors.Memory.AzureCognitiveSearch.csproj" />
|
|
<ProjectReference Include="..\..\src\Connectors\Connectors.Memory.Chroma\Connectors.Memory.Chroma.csproj" />
|
|
<ProjectReference Include="..\..\src\Connectors\Connectors.Memory.Kusto\Connectors.Memory.Kusto.csproj" />
|
|
<ProjectReference Include="..\..\src\Connectors\Connectors.Memory.DuckDB\Connectors.Memory.DuckDB.csproj" />
|
|
<ProjectReference Include="..\..\src\Connectors\Connectors.Memory.Postgres\Connectors.Memory.Postgres.csproj" />
|
|
<ProjectReference Include="..\..\src\Connectors\Connectors.Memory.Sqlite\Connectors.Memory.Sqlite.csproj" />
|
|
<ProjectReference Include="..\..\src\Connectors\Connectors.Memory.Weaviate\Connectors.Memory.Weaviate.csproj" />
|
|
<ProjectReference Include="..\..\src\Connectors\Connectors.Memory.Redis\Connectors.Memory.Redis.csproj" />
|
|
<ProjectReference Include="..\..\src\Connectors\Connectors.Memory.Pinecone\Connectors.Memory.Pinecone.csproj" />
|
|
<ProjectReference Include="..\..\src\Extensions\Reliability.Basic\Reliability.Basic.csproj" />
|
|
<ProjectReference Include="..\..\src\Extensions\TemplateEngine.PromptTemplateEngine\TemplateEngine.PromptTemplateEngine.csproj" />
|
|
<ProjectReference Include="..\..\src\Extensions\Reliability.Polly\Reliability.Polly.csproj" />
|
|
<ProjectReference Include="..\..\src\Functions\Functions.Semantic\Functions.Semantic.csproj" />
|
|
<ProjectReference Include="..\..\src\SemanticKernel.Abstractions\SemanticKernel.Abstractions.csproj" />
|
|
<ProjectReference Include="..\..\src\Plugins\Plugins.Core\Plugins.Core.csproj" />
|
|
<ProjectReference Include="..\..\src\Plugins\Plugins.Memory\Plugins.Memory.csproj" />
|
|
<ProjectReference Include="..\..\src\Functions\Functions.OpenAPI\Functions.OpenAPI.csproj" />
|
|
<ProjectReference Include="..\..\src\Functions\Functions.Grpc\Functions.Grpc.csproj" />
|
|
<ProjectReference Include="..\..\src\Connectors\Connectors.Memory.Qdrant\Connectors.Memory.Qdrant.csproj" />
|
|
<ProjectReference Include="..\..\src\Plugins\Plugins.Web\Plugins.Web.csproj" />
|
|
<ProjectReference Include="..\..\src\SemanticKernel.Core\SemanticKernel.Core.csproj" />
|
|
<ProjectReference Include="..\..\src\Planners\Planners.Core\Planners.Core.csproj" />
|
|
<ProjectReference Include="..\NCalcPlugins\NCalcPlugins.csproj" />
|
|
<!-- Because some of the referenced projects have dependencies that themselves have System.Text.Json set with a minimum of 7.0. -->
|
|
<PackageReference Include="System.Text.Json" />
|
|
<PackageVersion Update="System.Text.Json" Version="7.0.3" />
|
|
</ItemGroup>
|
|
<ItemGroup>
|
|
<EmbeddedResource Include="Resources\30-user-prompt.txt" />
|
|
<EmbeddedResource Include="Resources\30-system-prompt.txt" />
|
|
<EmbeddedResource Include="Resources\30-user-context.txt" />
|
|
<EmbeddedResource Include="Resources\EnglishRoberta\dict.txt" />
|
|
<EmbeddedResource Include="Resources\EnglishRoberta\encoder.json" />
|
|
<EmbeddedResource Include="Resources\EnglishRoberta\vocab.bpe" />
|
|
</ItemGroup>
|
|
</Project> |