-
Notifications
You must be signed in to change notification settings - Fork 241
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: add sql completions powered by LLM #1514
Conversation
/** | ||
* Remove overlapping part with prefix from completion. | ||
* | ||
* e.g. removeOverlapPrefix('sel', 'elect *') => 'ect *' | ||
*/ | ||
const removeOverlapPrefix = (completion: string, prefix: string) => { |
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 curious why is this needed?
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.
It is a hack workaround. found sometimes it will have overlap with the prefix. I'll add some comments there.
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.
Looks good! Does the code mirror support showing multi line suggestions back to user?
Adding another AI assistant feature, SQL Complete, to help query authoring like the Github Copilot
Currently we're using this codemirror extension, we can reimplement it to meet our additional requrements in the future if needed.
The prompt and context still needs to be tuned for better quality.
By default it is disabled, user can enable it in the user settings.