All Three Tools

Introduction

You will complete your agent by adding a Text2Cypher query tool as the third tool.

The agent automatically chooses the best tool for each question type:

Schema Tool:

  • Understanding database structure

  • "What entities exist in the graph?"

Document Retrieval Tool:

  • Finding content with company context

  • "What products does Microsoft mention in its documents?"

Database Query Tool:

  • Precise queries and counts

  • "How many risk factors does Apple face?"

  • "What stock has Microsoft issued?"

The Final Tool

Open the notebook: 02_03_text2cypher_agent.ipynb

Your complete agent will now have:

  • Tool 1: Schema Tool (database structure exploration)

  • Tool 2: Document Retrieval Tool (vector search + graph context)

  • Tool 3: Database Query Tool (text-to-Cypher for precise queries) ← NEW!

This creates a comprehensive GraphRAG agent that can handle any type of question intelligently.

Try These Questions

Try these questions to see all three tools in action:

Semantic Search (Vector Tool):

  • "What are the main risk factors mentioned in the documents?"

Contextual Search (Vector + Cypher Tool):

  • "What products does Microsoft mention in its financial documents?"

Precise Queries (Text2Cypher Tool):

  • "How many risk factors does Apple face and what are the top ones?"

  • "What stock has Microsoft issued?"

Complex Questions (Multiple Tools):

  • "Summarize Apple’s risk factors and how they relate to other companies"

Notice: The agent intelligently selects the right tool(s) for each question type!

Summary

In this lesson, you completed your GraphRAG agent by adding the Text2Cypher Retriever as the third tool:

Key Concepts:

  • Complete tool suite: All three retrievers now available as conversational tools

  • Intelligent routing: Agent automatically selects best tool(s) for each question

  • Progressive capability: From simple search to complex multi-tool reasoning

What You Built:

  • Complete GraphRAG agent with three retriever tools

  • Conversational interface to all retriever capabilities from previous modules

  • Intelligent tool selection for optimal answers

Your Journey:

  • Knowledge Graph Creation: PDF to Knowledge Graph pipeline

  • Retriever Development: Built three different retrievers

  • Agent Tools: Converted retrievers to conversational agent tools

Final Result: A complete GraphRAG agent that can answer any question using the most appropriate retrieval strategy automatically!

Chatbot

How can I help you today?