You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Add SnoopyView which is a type of View with loosend db-ally assumptions and runs user-defined method for accessing a schema.
Motivation
The db-ally usage allows for defining filters and aggregations but they bump into significant trade-off: genericness vs performance.
E.g. preferable (in terms of UX) implementation of an aggregation would be as follows:
Please not that such implementation delegates the column name resolution to LLM which can impact the performance (LLM can poorly guess the column name).
To address the performance issue one can implement a method with the name of the column to be used directly:
This creates a risk of creating vast amount of boilerplate assuming general-purpose View.
Some db-ally (or Text2SQL) user might prefer generic filters/aggregations usage and boost performance in favor of decoupling the database structure from the prompt. Such nosy SnoopyView might ask implicitly for the structure to use it in a prompt or inject additional few-shot examples.
Additional context
NosyView was initially considered but SnoopyView synonym additionally refers to a dog used together with the library name 🦮.
The text was updated successfully, but these errors were encountered:
Feature description
Add
SnoopyView
which is a type of View with loosend db-ally assumptions and runs user-defined method for accessing a schema.Motivation
The db-ally usage allows for defining filters and aggregations but they bump into significant trade-off: genericness vs performance.
E.g. preferable (in terms of UX) implementation of an aggregation would be as follows:
Please not that such implementation delegates the column name resolution to LLM which can impact the performance (LLM can poorly guess the column name).
To address the performance issue one can implement a method with the name of the column to be used directly:
This creates a risk of creating vast amount of boilerplate assuming general-purpose
View
.Some
db-ally
(or Text2SQL) user might prefer generic filters/aggregations usage and boost performance in favor of decoupling the database structure from the prompt. Such nosySnoopyView
might ask implicitly for the structure to use it in a prompt or inject additional few-shot examples.Additional context
NosyView
was initially considered butSnoopyView
synonym additionally refers to a dog used together with the library name 🦮.The text was updated successfully, but these errors were encountered: