Skip to content

victorrgodoy/chatbot-ai-sql

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 

Repository files navigation

SQL Chatbot with Ollama

Imagem chat bot sql

Description

This project implements a chatbot that utilizes AI focused on SQL. Users can ask questions in natural language, and the chatbot retrieves results from the database. It uses LangChain4J to simplify connections to the Ollama server, utilizing downloaded duckdb-nsql models.

Features

  • Option to select any local database.
  • Option to choose language models downloaded on your machine through Ollama.
  • GUI designed for ease of use.
  • Tested in two languages: English and Portuguese (BR)

How does it work

Example 1

Screenshot of the main interface.

Example 2

Screenshot demonstrating the functionality.

Example 3

Screenshot demonstrating the functionality.

Technologies Used

  • Java
  • Ollama
  • LangChain4J
  • MySQL
  • Java Swing (for the GUI)
  • Model llm: duckdb-nsql:7b

Prerequisites

  • Java Development Kit (JDK)
  • Any database (in this case, MySQL)
  • Ollama API installed and configured
  • Duckdb-nsql language models available

Installation

  1. Clone the repository:
git clone https://github.com/username/sql-chatbot.git
  1. Set up project dependencies with Maven.
  2. To connect your database, create and set upresources/config.properties (url, user, password).
  3. Run the Main class to start the chatbot.

About

Natural language interpreter chatbot for performing database queries.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages