Module 3

Text to Cypher

Vector Full definition for retriever (opens in a new tab)A component that searches a data source and returns the information relevant to a query. Often used to provide context for a language model. are great for finding relevant data based on semantic similarity.

To answer more specific questions, you may need to perform more complex queries to find data relating to specific Full definition for node (opens in a new tab)A vertex in a graph. In a property graph it can carry labels and properties., Full definition for relationship (opens in a new tab)A named, directed connection between two nodes. Every relationship has a type, a start node and an end node., or Full definition for property (opens in a new tab)A named value stored on a node or a relationship..

Text to Full definition for Cypher (opens in a new tab)Neo4j'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. allows you to convert natural language queries into Cypher queries that can be executed against the graph.

In this module, you will:

  • Use the Cypher QA (question-answering) chain to query the graph using natural language queries.
  • Create a custom Cypher generation prompt include specific instructions and examples queries.
  • Explore how restricting the schema can support more focused queries.
  • Add a text to Cypher retriever to a LangChain agent.

If you are ready, let's get going!

Ready, let's go!