Knowledge Graphs in R2R
Building and managing knowledge graphs through collections
R2R’s knowledge graph system automatically extracts entities and relationships from documents, organizing them into rich semantic networks for improved search, analysis and knowledge discovery. The system integrates tightly with collections to enable flexible organization and access control.
For an end-to-end example of building a graph, check out our graph cookbook
Refer to the graphs API and SDK reference for detailed examples for interacting with graphs.
Core Concepts
Graphs in R2R operate at two levels:
-
Document Level: Individual documents undergo entity and relationship extraction using advanced language models. This captures key concepts, people, organizations, and connections within each document.
-
Collection Level: Collections act as containers for documents and maintain unified graphs. Collection graphs combine and deduplicate entities across documents while preserving source information.
Building Graphs
Element Extraction
When you extract the entities and relationships from a document, R2R:
- Analyzes document content using language models to identify entities
- Extracts relationships between entities
- Generates rich metadata and descriptions
- Creates embeddings for semantic search
These are then used to populate a graph.
For example, after extraction from a research paper:
Collection Graphs
Collections maintain unified knowledge graphs that combine entities and relationships across documents. The system:
- Deduplicates entities and relationships
- Preserves document source information
- Updates automatically as documents are added
- Enables graph-wide analysis
Knowledge Graph Communities
R2R automatically analyzes graph structure to identify logical groupings of related entities called communities. This enables:
- Higher-level understanding of themes across many documents
- Discovery of hidden connections
- Improved knowledge navigation
- Semantic topic clustering
Using Knowledge Graphs
Enhanced Search
Knowledge graphs automatically improve search by:
- Providing rich entity and relationship context
- Enabling semantic similarity matching
- Supporting concept-based navigation
- Surfacing related content through graph connections
RAG Integration
Knowledge graphs enhance RAG responses by providing:
- Structured entity information
- Relationship context
- Community-level insights
- Cross-document connections
Enterprise Features
The following features are restricted to:
- Self-deployed instances
- Enterprise tier cloud accounts
Contact our sales team for pricing and availability.
Advanced knowledge graph capabilities include:
- Custom entity extraction rules
- Manual graph curation tools
- Graph export and import
- Advanced graph analytics
- Custom visualization tools
Conclusion
R2R’s knowledge graphs provide powerful document analysis and knowledge discovery capabilities through automatic entity extraction and graph construction. Deep integration with collections enables flexible organization, while community detection uncovers hidden patterns and relationships in your content.