Notiz
Zougrëff op dës Säit erfuerdert Autorisatioun. Dir kënnt probéieren, Iech unzemellen oder Verzeechnesser ze änneren.
Zougrëff op dës Säit erfuerdert Autorisatioun. Dir kënnt probéieren, Verzeechnesser ze änneren.
Ontology (preview) integrates with Fabric data agent (preview) to let you 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 connects to your ontology (preview) item.
Go to your Fabric workspace. Use the + New item button to create a new Data agent (preview) item named RetailOntologyAgent.
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.
The agent opens when it's ready. Select Add a data source.
Search for the RetailSalesOntology item and select Add. Now your ontology is added as a source for the data agent.
When the agent is ready, the ontology and its entity types are visible in the Explorer.
Provide agent instructions
Note
This step addresses a known issue affecting aggregation in queries.
Next, add a custom instruction 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 see errors that say there's no data while running the example queries, wait a few minutes to give the agent more time to initialize. Then, run 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 by using natural language queries and answered business-level questions.
Next, continue to the tutorial conclusion.