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.5.0.dev0.tar.gz (6.1 kB view details)

Uploaded Source

Built Distribution

File details

Details for the file browsergym_webarena-0.5.0.dev0.tar.gz.

File metadata

File hashes

Hashes for browsergym_webarena-0.5.0.dev0.tar.gz
Algorithm Hash digest
SHA256 86e506788e6f0835ec34c76ca45d1f110404bb2c8470ca8dbad9fe844b007400
MD5 bd360a9d84fcc1c3ae62b3d3341fb9a0
BLAKE2b-256 3a8a5eb96ce733cf9b4ad24fa003b4971e7af825d25cce4d4e4d0f513c9fda88

See more details on using hashes here.

File details

Details for the file browsergym_webarena-0.5.0.dev0-py3-none-any.whl.

File metadata

File hashes

Hashes for browsergym_webarena-0.5.0.dev0-py3-none-any.whl
Algorithm Hash digest
SHA256 7fafd245ae4fe235b3eab8829727807926ec5a60c2f0d369f7a3c8d778d257a2
MD5 c818a3b908e4843ad6e02cf3f008092d
BLAKE2b-256 975a9957d86f2adc7c8590ee54af185a75cfa321a6e65b656ac3ad72a3f3ba26

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