feat: AI integration for schema analysis, chart recommendation and query explaination #72
Merged
Conversation
…, and schema analysis
…ral, Ollama, and OpenAI
…ider functionality
…ntegrate AI analysis in SchemaExplorerHeader
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.
This pull request introduces a new, modular AI integration layer for the bridge, adding support for multiple AI providers and a set of reusable prompt templates for database schema analysis, SQL query explanation, and chart recommendation. The main changes include the implementation of provider adapters for Anthropic, Gemini, Mistral, Ollama, and Groq, the creation of prompt builders and parsers, and updates to the build process and documentation to support these features.
AI Provider Integrations
AIProviderinterface for Anthropic (anthropic.provider.ts), Gemini (gemini.provider.ts), Mistral (mistral.provider.ts), Ollama (ollama.provider.ts), and Groq (groq.provider.ts). Each adapter supports schema analysis, query explanation, chart recommendation, and connection testing. [1] [2] [3] [4] [5]Prompt Builders and Parsers
Build and Dependency Updates
package.jsonto add dependencies for all supported AI providers and new build scripts for bundled packaging, ensuring external native modules are handled correctly.Documentation
src/aifolder, explaining the architecture, layout, and guidelines for adding new providers or prompt templates.These changes collectively establish a flexible, extensible AI framework for the bridge, enabling advanced database assistance features and easy future expansion.