neo4j-labs / llm-graph-builder

Neo4j graph construction from unstructured data
Apache License 2.0
344 stars 88 forks source link

Graph visualization, checkbox change #481

Open prakriti-solankey opened 3 days ago

prakriti-solankey commented 3 days ago

graph visualization

  1. also for non completed documents (remove filter on status: "Completed" and enable no matter what status for magnifying glass and show-graph button)

  2. Handle viz for new + incremental refreshes in the background

  3. Local filter for Entities/Chunks/Documents - not started it is a bit annoying that we need to reload the graph whenever the users clicks one of the 3 checkboxes, so I wondered if we can just load the full graph including document(s), chunks and entities and do the checkbox filtering on the client. counts on the client side - iterate over the nodes and check the label and increment the counter for each label, e.g. {"Person":10, "Location":5, …, "Chunk": 12} in a Map() can also do it on the server if we want to Document - Document label Chunks: Chunk label + PART_OF|FIRST_CHUNK->Document rel. SIMILAR|NEXT_CHUNK->(Chunk)

  4. Entity: if we don't have chunks filter out the HAS_ENTITY relationship a refresh option that auto-refreshes every x seconds updates the data structure so that the visualization is updated in place with the new data