Giter VIP home page Giter VIP logo

agentbench's Introduction

๐ŸŒ Website | ๐Ÿฆ Twitter | โœ‰๏ธ Google Group | ๐Ÿ“ƒ Paper

๐Ÿ‘‹ Join our Slack for Q & A or collaboration on AgentBench v2.0!

AgentBench: Evaluating LLMs as Agents

AgentBench is the first benchmark designed to evaluate LLM-as-Agent across a diverse spectrum of different environments. It encompasses 8 distinct environments to provide a more comprehensive evaluation of the LLMs' ability to operate as autonomous agents in various scenarios. These environments include 5 freshly created domains, namely

  • Operating System (OS)
  • Database (DB)
  • Knowledge Graph (KG)
  • Digital Card Game (DCG)
  • Lateral Thinking Puzzles (LTP)

as well as 3 recompiled from published datasets:

Table of Contents

Dataset Summary

We offer three splits for each dataset: Dev, Test, and Extend. Dev is fully public, while Test and Extend are private. In designing AgentBench, we balance evaluation thoroughness and efficiency. Though the number of problems in Dev and Test may seem small at 289 and 1,141, the multi-turn interaction requires an LLMs to generate around 4k and 13k times, making the testing time-consuming.

Leaderboard

Here is the scores on test set (standard) results of AgentBench.

While LLMs begin to manifest their proficiency in LLM-as-Agent, gaps between models and the distance towards practical usability are significant.

Quick Start

To quickly understand how the framework works, you can follow the instructions below to run a simple evaluation.

Step 1. Clone this repo and run the following command to install the requirements:

pip install --upgrade pip
pip install -r requirements.txt

Step 2. Verify that you have successfully installed the requirements by running the following command:

python eval.py \
    --task configs/tasks/example.yaml \
    --agent configs/agents/do_nothing.yaml

Step 3. Run Example Assignment

HINT: Example Assigment is composed of gpt-3.5-turbo and ExampleTask defined in src/tasks/example_task.py.

You need to fill your OPENAI KEY in configs/assignments/example.yaml first.

Authorization: Bearer <%% PUT-YOUR-OPENAI-KEY-HERE %%>

Then run the following command:

python create_assignment.py \
    --assignment configs/assignments/example.yaml

And you can see the target assignment bash script from the output like this:

[System] Run the following command to start evaluation:
    bash .assignments/<TIMESTAMP>.sh

Finally, run the assignment bash script that displayed in the output to start evaluation. After that, you can check your output in the outputs folder.

Turorial

For more detailed instructions and advanced usage, please refer to our tutorial.

Citation

Coming Soon!

agentbench's People

Contributors

longin-yu avatar xiao9905 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.