Skip to main content

Chat with your data using natural language

Project description

querychat querychat website

PyPI MIT License versions Python Tests

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()

QueryChat interface showing natural language queries

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:

A custom app for exploring Airbnb listings, powered by QueryChat.

Learn more

See the website to learn more.

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

querychat-0.6.0.tar.gz (88.9 kB view details)

Uploaded Source

Built Distribution

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

querychat-0.6.0-py3-none-any.whl (101.8 kB view details)

Uploaded Python 3

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

Hashes for querychat-0.6.0.tar.gz
Algorithm Hash digest
SHA256 087304b2a83169c6e6d9184d9866dc821965fb2068277128acc7e101bb9455e0
MD5 97fb74abb0a314ed3d7874f0c6b46424
BLAKE2b-256 74bbc2c21fc3d363327ea121462322cb1580f93f2de1fef32214c59f98086104

See more details on using hashes here.

Provenance

The following attestation bundles were made for querychat-0.6.0.tar.gz:

Publisher: py-release.yml on posit-dev/querychat

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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

Hashes for querychat-0.6.0-py3-none-any.whl
Algorithm Hash digest
SHA256 45d6c60672faf68c730552096aa0dd71bacb8f64864e345e5c5e04a9828bbd1b
MD5 da3702b651114b117b8a1647f819a778
BLAKE2b-256 efa215703ae24c601d54766d41bfe28b8632300c131c948847b980bd29b89a3d

See more details on using hashes here.

Provenance

The following attestation bundles were made for querychat-0.6.0-py3-none-any.whl:

Publisher: py-release.yml on posit-dev/querychat

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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