-
Notifications
You must be signed in to change notification settings - Fork 6
feat: data copilot text to sql #645
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
base: main
Are you sure you want to change the base?
Conversation
Signed-off-by: anilb <[email protected]>
Signed-off-by: anilb <[email protected]>
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.
Pull Request Overview
This PR adds conversation management functionality to the data copilot and enables text-to-SQL functionality. The key changes include adding conversation tracking support to maintain context across multiple queries and implementing the previously commented-out text-to-SQL agent functionality.
- Add conversationId field to chat responses and conversation tracking across the application
- Enable text-to-SQL agent functionality for database query generation
- Replace routerReasoning parameter with conversationId for improved chart generation context
Reviewed Changes
Copilot reviewed 13 out of 14 changed files in this pull request and generated no comments.
Show a summary per file
File | Description |
---|---|
frontend/server/repo/chat.repo.ts | Add conversationId field to interface and repository methods |
frontend/server/api/chat/stream.ts | Generate and pass conversationId through chat streaming |
frontend/server/api/chat/chart.ts | Replace routerReasoning with conversation-based context retrieval |
frontend/lib/chat/data-copilot.ts | Enable text-to-SQL agent and add conversationId support |
frontend/lib/chat/chart/generator.ts | Update chart prompt to use routerReasoning from conversation |
frontend/lib/chat/agents/base-agent.ts | Remove unused blank line |
frontend/app/components/shared/modules/copilot/types/copilot.types.ts | Add conversationId types and update message part types |
frontend/app/components/shared/modules/copilot/store/copilot.api.service.ts | Update API service for conversationId handling |
frontend/app/components/shared/modules/copilot/components/results/results-section.vue | Replace routerReasoning with conversationId prop |
frontend/app/components/shared/modules/copilot/components/results/chart-results.vue | Update chart generation to use conversationId |
frontend/app/components/shared/modules/copilot/components/copilot-sidebar.vue | Implement conversation state management |
frontend/app/components/shared/modules/copilot/components/copilot-modal.vue | Update data handling for conversationId |
database/migrations/V1756973486__addConversationIdToChatResponses.sql | Add database migration for conversation tracking |
Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.
…for all agents Signed-off-by: anilb <[email protected]>
… running remote migs Signed-off-by: anilb <[email protected]>
…new one Signed-off-by: anilb <[email protected]>
…undation/insights into feature/data-copilot-text-to-sql
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.
LGTM 👍
And the docs on the chat lib for the functions look great. Thanks for adding that
Signed-off-by: anilb <[email protected]>
Signed-off-by: anilb <[email protected]>
Signed-off-by: anilb <[email protected]>
Signed-off-by: anilb <[email protected]>
Signed-off-by: anil <[email protected]>
Signed-off-by: anil <[email protected]>
Signed-off-by: anil <[email protected]>
Signed-off-by: anil <[email protected]>
Signed-off-by: anil <[email protected]>
…aming Signed-off-by: anil <[email protected]>
Signed-off-by: anil <[email protected]>
Signed-off-by: anil <[email protected]>
Signed-off-by: anil <[email protected]>
Signed-off-by: anil <[email protected]>
…to-sql Signed-off-by: Joana Maia <[email protected]>
…text-to-sql Signed-off-by: Joana Maia <[email protected]>
Signed-off-by: Efren Lim <[email protected]>
…text-to-sql Signed-off-by: Joana Maia <[email protected]>
…text-to-sql Signed-off-by: Joana Maia <[email protected]>
No description provided.