Add suggest() method for LLM-powered query recommendations with site UI integration#950
Merged
Add suggest() method for LLM-powered query recommendations with site UI integration#950
Conversation
Co-authored-by: hustcc <7856674+hustcc@users.noreply.github.com>
Co-authored-by: hustcc <7856674+hustcc@users.noreply.github.com>
Co-authored-by: hustcc <7856674+hustcc@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Add suggest method to retrieve recommended analysis queries
Add suggest() method for LLM-powered query recommendations
Feb 7, 2026
Member
|
Co-authored-by: hustcc <7856674+hustcc@users.noreply.github.com>
Contributor
Author
Member
|
Co-authored-by: hustcc <7856674+hustcc@users.noreply.github.com>
Contributor
Author
Completed in commit 9b9d6ed:
UI Layout: |
Copilot
AI
changed the title
Add suggest() method for LLM-powered query recommendations
Add suggest() method for LLM-powered query recommendations with site UI integration
Feb 7, 2026
Contributor
|
🎊 PR Preview 3ead83d has been successfully built and deployed to https://antvis-AVA-preview-pr-950.surge.sh 🕐 Build time: 0.014s 🤖 By surge-preview |
Member
|
@copilot 刷新的按钮要悬浮再输入框右侧,而不是并排。按钮的图标使用代表智能推荐的含义的图标 |
Co-authored-by: hustcc <7856674+hustcc@users.noreply.github.com>
Contributor
Author
Updated in commit 3ead83d:
Layout: |
Member
|
@copilot llms.txt 也对应的更新一下 |
Co-authored-by: hustcc <7856674+hustcc@users.noreply.github.com>
Contributor
Author
hustcc
approved these changes
Feb 7, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

Implementation Complete: suggest() Method ✅
Summary
Successfully implemented the
suggest()method for AVA class that recommends analysis queries based on loaded data characteristics using LLM. Includes full integration with the website UI and comprehensive documentation.Recent Changes
Changes Made
New suggest module (
/src/suggest/)index.tswithgenerateSuggestions()functionUpdated AVA class (
/src/ava.ts)suggest(count?: number)method (default: 3 suggestions)Type definitions (
/src/types.ts)SuggestResultinterface with query, score, reason fieldsComprehensive tests (
__tests__/suggest.test.ts)Documentation updates
examples/suggest-example.ts)UI Enhancement
suggest(1)to get top AI-recommended query and fills inputQuality Checks ✅
API Usage
UI Integration
Users can now click the lightbulb icon (💡) floating inside the query input box to automatically get an AI-suggested query based on their loaded data, making the analysis workflow more intuitive and guided.
Original prompt
💬 We'd love your input! Share your thoughts on Copilot coding agent in our 2 minute survey.