Skip to content

Commit 967ea11

Browse files
committed
Update .NET & libs
1 parent a7a3ea1 commit 967ea11

7 files changed

Lines changed: 20 additions & 20 deletions

File tree

.github/workflows/dotnet.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ jobs:
2828
- name: Setup .NET
2929
uses: actions/setup-dotnet@v5
3030
with:
31-
dotnet-version: 8.0.x
31+
dotnet-version: 10.0.x
3232
- name: Restore dependencies
3333
run: dotnet restore
3434
- name: Build

BingusApi/BingusApi.csproj

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,17 @@
11
<Project Sdk="Microsoft.NET.Sdk.Web">
22
<PropertyGroup>
3-
<TargetFramework>net8.0</TargetFramework>
3+
<TargetFramework>net10.0</TargetFramework>
44
<Nullable>enable</Nullable>
55
<ImplicitUsings>enable</ImplicitUsings>
66
</PropertyGroup>
77
<ItemGroup>
88
<PackageReference Include="AspNetCoreRateLimit" Version="5.0.0" />
9-
<PackageReference Include="CSharpier.MsBuild" Version="1.0.3">
9+
<PackageReference Include="CSharpier.MsBuild" Version="1.2.5">
1010
<PrivateAssets>all</PrivateAssets>
1111
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
1212
</PackageReference>
13-
<PackageReference Include="RocksDB" Version="10.2.1.58549" />
14-
<PackageReference Include="Swashbuckle.AspNetCore" Version="9.0.1" />
13+
<PackageReference Include="RocksDB" Version="10.4.2.63147" />
14+
<PackageReference Include="Swashbuckle.AspNetCore" Version="10.1.0" />
1515
</ItemGroup>
1616
<ItemGroup>
1717
<ProjectReference Include="..\BingusLib\BingusLib.csproj" />

BingusApi/Program.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ string GetConfig(string fileName)
7373
));
7474
builder.Services.AddSingleton(sp =>
7575
{
76-
var parameters = new SmallWorld<ILazyItem<float[]>, float>.Parameters
76+
var parameters = new SmallWorldParameters
7777
{
7878
M = 15,
7979
LevelLambda = 1 / Math.Log(15),

BingusLib/BingusLib.csproj

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,24 @@
11
<Project Sdk="Microsoft.NET.Sdk">
22
<PropertyGroup>
33
<OutputType>Library</OutputType>
4-
<TargetFramework>net8.0</TargetFramework>
4+
<TargetFramework>net10.0</TargetFramework>
55
<ImplicitUsings>enable</ImplicitUsings>
66
<Nullable>enable</Nullable>
77
<ErrorOnDuplicatePublishOutputFiles>false</ErrorOnDuplicatePublishOutputFiles>
88
</PropertyGroup>
99
<ItemGroup>
10-
<PackageReference Include="CSharpier.MsBuild" Version="1.0.3">
10+
<PackageReference Include="CSharpier.MsBuild" Version="1.2.5">
1111
<PrivateAssets>all</PrivateAssets>
1212
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
1313
</PackageReference>
14-
<PackageReference Include="HNSW" Version="25.3.56901" />
15-
<PackageReference Include="LLamaSharp" Version="0.24.0" />
16-
<PackageReference Include="LLamaSharp.Backend.Cpu" Version="0.24.0" />
14+
<PackageReference Include="HNSW" Version="25.12.63133" />
15+
<PackageReference Include="LLamaSharp" Version="0.25.0" />
16+
<PackageReference Include="LLamaSharp.Backend.Cpu" Version="0.25.0" />
1717
<PackageReference Include="MathNet.Numerics" Version="5.0.0" />
18-
<PackageReference Include="Microsoft.Extensions.Logging" Version="9.0.6" />
19-
<PackageReference Include="Microsoft.Extensions.Logging.Console" Version="9.0.6" />
20-
<PackageReference Include="Microsoft.ML" Version="4.0.2" />
21-
<PackageReference Include="Microsoft.ML.OnnxRuntime" Version="1.22.0" />
18+
<PackageReference Include="Microsoft.Extensions.Logging" Version="10.0.1" />
19+
<PackageReference Include="Microsoft.Extensions.Logging.Console" Version="10.0.1" />
20+
<PackageReference Include="Microsoft.ML" Version="5.0.0" />
21+
<PackageReference Include="Microsoft.ML.OnnxRuntime" Version="1.23.2" />
2222
</ItemGroup>
2323
<ItemGroup>
2424
<None Update="libs\libortextensions.so">

BingusLib/FaqHandling/FaqHandler.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ public FaqHandler(
2323
ILogger<FaqHandler>? logger = null,
2424
Func<float[], float[], float>? distanceFunction = null,
2525
IProvideRandomValues? randomProvider = null,
26-
SmallWorld<ILazyItem<float[]>, float>.Parameters? parameters = null
26+
SmallWorldParameters? parameters = null
2727
)
2828
{
2929
_sentenceEncoder = sentenceEncoder;

BingusLib/HNSW/HnswHandler.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ namespace BingusLib.HNSW
55
{
66
public class HnswHandler
77
{
8-
private readonly SmallWorld<ILazyItem<float[]>, float>.Parameters _hnswParameters;
8+
private readonly SmallWorldParameters _hnswParameters;
99
private readonly IProvideRandomValues _randomProvider;
1010
private readonly WrappedDistance<ILazyItem<float[]>, float[], float> _distanceFunction;
1111

@@ -14,7 +14,7 @@ public class HnswHandler
1414
public HnswHandler(
1515
Func<float[], float[], float>? distanceFunction = null,
1616
IProvideRandomValues? randomProvider = null,
17-
SmallWorld<ILazyItem<float[]>, float>.Parameters? parameters = null
17+
SmallWorldParameters? parameters = null
1818
)
1919
{
2020
_distanceFunction = new(i => i.Value, distanceFunction ?? CosineDistance.SIMD);

api.Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM mcr.microsoft.com/dotnet/sdk:8.0 AS build-env
1+
FROM mcr.microsoft.com/dotnet/sdk:10.0 AS build-env
22
WORKDIR /usr/src/app
33

44
# Copy everything
@@ -9,7 +9,7 @@ RUN dotnet restore BingusApi
99
RUN dotnet publish BingusApi -c Release -o out -p:CSharpier_Bypass=true
1010

1111
# Build runtime image
12-
FROM mcr.microsoft.com/dotnet/aspnet:8.0
12+
FROM mcr.microsoft.com/dotnet/aspnet:10.0
1313
WORKDIR /usr/src/app
1414

1515
# Install LLamaSharp runtime dependencies

0 commit comments

Comments
 (0)