├── .github ├── external_db_query.png ├── external_s3_data.png ├── local_csv_query.png ├── local_sqlite_query.png └── workflows │ └── ci.yml ├── .gitignore ├── Dockerfile ├── LICENSE ├── README.md ├── Security.md ├── data ├── Chinook.sqlite ├── duckdb-docs.pdf ├── pirate-speak.txt ├── records.json └── titanic.csv ├── examples ├── query_file.py ├── query_postgres.py └── query_wikidata.py ├── experiments ├── __init__.py ├── assistant.py ├── flan_query_planner.py ├── local_llm.py ├── openai_functions.py └── query_decomposer.py ├── pyproject.toml ├── qabot ├── __init__.py ├── agent.py ├── cli.py ├── config.py ├── download_utils.py ├── formatting.py ├── functions │ ├── __init__.py │ ├── data_loader.py │ ├── describe_duckdb_table.py │ ├── duckdb_query.py │ └── wikidata.py ├── llm.py └── prompts │ ├── __init__.py │ └── system.py └── uv.lock /.github/external_db_query.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hardbyte/qabot/HEAD/.github/external_db_query.png -------------------------------------------------------------------------------- /.github/external_s3_data.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hardbyte/qabot/HEAD/.github/external_s3_data.png -------------------------------------------------------------------------------- /.github/local_csv_query.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hardbyte/qabot/HEAD/.github/local_csv_query.png -------------------------------------------------------------------------------- /.github/local_sqlite_query.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hardbyte/qabot/HEAD/.github/local_sqlite_query.png -------------------------------------------------------------------------------- /.github/workflows/ci.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hardbyte/qabot/HEAD/.github/workflows/ci.yml -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hardbyte/qabot/HEAD/.gitignore -------------------------------------------------------------------------------- /Dockerfile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hardbyte/qabot/HEAD/Dockerfile -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hardbyte/qabot/HEAD/LICENSE -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hardbyte/qabot/HEAD/README.md -------------------------------------------------------------------------------- /Security.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hardbyte/qabot/HEAD/Security.md -------------------------------------------------------------------------------- /data/Chinook.sqlite: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hardbyte/qabot/HEAD/data/Chinook.sqlite -------------------------------------------------------------------------------- /data/duckdb-docs.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hardbyte/qabot/HEAD/data/duckdb-docs.pdf -------------------------------------------------------------------------------- /data/pirate-speak.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hardbyte/qabot/HEAD/data/pirate-speak.txt -------------------------------------------------------------------------------- /data/records.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hardbyte/qabot/HEAD/data/records.json -------------------------------------------------------------------------------- /data/titanic.csv: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hardbyte/qabot/HEAD/data/titanic.csv -------------------------------------------------------------------------------- /examples/query_file.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hardbyte/qabot/HEAD/examples/query_file.py -------------------------------------------------------------------------------- /examples/query_postgres.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hardbyte/qabot/HEAD/examples/query_postgres.py -------------------------------------------------------------------------------- /examples/query_wikidata.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hardbyte/qabot/HEAD/examples/query_wikidata.py -------------------------------------------------------------------------------- /experiments/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /experiments/assistant.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hardbyte/qabot/HEAD/experiments/assistant.py -------------------------------------------------------------------------------- /experiments/flan_query_planner.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hardbyte/qabot/HEAD/experiments/flan_query_planner.py -------------------------------------------------------------------------------- /experiments/local_llm.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hardbyte/qabot/HEAD/experiments/local_llm.py -------------------------------------------------------------------------------- /experiments/openai_functions.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hardbyte/qabot/HEAD/experiments/openai_functions.py -------------------------------------------------------------------------------- /experiments/query_decomposer.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hardbyte/qabot/HEAD/experiments/query_decomposer.py -------------------------------------------------------------------------------- /pyproject.toml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hardbyte/qabot/HEAD/pyproject.toml -------------------------------------------------------------------------------- /qabot/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hardbyte/qabot/HEAD/qabot/__init__.py -------------------------------------------------------------------------------- /qabot/agent.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hardbyte/qabot/HEAD/qabot/agent.py -------------------------------------------------------------------------------- /qabot/cli.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hardbyte/qabot/HEAD/qabot/cli.py -------------------------------------------------------------------------------- /qabot/config.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hardbyte/qabot/HEAD/qabot/config.py -------------------------------------------------------------------------------- /qabot/download_utils.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hardbyte/qabot/HEAD/qabot/download_utils.py -------------------------------------------------------------------------------- /qabot/formatting.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hardbyte/qabot/HEAD/qabot/formatting.py -------------------------------------------------------------------------------- /qabot/functions/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hardbyte/qabot/HEAD/qabot/functions/__init__.py -------------------------------------------------------------------------------- /qabot/functions/data_loader.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hardbyte/qabot/HEAD/qabot/functions/data_loader.py -------------------------------------------------------------------------------- /qabot/functions/describe_duckdb_table.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hardbyte/qabot/HEAD/qabot/functions/describe_duckdb_table.py -------------------------------------------------------------------------------- /qabot/functions/duckdb_query.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hardbyte/qabot/HEAD/qabot/functions/duckdb_query.py -------------------------------------------------------------------------------- /qabot/functions/wikidata.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hardbyte/qabot/HEAD/qabot/functions/wikidata.py -------------------------------------------------------------------------------- /qabot/llm.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hardbyte/qabot/HEAD/qabot/llm.py -------------------------------------------------------------------------------- /qabot/prompts/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hardbyte/qabot/HEAD/qabot/prompts/__init__.py -------------------------------------------------------------------------------- /qabot/prompts/system.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hardbyte/qabot/HEAD/qabot/prompts/system.py -------------------------------------------------------------------------------- /uv.lock: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hardbyte/qabot/HEAD/uv.lock --------------------------------------------------------------------------------