Annotation UI is a powerful tool designed for creating benchmarking datasets. It streamlines the process of data annotation through a structured four-phase approach. This Annotation UI repository has a respective backend repository which can be found here: https://github.com/OpenNyAI/Annotation-Backend. The setup instruction for the backend is present in that repository's README documentation.
- User authentication (Sign up and Sign in)
- Two-phase workflow:
- Annotation
- Review
- Document annotation
- Answer versioning
- Flag system for irrelevant questions
Users can:
- Simulate questions
- Annotate documents in response to the question
- Annotated retriever chunks that are pulled up in response to the question
- Add additional information from other legal documents
- Put together a comprehensive answer to their question
- View previously annotated answers
In this phase, users can:
- Review annotated questions
- Modify answers, creating new versions
- Switch between different answer versions
- Flag questions deemed irrelevant
- React
- Vite
- Docker
- Node.js
- Docker (optional)
Create a .env
file in the root directory with the following content:
VITE_API_URL="http://localhost:8080"
VITE_TALLY_FORM_URL=""
Adjust the values as needed for your environment.
-
Clone the repository:
git clone git@github.com:OpenNyAI/Annotation-UI.git cd Annotation-UI
-
Install dependencies:
npm install
-
Start the development server:
npm run dev
-
Open your browser and navigate to
http://localhost:5173
(or the port specified by Vite).
The Dockerfile uses build arguments to set environment variables. Here's how to build and run the container:
-
Build the Docker image:
docker build \ --build-arg API_URL=http://localhost:8080 \ --build-arg TALLY_FORM_URL="#tally-open=form_id" \ -t annotation-ui .
You can customize the
API_URL
andTALLY_FORM_URL
arguments as needed. -
Run the container:
docker run -p 5000:80 annotation-ui
This command maps port 5000 on your host to port 80 in the container. Adjust the port mapping if needed.
-
Access the application at
http://localhost:5000
in your browser.
Note: The environment variables VITE_API_URL
and VITE_TALLY_FORM_URL
are set inside the container based on the build arguments. You don't need to pass them again when running the container.