Chat with your data using natural language
Project description
querychat 
QueryChat facilitates safe and reliable natural language exploration of tabular data, powered by SQL and large language models (LLMs). For analysts, it offers an intuitive web application where they can quickly ask questions of their data and receive verifiable data-driven answers. For software developers, QueryChat provides a comprehensive Python API to access core functionality -- including chat UI, generated SQL statements, resulting data, and more. This capability enables the seamless integration of natural language querying into bespoke data applications.
Installation
Install the latest stable release from PyPI:
pip install querychat
Web Framework Extras
querychat supports Gradio, Dash, and Streamlit. Install with the extras you need:
pip install "querychat[gradio]"
pip install "querychat[dash]"
pip install "querychat[streamlit]"
Or install directly from GitHub:
pip install "querychat[gradio] @ git+https://github.com/posit-dev/querychat"
Quick start
The main entry point is the QueryChat class. It requires a data source (e.g., pandas, polars, etc) and a name for the data.
from querychat import QueryChat
from querychat.data import titanic
qc = QueryChat(titanic(), "titanic")
app = qc.app()
# app.run()
Custom apps
Build your own custom web apps with natural language querying capabilities, such as this one which provides a bespoke interface for exploring Airbnb listings:
Learn more
See the website to learn more.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file querychat-0.6.0.tar.gz.
File metadata
- Download URL: querychat-0.6.0.tar.gz
- Upload date:
- Size: 88.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
087304b2a83169c6e6d9184d9866dc821965fb2068277128acc7e101bb9455e0
|
|
| MD5 |
97fb74abb0a314ed3d7874f0c6b46424
|
|
| BLAKE2b-256 |
74bbc2c21fc3d363327ea121462322cb1580f93f2de1fef32214c59f98086104
|
Provenance
The following attestation bundles were made for querychat-0.6.0.tar.gz:
Publisher:
py-release.yml on posit-dev/querychat
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
querychat-0.6.0.tar.gz -
Subject digest:
087304b2a83169c6e6d9184d9866dc821965fb2068277128acc7e101bb9455e0 - Sigstore transparency entry: 1451703811
- Sigstore integration time:
-
Permalink:
posit-dev/querychat@b719cb5248bb2d6773571c601baade8f8cf740b2 -
Branch / Tag:
refs/tags/py/v0.6.0 - Owner: https://github.com/posit-dev
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
py-release.yml@b719cb5248bb2d6773571c601baade8f8cf740b2 -
Trigger Event:
release
-
Statement type:
File details
Details for the file querychat-0.6.0-py3-none-any.whl.
File metadata
- Download URL: querychat-0.6.0-py3-none-any.whl
- Upload date:
- Size: 101.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
45d6c60672faf68c730552096aa0dd71bacb8f64864e345e5c5e04a9828bbd1b
|
|
| MD5 |
da3702b651114b117b8a1647f819a778
|
|
| BLAKE2b-256 |
efa215703ae24c601d54766d41bfe28b8632300c131c948847b980bd29b89a3d
|
Provenance
The following attestation bundles were made for querychat-0.6.0-py3-none-any.whl:
Publisher:
py-release.yml on posit-dev/querychat
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
querychat-0.6.0-py3-none-any.whl -
Subject digest:
45d6c60672faf68c730552096aa0dd71bacb8f64864e345e5c5e04a9828bbd1b - Sigstore transparency entry: 1451703902
- Sigstore integration time:
-
Permalink:
posit-dev/querychat@b719cb5248bb2d6773571c601baade8f8cf740b2 -
Branch / Tag:
refs/tags/py/v0.6.0 - Owner: https://github.com/posit-dev
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
py-release.yml@b719cb5248bb2d6773571c601baade8f8cf740b2 -
Trigger Event:
release
-
Statement type: