Skip to content

Conversation

@KSemenenko
Copy link
Member

Summary

  • add dedicated records for community and covariate tables to mirror the Python data model
  • expose pipeline table names for communities and covariates so they can be stored like other outputs
  • cover the new models with unit tests that validate property wiring

Testing

  • dotnet build GraphRag.slnx
  • dotnet test tests/ManagedCode.GraphRag.Tests/ManagedCode.GraphRag.Tests.csproj (fails: Docker endpoint unavailable in CI container)

https://chatgpt.com/codex/tasks/task_e_69028ebe28188326a9900f58c283dfd7

Copilot AI review requested due to automatic review settings October 29, 2025 22:30
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR adds support for two new GraphRAG pipeline record types: CommunityRecord and CovariateRecord, along with their corresponding table name constants and comprehensive unit tests.

  • Introduces CommunityRecord to represent hierarchical community data with parent-child relationships
  • Introduces CovariateRecord to represent claims/covariates with subject-object relationships
  • Adds pipeline table name constants for the new record types

Reviewed Changes

Copilot reviewed 5 out of 5 changed files in this pull request and generated 1 comment.

Show a summary per file
File Description
src/ManagedCode.GraphRag/Community/CommunityRecord.cs Defines the CommunityRecord positional record with 11 properties including hierarchical relationships
src/ManagedCode.GraphRag/Covariates/CovariateRecord.cs Defines the CovariateRecord positional record with 12 properties for representing claims
src/ManagedCode.GraphRag/Constants/PipelineTableNames.cs Adds Communities and Covariates table name constants
tests/ManagedCode.GraphRag.Tests/Community/CommunityRecordTests.cs Provides constructor validation test for CommunityRecord
tests/ManagedCode.GraphRag.Tests/Covariates/CovariateRecordTests.cs Provides constructor validation test for CovariateRecord

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@@ -0,0 +1,40 @@
using System.Collections.Immutable;
using System.Linq;
Copy link

Copilot AI Oct 29, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The System.Linq import is unnecessary. The .ToArray() method used in the tests is available on ImmutableArray<T> without this import. Consider removing it for cleaner code.

Suggested change
using System.Linq;

Copilot uses AI. Check for mistakes.
@KSemenenko KSemenenko merged commit f02f5c6 into main Oct 30, 2025
2 checks passed
@KSemenenko KSemenenko deleted the codex/install-dotnet9-and-review-graphrag-project branch October 30, 2025 22:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants