Report
Neo4j Cypher syntax error from LLM-generated edge types containing spaces
d0ed41a7-291d-4eaf-97dc-e4d7ddbf890f
During knowledge graph ETL extraction, the Dionysus relation extraction phase (Sonnet) sometimes generates edge types with spaces — e.g. "REQUIRES Package" instead of "REQUIRES". These are interpolated directly into Cypher MERGE statements like MERGE (from)-[:${edge.edgeType}]->(to), causing Neo4j to throw: Invalid input 'Package': expected a parameter, '&', '*', ':', 'WHERE', ']', '{' or '|'. The error is a Neo.ClientError.Statement.SyntaxError (42N32). This blocks the entire extraction batch — no edges get written for any pair in the batch.