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.
Query agent with natural language
Next, explore your ontology with natural language questions.
Start with these example prompts:
- For each store, show any timestamps where a freezer operated by that store had a temperature higher than -18 degrees C, and the total units sold that day.
- List the top three products by revenue in Paris stores.
- Do stores with higher freezer temperatures correlate with lower daily sales? Explain the evidence.
Notice that the responses reference entity types (Store, SaleEvent, Products, Freezer) and their relationships, not just raw tables.
Continue exploring the data agent by trying out some prompts of your own.
Tip
When you're using data agent with ontology, if the agent's answers are too generic, make sure that the agent includes the ontology as a knowledge source. Also, make sure that entity and relationship names are meaningful and documented in the ontology.
Next steps
In this step, you explored your ontology with natural language queries and answered business level questions.
Next, continue to the tutorial conclusion.