sift view and command-line search with sift search.
Interactive Visualization
Command Options
Output directory containing
graph_data.jsonCustom path for the HTML file (defaults to
output/graph.html)Generate HTML but don’t open browser
Verbose logging
Filtering Options
Show only the top N entities by connection count (and their direct neighbors)
Hide entities and relations below this confidence threshold (0.0-1.0)
Show only entities from a specific document
Center view on a specific entity and show N-hop neighborhood
Number of hops for neighborhood view (use with
--neighborhood)Focus on a specific community cluster (e.g., “Community 1”)
Visualization Examples
Basic View
Filtered Views
Interactive Features
The visualization includes a rich sidebar with:Search
Type to find entities by name (case-insensitive, fuzzy matching).Entity Type Toggles
Show/hide entity types:- Click checkbox to toggle visibility
- Click color picker to change type color
- All changes update graph in real-time
Relation Type Toggles
Control which relations are displayed:- Show/hide by relation type
- Relation count shown for each type
MENTIONED_INhidden by default (metadata)
Community Filters
Toggle visibility by community cluster:- Communities auto-detected using Louvain algorithm
- Border colors indicate community membership
- Filter to single community for focused analysis
Detail Panel
Click any node to see:- Entity name and type
- All attributes
- Aliases
- Source documents
- Generated description (if
sift narratewas run) - All incoming/outgoing relations
- Relation type
- Confidence score
- Evidence text
- Support count (how many times extracted)
- Support documents
Dynamic Filters
Degree Filter: Hide low-connectivity entitiesPhysics Controls
Adjust graph layout:- Pause/resume physics simulation
- Freeze positions after stabilization
- Reset zoom and positions
Visualization Colors
Entity Colors (by Type)
Predefined semantic colors for common types:- PERSON: Blue
- ORGANIZATION: Green
- LOCATION: Purple
- EVENT: Orange
- DOCUMENT: Gray
Relation Colors (by Type)
Semantic colors for common relations:- EXTENDS: Purple (inheritance)
- SUPPORTS: Green (evidence for)
- CONTRADICTS: Red (evidence against)
- USES_METHOD: Blue (methodology)
- MENTIONED_IN: Dark gray (low emphasis)
Community Colors
Community border colors use golden angle spacing for maximum visual separation.Search Command
Command Options
Search term (matches entity names and aliases, case-insensitive)
Show connected entities and their relations
Show entity description (requires
sift narrate to have been run)Filter results by entity type (e.g., PERSON, ORGANIZATION)
Output directory containing
graph_data.jsonShow all relations (default limits to 10)
Search Examples
Example Output
Use Cases
Investigative Research
Investigative Research
Scenario: Finding connections between people and organizations
Document-Specific Analysis
Document-Specific Analysis
Scenario: Analyzing what was extracted from one document
Community Detection
Community Detection
Scenario: Finding clusters of related entities
Quality Assurance
Quality Assurance
Scenario: Checking extraction quality
Performance Tips
Hide Metadata Relations
MENTIONED_IN edges clutter large graphs. They’re hidden by default,
but can be shown via the sidebar if needed.Saving and Sharing
The generated HTML is fully self-contained:Troubleshooting
Blank or empty visualization
Cause: All entities filtered out Solution: Check filters and graph size:“Graph not found”
Runsift build first to create graph_data.json.
Slow or laggy browser performance
For large graphs (>500 entities):- Use filtering:
--top 200 --min-confidence 0.7 - Pause physics after stabilization
- Use neighborhood view instead of full graph
- Close detail panel when not needed
Search returns no results
- Check spelling (search is case-insensitive but must match name/alias)
- Try partial terms:
sift search Smithinstead ofsift search "John Smith" - Check entity type filter:
--typemay be excluding results - Verify graph contains entities:
sift search "" --verbose
Communities not showing
Communities auto-detected on firstsift view. If missing:
Next Steps
Export Data
Export graphs for external analysis tools
Generate Narratives
Create AI-generated summaries of your knowledge graph