Add community and covariate records for pipeline parity#1
Merged
KSemenenko merged 8 commits intomainfrom Oct 30, 2025
Merged
Conversation
There was a problem hiding this comment.
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
CommunityRecordto represent hierarchical community data with parent-child relationships - Introduces
CovariateRecordto 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; | |||
There was a problem hiding this comment.
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; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Testing
dotnet build GraphRag.slnxdotnet test tests/ManagedCode.GraphRag.Tests/ManagedCode.GraphRag.Tests.csproj(fails: Docker endpoint unavailable in CI container)https://chatgpt.com/codex/tasks/task_e_69028ebe28188326a9900f58c283dfd7