Skip to main content

A natural language interface for querying datasets using LLMs

Project description

Query Bot

A web application that allows users to upload CSV files, execute queries, and download results.

Description

This project is built using FastAPI for the backend and HTML with Bootstrap for the frontend. Users can upload datasets, execute SQL queries, and interact with the data through a user-friendly interface.

Usage

  1. Start the FastAPI server and HTTP Server with the following command:
    uv run https://raw.githubusercontent.com/prudhvi1709/localdatachat/refs/heads/main/app.py
    
    Then, open your web browser and navigate to (http://localhost:8000) to access the Query Bot application.
  2. Use the interface to upload CSV files, execute queries, and download results. You can paste multiple paths separated by commas, and the paths should be without quotes. The application can accept the following file types:
    • CSV
    • .parquet
    • SQLite .db
    • .xlsx
    • External MySQL databases from relational-data.org

File Structure

/querybot
│
├── app.py              # The main Python application file
├── .env                # Environment variables file
├── README.md           # The project README file
├── static              # Directory for static files
│   └── index.html      # The main HTML file for the frontend
│   └── js              # Directory for JavaScript files
│       └── script.js   # JavaScript file
├── requirements.txt    # The list of required Python packages
├── LICENSE             # The project license file

Features

  • Upload Files: Users can upload datasets (CSV, .parquet, SQLite .db, .xlsx, and external MySQL databases) through the web interface.
  • Execute Queries: Users can execute SQL queries against uploaded datasets.
  • Download Results: Users can download query results in a convenient format.

License

This project is licensed under the MIT License - see the LICENSE file for details.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

querybot-0.1.1.tar.gz (12.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

querybot-0.1.1-py3-none-any.whl (7.4 kB view details)

Uploaded Python 3

File details

Details for the file querybot-0.1.1.tar.gz.

File metadata

  • Download URL: querybot-0.1.1.tar.gz
  • Upload date:
  • Size: 12.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.4.27

File hashes

Hashes for querybot-0.1.1.tar.gz
Algorithm Hash digest
SHA256 13e07ef5a61b8459c234009ee7388d5249c2f12c2b98e06ad70d83deb45bed3a
MD5 6873c6a87bcbec352e647362e637bba4
BLAKE2b-256 39b80df57317cce3dc0573563010b7db36b14312dc5af53cf551dc3460ff85d1

See more details on using hashes here.

File details

Details for the file querybot-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: querybot-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 7.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.4.27

File hashes

Hashes for querybot-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 9857d7a8dacca2dcb6cb5d835c8f3cf6ec4b0392e198dbf9668092e35e948899
MD5 73c3e9ae0c0ad6fd2263704f5dbb3191
BLAKE2b-256 17aefd1995f3b9f0327f66b7bb1ebbee12d2a183318188049f38734524b0c511

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page