DatabaseExplorer can be connected to GitHub Copilot, allowing you to use AI with data sources registered in DatabaseExplorer.
AI and data sources in DatabaseExplorer

In DatabaseExplorer, you register one or more data sources, such as SQL Server, MySQL or PostgreSQL databases. The application analyses and registers these databases, then makes their data available through its API. The API is exposed to GitHub Copilot through MCP. This gives Copilot information about where data is stored and lets it use that data for analysis. Copilot can work across databases by reading a dataset from one database and combining it with a dataset from another. This means you do not need to build an expensive data warehouse to load data into fact and dimension tables: Copilot can do this on the fly, provided it has the right instructions.
AI security in DatabaseExplorer

Each Copilot session starts with a system prompt: instructions that are included by default in every session. The prompt specifies that data may only be queried through the API. Before running a query, the API checks whether the signed-in user has permission to access the table or tables being queried. If the user does not have permission, the API returns an error. This prevents both the user and Copilot from accessing data they are not authorised to see.
AI and additional instructions

In DatabaseExplorer, you can create additional instructions (a prompt) for your Copilot session. For example, you can describe the relationships between data sources, such as which keys to use or whether records should be matched by name. The prompt is stored in the database and can be selected when you create a new session. This helps ensure that the session has the right data sources and uses the keys needed to join them.
Connect DatabaseExplorer to your in-house LLM

DatabaseExplorer can run entirely in your own environment (on-premises), so you may also want to use an LLM locally. There are several ways to do this, but a common option is Ollama with a model it supports. This helps keep your data within your network. Support for Ollama is in development.
