Skip to content

Commit

Permalink
Upgrade Service to 0.29
Browse files Browse the repository at this point in the history
  • Loading branch information
dluc committed Feb 20, 2024
1 parent 5df8166 commit 8a2c25d
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 19 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@

<ItemGroup>
<PackageReference Include="Microsoft.SemanticKernel" Version="1.4.0" />
<PackageReference Include="Microsoft.KernelMemory.SemanticKernelPlugin" Version="0.28.240212.1" />
<PackageReference Include="Microsoft.KernelMemory.SemanticKernelPlugin" Version="0.29.240219.2" />
</ItemGroup>

<ItemGroup>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
</PropertyGroup>

<ItemGroup>
<PackageReference Include="Microsoft.KernelMemory.Core" Version="0.28.240212.1" />
<PackageReference Include="Microsoft.KernelMemory.Core" Version="0.29.240219.2" />
</ItemGroup>

<ItemGroup>
Expand Down
11 changes: 0 additions & 11 deletions service/Service/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -68,22 +68,11 @@ public static void Main(string[] args)
// appBuilder.Services.AddHandlerAsHostedService<...CLASS...>("...STEP NAME...");
// appBuilder.Services.AddHandlerAsHostedService("...assembly file name...", "...type full name...", "...STEP NAME...");

#if KernelMemoryDev
// Register all pipeline handlers defined in the configuration to run as hosted services
foreach (KeyValuePair<string, HandlerConfig> handlerConfig in config.Service.Handlers)
{
appBuilder.Services.AddHandlerAsHostedService(config: handlerConfig.Value, stepName: handlerConfig.Key);
}
#else
appBuilder.Services.AddHandlerAsHostedService<Microsoft.KernelMemory.Handlers.TextExtractionHandler>("extract");
appBuilder.Services.AddHandlerAsHostedService<Microsoft.KernelMemory.Handlers.TextPartitioningHandler>("partition");
appBuilder.Services.AddHandlerAsHostedService<Microsoft.KernelMemory.Handlers.GenerateEmbeddingsHandler>("gen_embeddings");
appBuilder.Services.AddHandlerAsHostedService<Microsoft.KernelMemory.Handlers.SaveRecordsHandler>("save_records");
appBuilder.Services.AddHandlerAsHostedService<Microsoft.KernelMemory.Handlers.SummarizationHandler>("summarize");
appBuilder.Services.AddHandlerAsHostedService<Microsoft.KernelMemory.Handlers.DeleteGeneratedFilesHandler>("delete_generated_files");
appBuilder.Services.AddHandlerAsHostedService<Microsoft.KernelMemory.Handlers.DeleteDocumentHandler>("private_delete_document");
appBuilder.Services.AddHandlerAsHostedService<Microsoft.KernelMemory.Handlers.DeleteIndexHandler>("private_delete_index");
#endif
}

// Some OpenAPI Explorer/Swagger dependencies
Expand Down
10 changes: 5 additions & 5 deletions service/Service/Service.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -12,21 +12,21 @@
<ItemGroup>
<!-- Microsoft.KernelMemory.Core includes also extensions without external dependencies, e.g. all Azure extensions -->

<PackageReference Include="Microsoft.KernelMemory.Core" Version="0.28.240212.1" Condition="'$(SolutionName)' != 'KernelMemoryDev'" />
<PackageReference Include="Microsoft.KernelMemory.Core" Version="0.29.240219.2" Condition="'$(SolutionName)' != 'KernelMemoryDev'" />
<ProjectReference Include="..\Core\Core.csproj" Condition="'$(SolutionName)' == 'KernelMemoryDev'"/>

<!-- These extensions are used by ServiceConfiguration to support third party dependencies -->

<PackageReference Include="Microsoft.KernelMemory.AI.LlamaSharp" Version="0.28.240212.1" Condition="'$(SolutionName)' != 'KernelMemoryDev'" />
<PackageReference Include="Microsoft.KernelMemory.AI.LlamaSharp" Version="0.29.240219.2" Condition="'$(SolutionName)' != 'KernelMemoryDev'" />
<ProjectReference Include="..\..\extensions\LlamaSharp\LlamaSharp\LlamaSharp.csproj" Condition="'$(SolutionName)' == 'KernelMemoryDev'"/>

<PackageReference Include="Microsoft.KernelMemory.MemoryDb.Postgres" Version="0.28.240212.1" Condition="'$(SolutionName)' != 'KernelMemoryDev'" />
<PackageReference Include="Microsoft.KernelMemory.MemoryDb.Postgres" Version="0.29.240219.2" Condition="'$(SolutionName)' != 'KernelMemoryDev'" />
<ProjectReference Include="..\..\extensions\Postgres\Postgres\Postgres.csproj" Condition="'$(SolutionName)' == 'KernelMemoryDev'"/>

<PackageReference Include="Microsoft.KernelMemory.Orchestration.RabbitMQ" Version="0.28.240212.1" Condition="'$(SolutionName)' != 'KernelMemoryDev'" />
<PackageReference Include="Microsoft.KernelMemory.Orchestration.RabbitMQ" Version="0.29.240219.2" Condition="'$(SolutionName)' != 'KernelMemoryDev'" />
<ProjectReference Include="..\..\extensions\RabbitMQ\RabbitMQ.csproj" Condition="'$(SolutionName)' == 'KernelMemoryDev'"/>

<PackageReference Include="Microsoft.KernelMemory.MemoryDb.Redis" Version="0.28.240212.1" Condition="'$(SolutionName)' != 'KernelMemoryDev'" />
<PackageReference Include="Microsoft.KernelMemory.MemoryDb.Redis" Version="0.29.240219.2" Condition="'$(SolutionName)' != 'KernelMemoryDev'" />
<ProjectReference Include="..\..\extensions\Redis\Redis\Redis.csproj" Condition="'$(SolutionName)' == 'KernelMemoryDev'"/>
</ItemGroup>

Expand Down
2 changes: 1 addition & 1 deletion tools/InteractiveSetup/InteractiveSetup.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
</PropertyGroup>

<ItemGroup>
<PackageReference Include="Microsoft.KernelMemory.Core" Version="0.28.240212.1" Condition="'$(SolutionName)' != 'KernelMemoryDev'"/>
<PackageReference Include="Microsoft.KernelMemory.Core" Version="0.29.240219.2" Condition="'$(SolutionName)' != 'KernelMemoryDev'" />
<ProjectReference Include="..\..\service\Core\Core.csproj" Condition="'$(SolutionName)' == 'KernelMemoryDev'"/>
</ItemGroup>

Expand Down

0 comments on commit 8a2c25d

Please sign in to comment.