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.1.tar.gz (89.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.6.1-py3-none-any.whl (102.2 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: querychat-0.6.1.tar.gz
  • Upload date:
  • Size: 89.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.6.1.tar.gz
Algorithm Hash digest
SHA256 0df990232d18cf7597fdb913bb5b04ecf07bdb084ec8bacb2f59735b51c58a9f
MD5 f8116604e3be088ba2921f365c0a2149
BLAKE2b-256 ad92ef07f9b055e3b1e30a21cd1164a99bd904f3787188370a5c06911f238a56

See more details on using hashes here.

Provenance

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

File metadata

  • Download URL: querychat-0.6.1-py3-none-any.whl
  • Upload date:
  • Size: 102.2 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.1-py3-none-any.whl
Algorithm Hash digest
SHA256 8e6c5997889dd84ee7893ca9f4983cd00cb936907876f4735f0e63fb4d139412
MD5 3114bbc1ae9687db194c575df8a28a3c
BLAKE2b-256 95cf2f9f614cc0980a9b444bfb8a1dd407100922bf7b457072b82b03fb608323

See more details on using hashes here.

Provenance

The following attestation bundles were made for querychat-0.6.1-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