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.
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).
Shared over time
Each entry reflects what was shared on that date. Details may have changed since then.
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.