feat: add documentation knowledge graph support#9
Merged
Conversation
… by default
This feature allows Blarify to parse documentation files and create a knowledge graph of important concepts, entities, and relationships. It uses LLM to intelligently extract information and automatically links documentation to relevant code nodes.
Key additions:
- New node types: DOCUMENTATION_FILE, CONCEPT, DOCUMENTED_ENTITY
- New relationships: CONTAINS_CONCEPT, DESCRIBES_ENTITY, DOCUMENTS, IMPLEMENTS_CONCEPT
- LLM-powered concept extraction from markdown, rst, and other doc formats
- Fuzzy matching to link documented entities to actual code nodes
- Configurable documentation patterns
- Test coverage for all new functionality
- All features (LLM descriptions, filesystem nodes, documentation nodes) are now enabled by default
The feature is enabled by default but can be disabled with:
```python
graph_builder = GraphBuilder(
root_path="/path/to/project",
enable_documentation_nodes=False
)
```
🤖 Generated with [Claude Code](https://claude.ai/code)
Co-Authored-By: Claude <noreply@anthropic.com>
rysweet
added a commit
that referenced
this pull request
Aug 3, 2025
feat: add documentation knowledge graph support
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
Details
This PR implements issue #8 to add documentation parsing capabilities to Blarify. The feature creates a knowledge graph from documentation files and automatically links them to relevant code elements.
New Node Types
New Relationships
Key Features
Configuration
The feature is enabled by default but can be controlled via:
Testing
All tests pass with 100% coverage for the new functionality.
Test plan
🤖 Generated with Claude Code