4.4 · Lesson

Query database

In this lesson, you will add a tool to your agent so it can query the database directly.

The tool will use a TextToCypherRetriever 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. to convert user queries into 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. statements and return the results as context.