feat(ui): add interactive graph visualization using React Flow#623
feat(ui): add interactive graph visualization using React Flow#623nancysangani wants to merge 10 commits into
Conversation
Solution for Failing Job 81681090600The job failed due to code formatting issues in IssueLine 233 has incorrect indentation. The FixUpdate the indentation in the Change from: const fetchGraph = useCallback(async () => {
setLoading(true);
setError(null);
setSelectedNode(null);Change to: const fetchGraph = useCallback(async () => {
setLoading(true);
setError(null);
setSelectedNode(null);Apply this same 2-space indentation fix to all lines within the Alternatively, you can run Prettier with the npx prettier --write frontend/src/components/graph/KnowledgeGraph.tsx |
|
@param20h please review the PR, all checks have passed. |
🔗 Related Issue
Closes #267
📝 What does this PR do?
Adds an interactive knowledge graph visualization powered by React Flow.
Key changes include:
backend/app/routes/graph.pyto serve graph dataKnowledgeGraphcomponent infrontend/src/components/graph/KnowledgeGraph.tsx@xyflow/react, the React 19-compatible successor toreact-flow-rendererThe feature provides a more intuitive way to explore connections between documents, entities, and retrieved knowledge.
🗂️ Type of Change
🧪 How was this tested?
uvicorn app.main:app --reload)npm run devinsidefrontend/)✅ Self-Review Checklist
dev, notmainmainbranch or any HuggingFace deployment config