Skip to main content

A natural language interface for querying datasets using LLMs

Project description

Local Datachat

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 Local Datachat 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

/localdatachat
│
├── 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.0.tar.gz (11.0 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.0-py3-none-any.whl (6.7 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: querybot-0.1.0.tar.gz
  • Upload date:
  • Size: 11.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.0

File hashes

Hashes for querybot-0.1.0.tar.gz
Algorithm Hash digest
SHA256 235e0b1ce31587cba25739533a2bbb81afbbe3abbe2c42b6c346ecf4ed43cc7e
MD5 6b7048cd808ab46f48f9027264c0f3bb
BLAKE2b-256 2740e80c51d24a885f70622782a07ca1f9bea5ed185bd456254a4fa160b7420f

See more details on using hashes here.

File details

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

File metadata

  • Download URL: querybot-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 6.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.0

File hashes

Hashes for querybot-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 c797ceb35f08ecf65667853c08b1c2b937d5dd815c1646cacf8c7bc99f73af7c
MD5 f9d1d640e979179d9e779177167fbc63
BLAKE2b-256 dad90b827786fc1e573c0122012efc91129d3b90dca211455f4f1284a83e14a4

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