A Streamlit UI for visualizing and querying lance-graph knowledge graphs.
- Entity Search: Search entities by name, filter by type
- Cypher Query: Execute Cypher queries with pre-built examples
- Graph Visualization: Interactive graph with node coloring by entity type
cd python
uv sync --extra uiuv run streamlit run streamlit_app/app.pyThe app opens at http://localhost:8501.
- Enter the path to your knowledge graph directory in the sidebar (default:
./examples/test_kg) - Click Load to connect
- Use the tabs to search entities, run Cypher queries, or visualize the graph
-- List all entities
MATCH (e:Entity) RETURN e.name, e.entity_type LIMIT 50
-- Find relationships
MATCH (a:Entity)-[r:RELATIONSHIP]->(b:Entity)
RETURN a.name, r.relationship_type, b.name
-- Search by name
MATCH (e:Entity) WHERE e.name_lower CONTAINS 'matrix'
RETURN e.name, e.entity_type