Read-only mirror of https://github.com/dscc-admin-ch/statbot.swiss — Data Science Competence Center DSCC. Issues & pull requests at the source.
  • Jupyter Notebook 50.2%
  • Python 49.8%
Find a file
Repository files (latest commit first)
Filename Latest commit message Latest commit date
2024-06-24 13:32:10 +00:00
data/statbot/nl2sql_data init 2024-06-24 13:32:10 +00:00
results init 2024-06-24 13:32:10 +00:00
src init 2024-06-24 13:32:10 +00:00
LICENSE init 2024-06-24 13:32:10 +00:00
means_by_lang-hardness.png init 2024-06-24 13:32:10 +00:00
means_by_lang-HEA.png init 2024-06-24 13:32:10 +00:00
means_by_zero-few.png init 2024-06-24 13:32:10 +00:00
README.md init 2024-06-24 13:32:10 +00:00
requirements.txt init 2024-06-24 13:32:10 +00:00

Statbot.swiss

The repository contains all datasets and evaluations for the statbot.swiss benchmark.

Install

  • conda create -n statbot python=3.11.4

  • conda activate statbot

  • pip install -r requirements.txt

Usage

To run langchain with ChatGPT:

  1. provide openai-api-key in src/config.json file.

  2. reproduce results based on gpt-3.5-turbo-16k run the command below.

  3. For random shot selection, choose random and for the selection based on similarity choose similarity for --shot-selection-strategy.

  • Command to run:

    python src/main.py --shot-selection-strategy <random|similarity>

Aknowlegement

This work is the output of the INODE4StatBot.swiss project, funded by the Swiss Federal Statistical Office.
It is a collaboration between the Institute of Computer Science at ZHAW, the Competence Center for Data Science of the Federal Statistical Office, the Cantonal Statistical Office Zurich, and the Swiss Data Science Center.

License

This work is licensed under the MIT license. Third-party software and data are subject to their respective licenses.

Citation

Please cite the paper as follows:

@article{statbot2024,
  title={StatBot. Swiss: Bilingual Open Data Exploration in Natural Language},
  author={Nooralahzadeh, Farhad and Zhang, Yi and Smith, Ellery and Maennel, Sabine and Matthey-Doret, Cyril and de Fondville, Rapha{\"e}l and Stockinger, Kurt},
  journal={arXiv preprint arXiv:2406.03170},
  year={2024}
}