← All projects
Project record1 mention
Originally shared on Hacker News

GPT rich text editing with minimal diffs

This project prompts GPT to perform rich text editing by producing minimal diffs or edit operations instead of replacing the entire document or selection, preserving author intent when merging documents later with OT/CRDT systems. It also explores whether it is easier for an LLM to work with diffs or with operations/tool calls, and notes rich text is trickier than plain text or spreadsheets because it lacks a simple line-column or row-column coordinate system.

Last shared
01 / The problem

What it addresses

Prompting GPT for rich text editing has proven harder than plain text or spreadsheets, which have easier position/coordinate systems to work with (line-column or row-column).

02 / Source history

Shared over time

Each entry reflects what was shared on that date. Details may have changed since then.

  1. GPT rich text editing with minimal diffs

    This project prompts GPT to perform rich text editing by producing minimal diffs or edit operations instead of replacing the entire document or selection, preserving author intent when merging documents later with OT/CRDT systems. It also explores whether it is easier for an LLM to work with diffs or with operations/tool calls, and notes rich text is trickier than plain text or spreadsheets because it lacks a simple line-column or row-column coordinate system.

    Problem: Prompting GPT for rich text editing has proven harder than plain text or spreadsheets, which have easier position/coordinate systems to work with (line-column or row-column).

    Posted by @bhl · Original source ↗

    Source text · @bhl · · Source ↗

    Prompting GPT to do rich text editing. Instead of replacing the entire document or selection, we want it to create diffs or operations for the minimal amount of edits as possible. This helps preserve intent better when merging the doc later on with OT/CRDTs.