Turning Documents into Conversations with AI

I’ve trudged through complex documents in both professional and personal life, wishing I could ask for a clearer explanation or more context. In June 2023, I imagined AI assistants making that reading feel more like a conversation.

On June 10, 2023, I participated in a private gathering in Silicon Valley hosted by Richard Socher and Nancy Xu. Google co-founder Sergey Brin and former Twitter CEO and CTO Parag Agrawal were among the attendees.

There, I discussed my vision for interactive AI agents that would let us ask questions as we read scientific papers and books, interpret images, or watch videos. A reader could pause at a difficult passage, ask for an explanation suited to their knowledge, and follow the questions that explanation raised.

At Richard Socher and Nancy Xu’s AI get-together in Silicon Valley, June 10, 2023At Richard Socher and Nancy Xu’s AI get-together in Silicon Valley, June 10, 2023

By 2023, I had spent most of my career leading product and engineering at media organizations including The New York Times, The Wall Street Journal, Conde Nast, and Hearst. I’d seen how much high-quality information matters to society, and how digitization, from the rise of the internet to multimedia platforms, changed the way people engaged with it. I’d also been applying machine learning to media use cases since my product engineering days at Knight Ridder in the 1990s. That work had exposed me to the difficulties readers face in making use of the information available to them.

I had been an investor in and advisor to You.com since 2021, before ChatGPT popularized LLMs.

A large language model, or LLM, generates language in response to a prompt and the material supplied with it. An assistant gives the reader a way to ask questions and follow up. To discuss a particular document accurately, the system needs access to the relevant passages.

Asking questions of text

  1. Explaining complex content. Ask for a scientific paper’s difficult paragraph in everyday language, keeping the qualifications that affect its meaning. You can then return to the original passage with a better grasp of what it says.
  2. Personalized extraction and expansion. Tell the assistant why you are reading a paper or book, and ask it to find and explain the passages most relevant to that purpose. Have it distinguish those passages from any background it adds.
  3. Making complex documents accessible. Explanations, summaries and simpler versions can give a reader a way into technical, financial or scientific material. The useful simplification keeps the source’s meaning while reducing the knowledge needed to begin.
  4. Providing historical and cultural context. With historical texts or foreign literature, ask about the social setting, cultural references or events that help explain a passage. The assistant should identify sources for background that the text itself does not supply.
  5. Augmenting interactive reading. While reading a novel, ask about the author’s style, themes across their works, or real-world analogues to plot points. Asking which passages support an interpretation can make the discussion more interesting as well as more precise.
  6. Assistance with language learning. Ask for a translation, an explanation of an idiom, or the cultural nuance a literal translation misses. Follow-up questions let you work through an ambiguous expression at your own pace.
  7. Real-time fact-checking. An agent with access to relevant current sources could help investigate a claim in a news article or blog post, bringing in other perspectives or data. Verification still requires checking that the evidence supports the claim; a confident answer or a citation by itself does not establish that.
  8. Supporting legal and regulatory comprehension. Ask for explanations of terms, summaries of sections, and help tracing relationships between clauses and relevant laws or precedents. Any claim about which law or precedent applies needs the actual source and jurisdiction checked. Help understanding the language does not, by itself, establish a legal conclusion.
  9. Exploring author influences. Ask how a work relates to earlier literature or historical events. Documented influences need sources; a resemblance between two works can also be an interesting interpretation without establishing that one influenced the other.
  10. Simulating author interaction. You might ask an assistant to imagine how an author would discuss a passage or a different writing choice, drawing on the author’s other work. Such a response is fictional interpretation. It cannot replace an actual interaction with the author or establish what they thought.

A document conversation you can check

Consider this fictional notice and two questions a reader might ask about it.

The reading room will close on Friday for shelf repairs.

Borrowed books may be returned through the outside drop box.

The notice gives no reopening date.

Question: How can I return a borrowed book while the reading room is closed?

Constructed incorrect answer: You must wait until the reading room reopens before returning the book.

The second sentence supplies a return method that this answer overlooks. A response grounded in the notice would say: Use the outside drop box to return the book.

Follow-up question: When will the room reopen?

Answer supported by the notice: The notice gives no reopening date.

With a longer document, the same approach is useful: ask for the passage that supports an answer, then check it. If the document does not contain the needed information, ask what further source would resolve the question.

Images, film, food and music

Some models can accept more than one kind of input, such as text and images; this is what multimodal means. Whether an assistant can inspect a photograph, listen to a recording or work with video depends on both the model and the product around it. OpenAI’s March 14, 2023 GPT-4 announcement described text-and-image input, while specifying that image input was a research preview and not publicly available at that launch.

  1. Interpreting art. Ask about a painting’s history, context or the techniques used by its artist. An assistant needs the image for claims about visible details and sources for historical background.
  2. Decoding symbolism in movies. Discuss a film’s themes, symbolism or cinematography using the material the assistant can actually inspect, such as a supplied scene or transcript. A discussion based on a transcript cannot establish visual details that the transcript omits.
  3. Understanding infographics. Ask an assistant to explain a chart’s parts in ordinary language, then question a comparison or number that puzzles you. Check its account against the visible labels, scales and values.
  4. Interactive cookbook. Ask what a culinary term means, consider ingredient substitutes, or discuss adjustments for dietary preferences and the tools and ingredients available to you.
  5. Music appreciation. Ask about a composer, the circumstances in which a piece was written, or the music theory that helps explain it. Discussing sourced background about a composition and analyzing an actual recording require different material; the latter needs a system that can use the supplied audio.

From reading to dialogue

As a learning experiment, I developed and open-sourced Ragbot.AI, an augmented brain and assistant. The experiment used multiple LLMs and retrieval-augmented generation, or RAG, to help people interact with documents. Retrieval brings relevant passages into the material a model uses when generating an answer.

I wanted more depth, clearer explanations and useful context in my own reading. An assistant that could adapt its explanation as I asked follow-up questions offered a way to make difficult material more meaningful and engaging. This could fundamentally change how we interact with information. A document could become a dialogue: the reader asks, the assistant explains, and each answer opens another question.

My 2023 vision was that we would all have personal LLM-powered agents: superhuman teachers with near-infinite knowledge and patience. They would transform how we consume information and learn from documents.