Skip to content

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

License

Notifications You must be signed in to change notification settings

thunlp/AutoForm

Repository files navigation

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 [email protected]: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"

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages