DocWrangler is a playground for prototyping DocETL pipelines. It provides an integrated development environment (IDE) for building and testing document processing pipelines, with a real-time interface to develop, test and refine your pipelines through a FastAPI backend.
DocWrangler streamlines development from prototype to production. User studies show developers found building pipelines significantly faster and easier with DocWrangler vs traditional approaches.
Building complex LLM pipelines for your data often requires experimentation and iteration. DocWrangler lets you:
You can access our hosted DocWrangler at docetl.org/playground. You'll need to provide your own LLM API keys to use the service. The chatbot and prompt engineering assistants are powered by OpenAI models, so you'll need to provide an OpenAI API key.
Data Storage Notice
As this is a research project, we cache results and store data on our servers to improve the system. While we will never sell or release your data, if you have privacy concerns, we recommend running the playground locally using the installation instructions below.
There are two ways to run the playground:
The easiest way to get started is using Docker:
Create .env in the root directory (for the FastAPI backend):
Create .env.local in the website directory (for the frontend) note that this must be in the website directory:
This will:
To clean up Docker resources (note that this will delete the Docker volume):
For development or if you want to run the UI locally:
Clone the repository:
Set up environment variables in .env in the root directory:
Create .env.local in the website directory:
Note
Note that the OpenAI API key, base, and model name in the .env.local file are only for the UI assistant functionality, not the DocETL pipeline execution engine.
Install dependencies:
Start the development server:
Navigate to http://localhost:3000/playground to access DocWrangler.
The UI offers an optional chat-based assistant that can help you iteratively develop your pipeline. It is currently very experimental. It can't write to your pipeline, but you can bounce ideas off of it and get it to help you iteratively develop your pipeline.
To use the assistant, you need to set your OpenAI API key in the .env.local file in the website directory. You can get an API key here. The API key should be in the following format: sk-proj-.... We only support the openai models for the assistant.
Self-hosting with UI API key management
If you want to host your own version of DocWrangler for your organization while allowing users to set their API keys through the UI, you'll need to set up encryption. Add the following to both .env and website/.env.local:
See this YouTube video for a more in depth tutorial on how to use DocWrangler.