This document explains how to use retrieval-augmented generation (RAG) and agents with your document collections and databases on the platform. You’ll see how to configure an agent over leases, control answer sources, inspect citations, deploy the agent, and connect it to a database with automatic analysis and charting.
Step 1: Configure an Agent Over Your Lease Documents
Set up an agent that can query across your lease corpus (for example, over a hundred leases). Configure it with your preferred model (e.g., GPT‑4.1 Mini or any other supported model) in the backend agent builder.
Step 2: Ask Questions and Restrict Answers to Your Data
Ask a natural-language question in the agent interface.
Enable the agent setting that restricts answers so they only come from your connected data sources, ensuring responses are grounded in your leases and not external knowledge.
Step 3: Review Answers and Inspect Source Documents
Review the answer returned by the agent. For example, you might ask, “Who’s in charge of repairs and maintenance on the premises?” The agent will generate an answer based solely on your leases.
If desired, open the list of underlying sources used to produce the answer.
You can then see exactly which leases were referenced and which specific passages of text were pulled to construct the answer, allowing you to verify the information.
Step 4: Deploy the Agent via API or Embedded UI
Deploy the configured agent into your product with minimal effort. You can instantly deploy it as an API and obtain an API key for programmatic access.
Alternatively, embed the agent directly in your application using an iframe or a React bubble component within your platform’s UI.
Step 5: Connect an Agent to Your Database
Leverage agents for database querying as well. Configure an agent on top of your real estate (or other) database so it can answer questions using live structured data.
Provide a few example rows and descriptions of your tables so the agent understands the schema, then add your database connection details.
Enter your database login credentials and confirm the connection.
Step 6: Ask Database Questions and View Analyzed Results
Once connected, ask questions in natural language about your database (e.g., portfolio metrics, property details, or financials). The agent will retrieve the relevant data and analyze it with AI.
If the results are tabular, the system will automatically chart the data for easier interpretation.
Step 7: Inspect SQL, Debug, and Validate Outputs
View the generated SQL query used to answer your question so you can confirm that the logic and data sources are correct and that the response is not hallucinated.
Use this visibility to debug the answers as needed and confirm the exact database pull behind each response.
Step 8: Set Up Knowledge Bases for Easy Agent Configuration
If you want to streamline future agent setups, configure a knowledge base in advance that contains the documents or data you plan to attach to agents.
Then, when creating a new agent, you can add this preconfigured knowledge base with a single click, making it easy to include your NAV agents’ data during setup.