Skip to content

Translating natural language into a query and then executing it on a database

License

Notifications You must be signed in to change notification settings

avisionh/sqlgpt

Repository files navigation

sqlgpt

Translating natural language into a query and then executing this in a database.

Getting started

Download Ollama from the official website here.

In your terminal, download Llama 3 via ollama pull llama3 (takes ~30 mins to download).

Create a service account key for the project in GCP that you want to access here. Then store this in as profiles/gcp_service_account_key.json.

Now set-up the project by running the following:

make setup-local

Interacting with chatbot

To ask the Llama3 a question about your data, run the following in your terminal:

poetry run streamlit run app.py

Docker

To build the Docker container and image for this, run the below:

docker-compose up

When not in use, run:

docker-compose down

You can inspect the actual container via:

docker container list
# find the ID of your docker container
docker exec -it <container_id> bash

About

Translating natural language into a query and then executing it on a database

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published