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 allows 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 instance offers the FULL_RESET feature (optional)
export WA_FULL_RESET="$BASE_URL:7565"

# otherwise, be sure to NOT set WA_FULL_RESET, or set it to an empty string
export WA_FULL_RESET=""
  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


Release history Release notifications | RSS feed

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.14.3.dev1.tar.gz (7.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

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

Uploaded Python 3

File details

Details for the file browsergym_webarena-0.14.3.dev1.tar.gz.

File metadata

File hashes

Hashes for browsergym_webarena-0.14.3.dev1.tar.gz
Algorithm Hash digest
SHA256 2406f9f55de927b981475f003160a61025da977a13173922ebde1166ed1a2c5a
MD5 20a9e532f1e1fad300ef2010c38c97fd
BLAKE2b-256 7e168f64a969d196112e4bf26f4dce903479c9cd09698380e2045affce98b264

See more details on using hashes here.

Provenance

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

Publisher: pypi.yml on ServiceNow/BrowserGym

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file browsergym_webarena-0.14.3.dev1-py3-none-any.whl.

File metadata

File hashes

Hashes for browsergym_webarena-0.14.3.dev1-py3-none-any.whl
Algorithm Hash digest
SHA256 429a279a6143d13aaf7477f038f09c66ecd6a0b7d565b8f4161a7494a1567c6b
MD5 db6fda498c29104be315feddddd69bc6
BLAKE2b-256 29e8b99d8708704cd7e35d2618de4eaf0ada1c59e7d36a9f6a638202af1c8c57

See more details on using hashes here.

Provenance

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

Publisher: pypi.yml on ServiceNow/BrowserGym

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

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