Skip to main content

WebArena benchmark for BrowserGym

Project description

WebArena benchmark for BrowserGym

This package provides browsergym.webarena, which is an unofficial port of the WebArena benchmark for BrowserGym.

Note: the original WebArena codebase has been slightly adapted to ensure compatibility.

Server installation

You have two options to setup your webarena instance:

We recommend option 2 as it allows you to easily customize the ports of each webarena domain, and offers a reset functionality that allwos browsergym to trigger a full instance reset remotely.

Setup

  1. Install the package
pip install browsergym-webarena
  1. Download tokenizer resources
python -c "import nltk; nltk.download('punkt_tab')"
  1. Setup the URLs as environment variables. The ports for each domain here should correspond to those you used when setting up your webarena instance. Note also the WA_ prefix which is specific to browsergym.
BASE_URL=<YOUR_SERVER_URL_HERE>  # example: "http://myazuremachine.eastus.cloudapp.azure.com"

# webarena environment variables (change ports as needed)
export WA_SHOPPING="$BASE_URL:8082/"
export WA_SHOPPING_ADMIN="$BASE_URL:8083/admin"
export WA_REDDIT="$BASE_URL:8080"
export WA_GITLAB="$BASE_URL:9001"
export WA_WIKIPEDIA="$BASE_URL:8081/wikipedia_en_all_maxi_2022-05/A/User:The_other_Kiwix_guy/Landing"
export WA_MAP="$BASE_URL:443"
export WA_HOMEPAGE="$BASE_URL:80"

# if your webarena instances offers the FULL_RESET feature (optional)
export WA_FULL_RESET="$BASE_URL:7565"
  1. Setup an OpenAI API key
export OPENAI_API_KEY=...

NOTE: be mindful of costs, as WebArena will call GPT4 for certain evaluations (llm_fuzzy_match).

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

browsergym_webarena-0.13.2.tar.gz (7.7 kB view details)

Uploaded Source

Built Distribution

browsergym_webarena-0.13.2-py3-none-any.whl (8.1 kB view details)

Uploaded Python 3

File details

Details for the file browsergym_webarena-0.13.2.tar.gz.

File metadata

  • Download URL: browsergym_webarena-0.13.2.tar.gz
  • Upload date:
  • Size: 7.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/5.1.1 CPython/3.12.7

File hashes

Hashes for browsergym_webarena-0.13.2.tar.gz
Algorithm Hash digest
SHA256 49d842b2dae32487b3f9e0b801b185bef9272a5548ddefe3d204346fab085d17
MD5 dc4b25a5182272ac37482b06c4e575ed
BLAKE2b-256 b713dd039f2942d9331478c03c804258a53f7ccbb6c128d335320a5c9051a540

See more details on using hashes here.

Provenance

The following attestation bundles were made for browsergym_webarena-0.13.2.tar.gz:

Publisher: pypi.yml on ServiceNow/BrowserGym

Attestations:

File details

Details for the file browsergym_webarena-0.13.2-py3-none-any.whl.

File metadata

File hashes

Hashes for browsergym_webarena-0.13.2-py3-none-any.whl
Algorithm Hash digest
SHA256 78970f378940a699647081dd37b9422eb8cebf4758b292c544fcc97496064d88
MD5 2a44d2374fb2be9d3723f39e3d9a8f53
BLAKE2b-256 1de5d75c2e20ae831f3d51e7eb2d07ba8de3dab970ed1e3f28430025f838a54a

See more details on using hashes here.

Provenance

The following attestation bundles were made for browsergym_webarena-0.13.2-py3-none-any.whl:

Publisher: pypi.yml on ServiceNow/BrowserGym

Attestations:

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page