Skip to content

Commit 9408e75

Browse files
CopilotKSemenenko
andcommitted
Bump version to 10.0.7 and add NuGet shields to README
Co-authored-by: KSemenenko <[email protected]>
1 parent 05853fa commit 9408e75

File tree

5 files changed

+16
-10
lines changed

5 files changed

+16
-10
lines changed

Directory.Build.props

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,8 @@
2626
<RepositoryUrl>https://github.com/managedcode/graphrag</RepositoryUrl>
2727
<PackageProjectUrl>https://github.com/managedcode/graphrag</PackageProjectUrl>
2828
<Product>Managed Code GraphRag</Product>
29-
<Version>10.0.6</Version>
30-
<PackageVersion>10.0.6</PackageVersion>
29+
<Version>10.0.7</Version>
30+
<PackageVersion>10.0.7</PackageVersion>
3131

3232
</PropertyGroup>
3333
<PropertyGroup Condition="'$(GITHUB_ACTIONS)' == 'true'">

README.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,13 @@
11
# GraphRAG for .NET
22

3+
[![NuGet](https://img.shields.io/nuget/v/ManagedCode.GraphRag.svg)](https://www.nuget.org/packages/ManagedCode.GraphRag/)
4+
[![NuGet Neo4j](https://img.shields.io/nuget/v/ManagedCode.GraphRag.Neo4j.svg?label=Neo4j)](https://www.nuget.org/packages/ManagedCode.GraphRag.Neo4j/)
5+
[![NuGet Postgres](https://img.shields.io/nuget/v/ManagedCode.GraphRag.Postgres.svg?label=Postgres)](https://www.nuget.org/packages/ManagedCode.GraphRag.Postgres/)
6+
[![NuGet CosmosDb](https://img.shields.io/nuget/v/ManagedCode.GraphRag.CosmosDb.svg?label=CosmosDb)](https://www.nuget.org/packages/ManagedCode.GraphRag.CosmosDb/)
7+
[![NuGet JanusGraph](https://img.shields.io/nuget/v/ManagedCode.GraphRag.JanusGraph.svg?label=JanusGraph)](https://www.nuget.org/packages/ManagedCode.GraphRag.JanusGraph/)
8+
[![Build Status](https://github.com/managedcode/graphrag/actions/workflows/ci.yml/badge.svg)](https://github.com/managedcode/graphrag/actions)
9+
[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)
10+
311
GraphRAG for .NET is a ground-up port of Microsoft's GraphRAG reference implementation to the modern .NET 10 stack. The port keeps parity with the original Python pipelines while embracing native .NET idioms—dependency injection, logging abstractions, async I/O, and strongly-typed configuration.
412

513
> ℹ️ The upstream Python code remains available under [`submodules/graphrag-python`](submodules/graphrag-python) for side-by-side reference. Treat it as read-only unless a task explicitly targets the submodule.

src/ManagedCode.GraphRag.Postgres/ApacheAge/AgeConnectionManager.cs

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -135,12 +135,7 @@ private async Task LoadAgeAsync(NpgsqlConnection connection, CancellationToken c
135135
await using var checkCommand = connection.CreateCommand();
136136
checkCommand.CommandText = "SELECT 1 FROM pg_extension WHERE extname = 'age';";
137137
checkCommand.CommandTimeout = 0;
138-
var result = await checkCommand.ExecuteScalarAsync(cancellationToken).ConfigureAwait(false);
139-
140-
if (result is null)
141-
{
142-
throw new AgeException("AGE extension is not installed.");
143-
}
138+
var result = await checkCommand.ExecuteScalarAsync(cancellationToken).ConfigureAwait(false) ?? throw new AgeException("AGE extension is not installed.");
144139

145140
await using var load = connection.CreateCommand();
146141
load.CommandText = "LOAD 'age';";

src/ManagedCode.GraphRag/Utils/Hashing.cs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,10 @@ public static string GenerateSha512Hash(IEnumerable<KeyValuePair<string, object?
3030

3131
private static void AppendStringChunked(IncrementalHash hasher, string? value, Span<byte> buffer)
3232
{
33-
if (string.IsNullOrEmpty(value)) return;
33+
if (string.IsNullOrEmpty(value))
34+
{
35+
return;
36+
}
3437

3538
var remaining = value.AsSpan();
3639

tests/ManagedCode.GraphRag.Tests/Storage/Postgres/PostgresAgtypeParameterTests.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@
55
using GraphRag.Storage.Postgres.ApacheAge;
66
using GraphRag.Storage.Postgres.ApacheAge.Types;
77
using ManagedCode.GraphRag.Tests.Integration;
8-
using Microsoft.Extensions.Logging.Abstractions;
98
using Microsoft.Extensions.DependencyInjection;
9+
using Microsoft.Extensions.Logging.Abstractions;
1010
using Npgsql;
1111

1212
namespace ManagedCode.GraphRag.Tests.Storage.Postgres;

0 commit comments

Comments
 (0)