Skip to content

feat: AI integration for schema analysis, chart recommendation and query explaination #72

Merged
Yashh56 merged 11 commits into
Relwave:developfrom
Yashh56:feat/ai-int
Jun 4, 2026
Merged

feat: AI integration for schema analysis, chart recommendation and query explaination #72
Yashh56 merged 11 commits into
Relwave:developfrom
Yashh56:feat/ai-int

Conversation

@Yashh56

@Yashh56 Yashh56 commented Jun 3, 2026

Copy link
Copy Markdown
Member

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

  • Added new provider adapters implementing the AIProvider interface 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

  • Introduced prompt builder modules for schema analysis, query explanation, and chart recommendation, along with a shared prompt fragment file. Includes robust parsing for chart recommendations and defensive error handling. [1] [2] [3] [4]

Build and Dependency Updates

  • Updated package.json to add dependencies for all supported AI providers and new build scripts for bundled packaging, ensuring external native modules are handled correctly.

Documentation

  • Added a comprehensive README to the src/ai folder, 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.

@Yashh56 Yashh56 merged commit 5242002 into Relwave:develop Jun 4, 2026
2 checks passed
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.

1 participant