How to Use dbt Metadata as AI Context in BI (Two-Way Sync with Omni)

Product video · October 7, 2025 · 5:10

Transcript

This transcript is auto-generated. Names and product terms may be wrong.

  1. Hi, this is Connor from Omni . I'll walk you through several ways to exchange context and metadata between DBT and Omni, which will help you align definitions and automate much of the manual work. So, I'll start with DBT in our e- commerce scheme. Here is the YAML file we created with a bunch of our metadata. Almost all of these fields have descriptions, and if I scroll down to the users model, if I find the country field here , you'll see that we have an additional parameter called " accepted values."

  2. This is a way for DBT to check if all values ​​that fall into this field fall into one of the values ​​in this list. And this is a parameter that we will actually use in Omni as well. So we have all this context and metadata here in DBT. Let me show you how they get into Omni. I flip the page, and here I am on the Omni semantic layer, which is a code representation of the data that I pull from my database and curate for end users.

  3. I'm in this user view, which is built on the same DBT model that I just showed you. And you'll see that we get the same metadata. For example, here we get this description from this DBT model. And then if I find this country field again , here's this country field. You can see that we are getting a description.

  4. And then we also get this parameter of accepted values. In Omni, this is all the values, which have a very similar purpose – representing all the possible values ​​that this column can take . This is useful, especially for AI, which I'll show you in a second. But I wanted to point out that this process of retrieving metadata happens automatically.

  5. So you can define it in DBT, save it as a source of truth, and then bring it into Omni, and, uh, it will stay relevant as well. So, whenever you update your Omni schema, we will also receive this metadata. If you really want to go deeper into your DBT environment with Omni, you can even jump into this DBT development environment that we have.

  6. So, you can scan all the different files that are in your instance. For example, here's the YAML file we looked at earlier. So, instead of switching between tools, if you just need to find something quickly, you can do it in the DBT development environment. Okay, let me now show you how this appears to end users in Omni.

  7. Good. So, this is the e-commerce dashboard , which shows our latest orders. If I scroll down to a tile built from the users table , like this top customers tile, you'll see that the country description is automatically pulled from DBT, and the same goes for the other fields that we pull from DBT. So, this makes the time you spend writing these descriptions in DBT useful to the people on the other side who are actually analyzing the data.

  8. And let me also show you how this is used in our AI. So if I open our AI assistant in the toolbar here, I can ask questions about our data. So I can just say, " How many orders were placed in the US last week?" Now, it should be noted that the US is not actually represented anywhere in the data.

  9. This is the USA. But, because our AI uses our semantic layer, it can connect the dots for us. So, the USA equals a country. And then, thanks to the “all values” parameter that we got from DBT, it can understand that by US we mean US values, and then filter the data correctly. So, that's what you see here.

  10. This is a filter where country equals USA. So, if you already have a robust DBT environment with lots of useful metadata, Omni is a great way to reuse all that context for a better business intelligence and AI experience. Okay, and one last thing. I've shown you ways to transfer context from DBT to Omni, but you can also go the other way.

  11. So, if you're exploring data in Omni and adding AI descriptions and context, you can also feed it back to DBT so everything is in sync. For example, here I have the same users table, but I've reworked it a bit and changed some of the descriptions. When I'm ready, I can go to this "Press to DBT" button. And I can choose to sync my new descriptions as well as sync my exposures, which will create a file showing all the Omni content that depends on the given DBT model.

  12. When I click Create Pull Request here, it will take me through my normal CICD process on GitHub. So if I scroll down, you'll see all the differences. So, the descriptions change from what I have now in DBT. I scroll to the end, download this exposure file. You will see a list of all the different pieces of content, links to them, and even indicates the dependency on DBT.

  13. So, overall, this is a pretty powerful way to leverage this two-way synchronization to keep DBT and Omni on the same page. And the best thing is that most of this process is automated. So you don't have to spend a lot of time manually transferring information. You simply set up the integration once and then manage the flow of metadata and context as you like.