
dbt Tests in AI Context
Dbt tests can now populate AI field context (all\_fields), improving NLQ performance without touching Omni. This will stay in sync as your tests evolve as well.
Transcript
This transcript is auto-generated. Names and product terms may be wrong.
Sorry, I was muted and I didn't see the unmute button while I was sharing. So, let's try that again. All right, so um uh DBT has this thing uh called tests which is like a generic way to test your DBT models and they have built-in ways of testing things. Um, and one of the things you can do with it is to say like for this country column, there should only be these specific values.
Um, like in this case, I said this column should only have the value USA. Uh, which is not correct. I'll just show you real quick what happens when you have an incorrect value there. It's going to tell you we found uh values that are not just USA. Um, because this column actually has the UK in it as well.
Um, now when I build it, it all passes. Uh, so Liam did, uh, some work and found that like a pretty decent number of our customers are using these accepted tests. Um, just push this up real quick. Uh, I think maybe Liam could tell me if I'm wrong, but I think it was like 40% plus have it um in use.
And because of that uh and I'm going to switch to browser uh just released this thing where uh we'll pull that in to the omnimodel and you'll see that happen when I click refresh schema. This country should get some new metadata from what I just added. Yeah. So we're going to pull that in as the all values value uh in the omni model now.
So uh yeah that's it. Um I guess it has pretty uh useful implications for AI stuff but um that's that.