Git Product home page Git Product logo

cs224nproject's Introduction

Multi-Agent Frameworks in Domain-Specific Question Answering Tasks

This repository contains the code used to generate experiments for our paper "Multi-Agent Frameworks in Domain-Specific Question Answering Tasks." For detailed insights and results, refer to the CS224N_Project_Final_Report.pdf.

Prerequisites

Ensure you have set the environment variables for the OpenAI, Llama, Google, and Anthropic API keys to run the code.

Configuration

Modify the ENSEMBLE configuration in the run.py file to specify the quantity and type of language models (LLMs) for the ensemble. Available options include OpenAI, Llama, Google, and Anthropic:

ENSEMBLE = {
    'OpenAI': 4,
    'Llama': 4,
    'Google': 4,
    'Anthropic': 0
}

Usage

To run experiments, use the following command with the dataset options MATH, LEGAL, or TRIVIA to specify which type of task you would like to evaluate the LLM ensemble on:

python run.py --dataset MATH LEGAL TRIVIA

Repository Structure

  • /tasks:

    • Contains code to execute language model (LLM) ensembles on each of the specified task categories.
  • /llm:

    • Includes code for generating and managing LLM agent ensembles.
  • /utils:

    • Houses utilities for prompting, evaluation, and answer formatting. This includes specialized code for handling mathematical instances.

cs224nproject's People

Contributors

spaul2000 avatar ethanhellman avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.