Spaces:
Runtime error
Runtime error
Download scripts/wipe_graph.py from sourabharsh/vantage: direct link, hf CLI and curl.
- Browser
- Download file 583 Bytes
-
https://huggingface.co/spaces/sourabharsh/vantage/resolve/main/scripts/wipe_graph.py
- Command line
-
hf download hf://spaces/sourabharsh/vantage/scripts/wipe_graph.py
-
curl -L -o wipe_graph.py https://huggingface.co/spaces/sourabharsh/vantage/resolve/main/scripts/wipe_graph.py
583 Bytes
| # File Objective : Wipe all nodes and relationships from the Neo4j knowledge graph. | |
| # Scope : Dev script — destructive reset, use before a full rebuild. | |
| # What it does : Deletes every node and relationship in Neo4j (MATCH (n) DETACH DELETE n). | |
| # What it does not: Touch Qdrant, topics.csv, or any other data store. | |
| from vantage_core.adapters.graph_neo4j import Neo4jGraphRepo | |
| def main() -> None: | |
| graph = Neo4jGraphRepo() | |
| graph.wipe() | |
| graph.close() | |
| print("Neo4j wiped — all nodes and relationships deleted.") | |
| if __name__ == "__main__": | |
| main() | |