thunlp / AutoForm

Code for paper "Beyond Natural Language: LLMs Leveraging Alternative Formats for Enhanced Reasoning and Communication"

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

This is the official code repository for the paper "LLMs Leveraging Alternative Formats for Enhanced Reasoning and Communication". This repository is built upon AgentVerse.

Getting Started

Installation

Clone the repository and install the dependencies.

git clone git@github.com:thunlp/AutoForm.git
cd AutoForm
# Python>=3.10
pip install -r requirements.txt

Environment Variables

Set OpenAI key and Google API key.

# Export your OpenAI API key
export OPENAI_API_KEY="your_api_key_here"

# Export your Google API key
export GOOGLE_API_KEY="your_api_key_here"

Run the scripts

Here is an example of how to run the scripts. This script implement Single-LLM Reasoning using Gemini Pro with AutoForm on AQuA dataset.

python scripts/aqua/autoform-gemini.py

You can try other scripts to reproduce the results reported in our paper.

About

Code for paper "Beyond Natural Language: LLMs Leveraging Alternative Formats for Enhanced Reasoning and Communication"

License:Apache License 2.0


Languages

Language:Python 100.0%