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.

Setup

  1. Install the package
pip install browsergym-webarena
  1. Download tokenizer ressources
python -c "import nltk; nltk.download('punkt')"
  1. Setup the web servers (follow the webarena README).
BASE_URL=<YOUR_SERVER_URL_HERE>
  1. Setup the URLs as environment variables (note the WA_ prefix)
export WA_SHOPPING="$BASE_URL:7770/"
export WA_SHOPPING_ADMIN="$BASE_URL:7780/admin"
export WA_REDDIT="$BASE_URL:9999"
export WA_GITLAB="$BASE_URL:8023"
export WA_WIKIPEDIA="$BASE_URL:8888/wikipedia_en_all_maxi_2022-05/A/User:The_other_Kiwix_guy/Landing"
export WA_MAP="$BASE_URL:3000"
export WA_HOMEPAGE="$BASE_URL:4399"
  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.9.0.tar.gz (6.3 kB view details)

Uploaded Source

Built Distribution

browsergym_webarena-0.9.0-py3-none-any.whl (6.6 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: browsergym_webarena-0.9.0.tar.gz
  • Upload date:
  • Size: 6.3 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.9.0.tar.gz
Algorithm Hash digest
SHA256 fd4c3152c1237186fbb1f3c634a72c2e455a7c11d23f7e35b033ef51ddd7d92f
MD5 4d8b4cdcfc30c544f09fd9c0ece4ccb9
BLAKE2b-256 a58ab01edc8dc49ae2b30bf6ac825ab2b4f07f746d37ebf0bd0a11373843316c

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for browsergym_webarena-0.9.0-py3-none-any.whl
Algorithm Hash digest
SHA256 b959d2b64ec0bbfe815852d50391b7d177b8da0e9eef3b5951f33ace14f8260c
MD5 c7f6097159ead5878a1561989fe4307b
BLAKE2b-256 f94ea32a9fd5172ddba52351a359ffbef3d2450c63a3cfa6358a80a69be84bdb

See more details on using hashes here.

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