Skip to content
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

Merged
merged 3 commits into from
Sep 26, 2023

Conversation

jczhong84
Copy link
Collaborator

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

querybook/server/lib/ai_assistant/base_ai_assistant.py Outdated Show resolved Hide resolved
querybook/server/lib/ai_assistant/base_ai_assistant.py Outdated Show resolved Hide resolved
openTableModal?: () => any;
}

export const TableTooltip: React.FunctionComponent<IProps> = ({
table,
columns,
schema,
showPinItButton = true,
Copy link
Collaborator

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

Copy link
Collaborator Author

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.

Copy link
Collaborator

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

@czgu czgu merged commit becf905 into pinterest:master Sep 26, 2023
4 checks passed
aidenprice pushed a commit to arrowtail-precision/querybook that referenced this pull request Jan 3, 2024
…1339)

* feat: ask users to confirm tables before text2sql

* comments

* hidePitItButton
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants