lspahija / force-multiplier

Use AI to edit your documents in real-time. Provide feedback and let the AI do all the work.
MIT License
25 stars 6 forks source link
ai gpt-4 machine-learning

FM

Force Multiplier

We Are All Supervisors

Most workers today are tasked with producing some sort of artifact (e.g. code, legal contract, documentation, essay, etc.)

For example, the process might look something like this in the legal domain:

  1. supervisor gives their subordinate worker a task to write a legal contract
  2. subordinate worker goes off and writes a draft of a legal contract, which might take days or weeks
  3. subordinate worker brings draft to supervisor for review
  4. supervisor provides feedback
  5. subordinate worker modifies legal contract, taking supervisor's feedback into account
  6. steps 3-5 repeat until supervisor is satisfied with the legal contract

The main bottleneck in the above process is the subordinate worker taking time to write and modify the contract. Luckily, modern LLMs are orders of magnitude faster than humans at doing precisely this.

Force Multiplier allows the user to iteratively provide verbal feedback, while it modifies the artifact (the legal contract in the example above) until the user is satisfied with the result.

The goal of Force Multiplier is to multiply the user's productivity by enabling them to become a supervisor that leverages Force Multiplier as a subordinate worker.

https://github.com/lspahija/force-multiplier/assets/44912218/6c76aeb7-385f-4804-9818-c24f8dbbb4f0

Efficiency

Force Multiplier allows you to provide verbal feedback and only modifies the portions of your artifact that require modification, given your feedback. The rest of the artifact remains unchanged. This allows for fast iteration because it's not necessary to wait for the underlying AI to regenerate the entire artifact after each piece of feedback is given.

Core Functionality

With Force Multiplier, you can input any block of text as your initial document or "artifact". Then, voice your feedback and describe the changes you desire. Force Multiplier will interpret your instructions, making real-time adjustments to the document based on your spoken directives. The experience is akin to having a high-speed human assistant editing a document as you provide your insights.

Edit Code

Force Multiplier enables you to edit code as well. You can even render React code right in the UI, and can watch your React app change as you provide verbal feedback.

Run it Locally

  1. Clone the repo
    git clone git@github.com:lspahija/force-multiplier.git
  2. Change directory to AIUI
    cd force-multiplier
  3. Build Docker image
    docker build -t forcemultiplier .

    or if on arm64 architecture (including Apple Silicon):

    docker buildx build --platform linux/arm64 -t forcemultiplier .
  4. Create Docker container from image
    docker run -d -e OPENAI_API_KEY=<YOUR_API_KEY> -p 8000:80 forcemultiplier
  5. Navigate to localhost:8000 in a modern browser