Skip to content

Shuyib/PAL

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

PAL - Program Aided Language Model (PAL)

Open in GitHub Codespaces

Using streamlit, openai 'text-davinci-003'/'gpt-3.5-turbo-instruct' and Langchain to create a program aided language model. They are achieve state of the art results on math word problems. This project is a proof of concept to see if we can make an application to help people with their math problems by using a language model to help them understand the problem better.

Use an LLM -> decompose the problem into runnable steps -> run program in PY IDE -> return results to user.

Learn more by reading the paper or visiting the website.

Installation

To install requirements, make a virtual environment and run:

make venv/bin/activate

# activate the virtual environment
source venv/bin/activate

make install

Usage

To run the app, make sure you are in the virtual environment and run:

make run

Contributing

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

License

Apache 2.0

About

Using an LLM to answer math word problems common in IRL. Program aided language modeling.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published