Skip to main content

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.

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.7.0.tar.gz (112.3 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.7.0-py3-none-any.whl (131.1 kB view details)

Uploaded Python 3

File details

Details for the file querychat-0.7.0.tar.gz.

File metadata

  • Download URL: querychat-0.7.0.tar.gz
  • Upload date:
  • Size: 112.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for querychat-0.7.0.tar.gz
Algorithm Hash digest
SHA256 503016d130cec20c9c5bb5562296fa324a5aeebf8062506e370bc3c994614c63
MD5 2ef700f7851e9789442e036fe2f9c7cc
BLAKE2b-256 4313692642f668f8c20541a67b660bd70cb798b0a709a316499497e228200246

See more details on using hashes here.

Provenance

The following attestation bundles were made for querychat-0.7.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.7.0-py3-none-any.whl.

File metadata

  • Download URL: querychat-0.7.0-py3-none-any.whl
  • Upload date:
  • Size: 131.1 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.7.0-py3-none-any.whl
Algorithm Hash digest
SHA256 1c7e5be33ce7bc7b9d704f3ee2d59f5acbca3b0a5dea4b7083712f9f46dc10ee
MD5 891b6c7a09c0bc115f51d8b32c394f6b
BLAKE2b-256 64adc72d0e3185726fed89f6c6237731c9734114aebc01a7f75b1f67027a28f1

See more details on using hashes here.

Provenance

The following attestation bundles were made for querychat-0.7.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 Sentry Error logging StatusPage Status page