Keyword for skipping context for AI #14
Replies: 2 comments 1 reply
-
|
I agree that experimenting with context is key, but shouldn't this be handled by the AI application rather than the semantic layer? I can see some reasons why handling it in the YAML might be too restrictive:
My take is: while extra data can definitely harm generation, it feels to me like that logic belongs in the app layer where the actual experimentation happens. |
Beta Was this translation helpful? Give feedback.
-
|
This might be a hot take, but I think having AI generate the sql is long term the wrong approach. I believe the plan is for OSI to have a query engine of reference It should be able to generate SQL idempotently. We've run some expirements at dbt Labs of agents generating SQL to answer a question vs agents looking at a semantic layer catalog, and then using a query engine for the semantic layer to answer the question. That latter produced much more predictable and accurate results. The former meant getting slightly different SQL each invocation and getting potentially very wrong SQL 😅 That is to say, I don't think agents should generate the SQL for semantic layer definitions, but instead use semantic layer definitions to figure out what metric(s) to query with an engine. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
It could be useful for some parts of the semantic layer to exist in YAML but be excluded from the AI context. For example, functional columns or when experimenting with different context configurations. Sometimes, extra data in the context can actually harm SQL generation, so having this option provides an additional level of control.
This could be implemented as an optional key:
Beta Was this translation helpful? Give feedback.
All reactions