Skip to content
 
 

Repository files navigation

Environment

conda create --name mact python=3.10 -y
conda activate mact
pip install -r requirements.txt

Data

We support the following datasets:

{"statement": a question or a statement in string format,
 "table_text": a table in list format containing lists of rows,
 "answer": a list containing answer(s).}

You can find examples in the folder datasets_examples.

Code Structure

code/tqa.py: main script for running experiments.

code/agent.py: script containing classes and functions for controlling agent behaviours.

code/llm.py: script for LLMs calling.

code/tot.py: script containing functions and prompts for using LLM to select best actions.

code/utils.py: script containing helpful functions for running experiments.

code/prompts_table.py: prompts used in our experiments.

code/fewshots_table.py: few shot demostrations used in our experiments.

Usages

run with closed-sourced gpt models

Run with OpenAI GPT Models

  1. Configure your .env file with OpenAI API credentials
  2. Run the evaluation. Example command:
    python tqa.py --plan_model_name  gpt-3.5-turbo \
    --code_model_name  gpt-3.5-turbo  \
    --dataset_path  ../datasets_examples/tat.jsonl \
    --task  tat
    

Run with Open-Source Models via RunPod

The unified LLM interface automatically routes open-source models to your RunPod vLLM endpoint:

  1. Configure your .env file with RunPod endpoint details
  2. Run with open-source models:
    python tqa.py --plan_model_name  Qwen/Qwen3-8B \
    --code_model_name  Qwen/Qwen3-8B  \
    --dataset_path  ../datasets_examples/tat.jsonl \
    --task  tat
    

Evaluations

  • We use evaluation scripts from WTQ dataset to measure Exact Match Accuracy for WTQ, CRT and SciTab.
  • We use the official evaluation scripts from TAT to evaluate models' performances on the TAT dataset.

Cite

@misc{zhou2025efficientmultiagentcollaborationtool,
      title={Efficient Multi-Agent Collaboration with Tool Use for Online Planning in Complex Table Question Answering},
      author={Wei Zhou and Mohsen Mesgar and Annemarie Friedrich and Heike Adel},
      year={2025},
      eprint={2412.20145},
      archivePrefix={arXiv},
      primaryClass={cs.CL},
      url={https://arxiv.org/abs/2412.20145},
}

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages