Skip to main content

Selenium code generation from text instructions

Project description

Stargazers Issues Forks Contributors Apache License


LaVague Logo

Welcome to LaVague

Join our Discord server! Docs

Copilot for devs to automate automation

🏄‍♀️ What is LaVague?

LaVague is an open-source project designed to automate automation for devs! By turning natural language queries into Python code leveraging Selenium, LaVague is designed to make it easy for users to automate express web workflows and execute them on a browser.

LaVague in Action

Here's an examples to show how LaVague can execute natural lanaguge instructions on a browser to automate interactions with a website:

LaVague Interaction Example
LaVague interacting with Hugging Face's website.


🚀 Getting Started

Running LaVague in your local env

You can get started with LaVague in 2 steps:

  1. Install LaVague & dependencies
wget https://raw.githubusercontent.com/lavague-ai/LaVague/main/setup.sh &&
sudo bash setup.sh
  1. Run your LaVague command!
lavague-build --file_path tests/hf.txt --config_file examples/api/openai.py

For a step-by-step guide or to run LaVague in a Google Colab, see our quick-tour which will walk you through how to get set-up and launch LaVague with our CLI tool.

🙋 Contributing

We would love your help in making La Vague a reality.

To avoid having multiple people working on the same things & being unable to merge your work, we have outlined the following contribution process:

  1. 📢 We outline tasks on our backlog: we recommend you check out issues with the help-wanted labels & good first issue labels
  2. 🙋‍♀️ If you are interested in working on one of these tasks, comment on the issue!
  3. 🤝 We will discuss with you and assign you the task with a community assigned label
  4. 💬 We will then be available to discuss this task with you
  5. ⬆️ You should submit your work as a PR
  6. ✅ We will review & merge your code or request changes/give feedback

Please check out our contributing guide for a more detailed guide.

If you want to ask questions, contribute, or have proposals, please come on our Discord to chat!

✨ Features

  • Natural Language Processing: Understands instructions in natural language to perform browser interactions.
  • Selenium Integration: Seamlessly integrates with Selenium for automating web browsers.
  • Open-Source: Built on open-source projects such as transformers and llama-index, and compatible with open-source models, either locally or remote, to ensure the transparency of the agent and ensures that it is aligned with users' interests.
  • Local models for privacy and control: Supports local models like Gemma-7b so that users can fully control their AI assistant and have privacy guarantees.
  • Advanced AI techniques: Uses a local embedding (bge-small-en-v1.5) first to perform RAG to extract the most relevant HTML pieces to feed the LLM answering the query. Then leverages Few-shot learning and Chain of Thought to elicit the most relevant Selenium code to perform the action without having to finetune the LLM for code generation.

🗺️ Roadmap

TO keep up to date with our project backlog here.

🚨 Disclaimer

This project executes LLM-generated code using exec. This is not considered a safe practice. We therefore recommend taking extra care when using LaVague (such as running LaVague in a sandboxed environment)!

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

lavague-1.0.5.tar.gz (24.3 kB view details)

Uploaded Source

Built Distribution

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

lavague-1.0.5-py3-none-any.whl (22.1 kB view details)

Uploaded Python 3

File details

Details for the file lavague-1.0.5.tar.gz.

File metadata

  • Download URL: lavague-1.0.5.tar.gz
  • Upload date:
  • Size: 24.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.10.12

File hashes

Hashes for lavague-1.0.5.tar.gz
Algorithm Hash digest
SHA256 7f9a02031e33ade4897398339b4dba81bb9de01621e82a868372823e99a2fadc
MD5 bf391600611406b2e19ea12bd9acafdf
BLAKE2b-256 c8a0235702daac69c34e434a0f549a9646015ee83b2123a1e15d536a433d6bf2

See more details on using hashes here.

File details

Details for the file lavague-1.0.5-py3-none-any.whl.

File metadata

  • Download URL: lavague-1.0.5-py3-none-any.whl
  • Upload date:
  • Size: 22.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.10.12

File hashes

Hashes for lavague-1.0.5-py3-none-any.whl
Algorithm Hash digest
SHA256 673104c2aadc0b0bb95915f3900fd6eae8c470bdac3dc1efae0c9f1d79bf1cc8
MD5 918f7f77e1c59325d31582472ca710ac
BLAKE2b-256 a3365b79b45f3ccbce29645ef6154489a1736fc99c1978665f709b122fce568f

See more details on using hashes here.

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