How to Evaluate and Balance the Complexity of Semantic Models in Malloy Development
I attended the semantic layer live session recently conducted by motherduck where you talked about how you built a semantic layer , do you need one ? etc . You mentioned that the LLM writes malloy and then sql is compiled deterministically and executed One trap I keep falling into is overfitting the malloy semantic model to the eval set ; meaning I add more docs and views to the model in order to increase accuracy on my evals , but those changes only work for those specific set of question answer pairs ; if I add another question it fails . So my Question is what's the framework you use to evaluate changes to the semantic layer and how do you strike the balance between having a poorly defined semantic model vs overly defined semantic model ( extreme case where you have a registered view for every question on the domain)
.png)