-
Notifications
You must be signed in to change notification settings - Fork 240
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: ask users to confirm tables before query generation #1339
Conversation
querybook/webapp/components/AIAssistant/QueryGenerationModal.tsx
Outdated
Show resolved
Hide resolved
querybook/webapp/components/AIAssistant/QueryGenerationModal.tsx
Outdated
Show resolved
Hide resolved
openTableModal?: () => any; | ||
} | ||
|
||
export const TableTooltip: React.FunctionComponent<IProps> = ({ | ||
table, | ||
columns, | ||
schema, | ||
showPinItButton = true, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
just default it to false, since i saw its false below
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this will be used by other place, like the query editor tooltip, which is true. just to not breaking them without updating them.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
in this case, we can rename this to hidePinItButton and default to False, and have whatever is calling TableTooltipByName to pass that as True
…1339) * feat: ask users to confirm tables before text2sql * comments * hidePitItButton
When AI finds tables for the question, it generates the query using those tables directly without asking user.
Now we are changing it to ask user to confirm the tables before query generation.
text2sql_tables_v2.mp4