Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Ontology (preview) integrates with Fabric data agent (preview), allowing you to ask questions in natural language and get answers grounded in the ontology's definitions and bindings.
Important
This feature is in preview.
Create data agent with ontology (preview) source
Follow these steps to create a new data agent that is connected to your ontology (preview) item.
Go to your Fabric workspace and create a new data agent (preview) item named RetailOntologyAgent. For detailed instructions, see Create a Fabric data agent (preview).
Tip
If you don't see the data agent item type, make sure that it's enabled in your tenant as described in the tutorial prerequisites.
Add RetailSalesOntology as a data source for the data agent. For detailed instructions, see Create a Fabric data agent (preview).
When the agent is ready, it opens.
Provide agent instructions
Next, add some custom instructions to the agent.
Select Agent instructions from the menu ribbon.
At the bottom of the input box, add
Support group by in GQL. This instruction enables better aggregation across ontology data.The instruction is applied automatically. Optionally, close the Agent instructions tab.
Query agent with natural language
Next, explore your ontology with natural language questions.
Start by entering these example prompts:
- For each store, show any freezers operated by that store that ever had a humidity lower than 46 percent.
- What is the top product by revenue across all stores?
Notice that the responses reference entity types (Store, Products, Freezer) and their relationships, not just raw tables.
Tip
If you experience errors saying there's no data while running the example queries, try waiting a few minutes to give the agent more time to initialize, then running the queries again.
Continue exploring the data agent by trying out some prompts of your own.
Next steps
In this step, you explored your ontology with natural language queries and answered business level questions.
Next, continue to the tutorial conclusion.