Overview
Generate and open an interactive HTML visualization of the knowledge graph. Supports filtering, community highlighting, and entity descriptions.Usage
Options
Basic Options
Output directory containing graph data. Use
-o as shorthand.Output HTML file path. Defaults to
{output_dir}/graph.html.Generate HTML without opening in browser.
Enable verbose logging. Use
-v as shorthand.Filter Options
Show only top N entities by degree (number of connections).
Hide nodes and edges below this confidence threshold (0.0-1.0).
Show only entities extracted from this source document.
Center visualization on specific entity and show N-hop neighborhood.
Number of hops for neighborhood visualization. Used with
--neighborhood.Focus on a specific community (e.g.,
Community 1). Requires sift narrate to have been run.Behavior
Visualization Features
- Interactive Layout - Drag nodes, zoom, pan
- Entity Descriptions - Hover tooltips (if
sift narratewas run) - Community Colors - Color-coded communities
- Confidence Indicators - Edge thickness/opacity shows confidence
- Search - Find entities by name
Entity Descriptions
Ifentity_descriptions.json exists (from sift narrate):
- Descriptions appear in hover tooltips
- Displayed in info panels
- Logged in console during generation
Examples
Basic visualization
output/graph.html.
Top entities only
Filter by confidence
Source document filter
Neighborhood view
Community focus
Combined filters
Output
Generates standalone HTML file with embedded:- Graph data
- Entity attributes
- Descriptions (if available)
- Interactive JavaScript visualization
{output_dir}/graph.html
Output Summary
Displays:- Applied filters
- Entity count (after filters)
- Relation count (after filters)
- Output file location
- Browser URL (if
--no-openused)
Visualization Controls
In the browser:- Click & Drag - Move nodes
- Scroll - Zoom in/out
- Right Click - Pan view
- Hover - Show entity details
- Click Node - Highlight connections
Performance Tips
Large Graphs
For graphs with 1000+ entities:Focused Exploration
Use neighborhood view to explore specific areas:Error Handling
Exits with error if:- No
graph_data.jsonfound (runsift buildfirst) - Invalid filter parameters