3.6 · Lesson (Optional)

Add a Text-to-Cypher Tool

Text-to-Cypher uses a large language modelA model trained on text to predict the next token, and so to generate language. (LLM) to write a CypherNeo4j's implementation of GQL, the ISO standard query language for graph databases. It is declarative: you describe the pattern to find, and the database decides how to find it. query from a question in plain language. The LLM is given the graph's schema, the labelsA tag on a node that groups it with other nodes of the same kind. A node can carry more than one., relationshipA named, directed connection between two nodes. Every relationship has a type, a start node and an end node. types, and propertiesA named value stored on a node or a relationship., so that the query it writes uses names that exist.

The question "Which actors have worked with Tom Hanks?" is turned into a query like: