Praxworx Converser Lab: Giving an AI More Than One Moment to Reply
The Subjects lab, my first for Praxworx, was about remembering the past through automatic associational memory. The Converser lab went in a very different direction. This was the first in a long series of labs where I wanted to improve the conversational behavior of conversational agents (CAs).
The problem to solve
I started with a critique from my own extensive experience of chatting with ChatGPT, Gemini, and other consumer CAs. And in implementing them for various employers and personal ventures. CAs can be verbose. Annoyingly so. Many users have the same experience I do where everything the CA has to say is interesting and useful. Yet somehow it's too longwinded. It's very easy to instruct a CA to give shorter answers. And that's sometimes the right remedy. But then the CA has a perverse incentive to skimp on very useful information you might actually care about.
What does a human do differently? We "read the crowd". In a one on one conversation we have the greatest latitude to do so. We see if the person we are talking to is understanding and shows interest in hearing more. We are ready for interruptions from our listener.
In discourse theory, this is sometimes known as "floorkeeping" or "floor management" in the context of turn-taking. By the time I finished this lab I had begun thinking more broadly about floorkeeping. I'll discuss it more in future blog posts.
So the question I was examining was simply: can a CA hold a sophisticated conversation without overwhelming the human user with too much information? More specifically, by reacting to the user's revealed preferences, rather than proactive "mind reading".
Let me describe my own typical behavior when I'm using ChatGPT or some other CA. I'll ask some question. I'll read a little of its long reply. I'll start typing my own reply as part of a new prompt. I won't hit Enter just yet. I'll continue reading its reply. I'll hit Shift-Enter a couple times to start adding a second reply in its own paragraph. Again I won't hit Enter yet. I'll keep doing this. Why? Because I can't just read the entire essay-length response and remember everything I wanted to say in reply. This process works but is profoundly awkward.
One alternative I have tried is just reading the beginning of the CA's reply, responding to it, and then moving on. Often the question or thought I am replying with was already addressed in its lengthy reply before. This isn't awful, the repetition. But there are multiple user experience (UX) problems. For one, I feel guilty for not being patient and reading the entire reply before responding. Two, I don't remember how far I read when I look back on my past conversations. Three, my conversation histories get extremely long. They become difficult as references. And difficult to search through.
What I really want out of a conversation history is an accurate reflection of not only what we discussed, but also what I meaningfully read and absorbed.
Conversation planning
I realized that what I really want a CA to do is give me the beginnings of a potentially long response and continue to develop it over time. Whether because I invite it to continue or because I ask or say more things that invite continuation or refinement.
The missing ingredient is that a "vanilla" CA doesn't work this way. This is going to sound strange to someone who is not familiar with how LLMs work. But all of their persistent thoughts are laid out for you to read. Yes, a reasoning model does have a sort of "inner monologue" that most of us ignore after it is done thinking. But in truth that rarely becomes part of the persistent context. There are several very practical reasons for dropping this context after the reasoning is done. But the outcome is clear: only the conversation you see is actually still there in the CA's input context to prepare it to reply to your next prompt.
One implication is a startling one. If your vanilla CA gives you a short, direct answer, no matter what research or deep thought it did to come to that answer, all of those intermediate insights are immediately forgotten. So if it gives you a one-line or one-paragraph answer, its own going-forward context is just as context impoverished as the text you see.
Why does this matter? Because you don't want sage, simple answers to make your CA dumber. Right now they do.
When you do some research to answer someone's question, you usually don't forget everything you learned in the research and thinking process. I'm not saying the right answer is for CAs to retain their reasoning tokens. I agree that those should be tossed. They can muddy the CA's thinking. In part because they often entertain hypotheses that lead to conceptual dead ends. Maybe you want to retain a memory that some line of thinking is wrong-headed, but you don't want to retain all of the wrong-headed thinking that lead to it forever.
My thinking though was that it's worthwhile to think about what a full answer to a user's prompt might be, but not dump it all on the user at once. I wanted to see what happens if a CA knowingly starts responding with a short introductory answer that is simple and direct. While "thinking ahead" and planning how to expand on it.
Provisional responses
The most basic answer I came up with is to ask the LLM-powered agent to come up with not one answer, but a string of answers and let the user gradually reveal each. The UX is incredibly simple. The user sees a "(more)" indicator at the end of the text. They hit Enter and see the next paragraph or chunk of them.
I don't want you to think I mean that I'm just parsing the full output from the agent and making the user hit Enter like this is some terminal app and the user must keep hitting Enter to reveal screens of text. The agent has the responsibility of structuring its replies with this gradual revelation process in mind. The agent naturally thinks a little differently when it is instructed to do this. It hedges carefully by making sure the opening paragraph is not merely a teaser, but is a compact, complete answer in itself. And that each subsequent paragraph, bullet list, or short section of content is also complete as an expansion of the initial reply.
The reason I call this "provisional" is because the user doesn't have to keep revealing the response chunks. The user may immediately reply with a new prompt. The innovation here is not merely dumping the rest. I'm actually not even doing that. When the user hits Enter after entering a fresh prompt, all the text in the output queue is still there. The LLM still remembers that it had more to say on the prior subject. And now it gets a chance to keep it on its "to-say list", reword it, or discard it in light of the user pivoting in a way that makes that text chunk irrelevant.
Conversational agenda
I also gave my Converser agent the option of keeping its own internal Markdown document laying out its plan for the conversation. For each run of the LLM, the Converser has not only the history of things that were said plus the user's prompt. But also its previous agenda doc and its to-say list.
Hopefully you see how this is a significant departure from the entire short term memory the CA has being everything you and it have said thus far. Now its memory is more strategic.
Division of labor
One architectural choice I made was to give the Converser agent the sole task of managing the conversation with the user. I explicitly instructed it not to do any research or deep thinking. Instead I gave it the ability to launch new "Thinker" sub-agents. Those Thinkers behave like vanilla agents, returning essay-length replies. The Converser writes its own responses based on what the Thinkers have to say.
Experimental design
I built a basic web app. It is purposely designed to look and feel like a basic CA.
I also built a "repeater" function. That's where I transform an actual conversation I recorded as a JSON file into a script that can be run again after I make changes to the agent's code and basic instructions. The repeater can be run in a way that literally repeats each prompt from the original record or runs a separate LLM to adapt to the Converser agent's reply.
Experimental runs
Semaglutide discussion
One test begins with a question about semaglutide side effects. The agent prepares an overview with several parts. It shows a short opening, then waits.
The user immediately broadens the question. "Actually, aren’t there other GLP-1s? Loop them into this discussion." The Converser returns to the Thinker, updates its agenda, and replaces the pending explanation with material suited to the broader question.
Later, the user asks about pain relievers. The same process happens again. Material prepared for the earlier discussion is reconsidered before the user sees it. Eventually the user introduces daily fever and possible kidney disease. That changes the priorities substantially. The Converser moves the response toward seeking medical attention and the relevance of the newly disclosed condition.
What interested me was that the agent had an explicit opportunity to reconsider everything it had been about to say. A useful answer prepared moments earlier could now be obsolete.
Mental health discussion
Another longer test involved my wife having a conversation in which she roleplayed a fictional person that amalgamated characteristics of various people she has known. A critical pivot had her revising an earlier account of an interpersonal conflict. She initially describes herself as the injured party. Much later, she reveals that she was the person responsible for the behavior she described.
This gives the agent several things to deal with. It needs to reassess the earlier story, avoid rushing to a reassuring conclusion, and gather enough information to say something useful.
When the user asks to be evaluated through questions, the Converser proceeds one question at a time. It gathers examples and counterexamples while continuing the underlying reasoning.
Eventually the user says she is running out of energy and wants conclusions. The Converser ends the questioning and prepares its synthesis in short sections. Each is available when the user asks to continue. The user can stop or redirect after any one of them.
I also ran a conventional chat agent through the same broad scenario. It handled much of the substance reasonably well. Its answers tended to deliver more of the analysis at once.
The Converser made the pacing an explicit part of the interaction. “I have more to say if you want it” became something the application could represent and act on.
Findings
Simply put, my subjective experience and my wife's as well were that the consequent conversational experience was much more natural. The agent simply wasn't longwinded. It responded to our readiness to hear more of what it had to say.
Hidden costs
When you see the full input and output in the form of a chat history, it can be easy to account for the costs incurred from your conversation. Text generated but not delivered to the user costs money. Text delivered by a Thinker agent and then output by the Converser agent is essentially double-charged and more.
I didn't want to focus much on this aspect, but I think it deserves mention. LLM costs continue to plummet. I take for granted that people will pay extra for a better user experience. And that future systems built on this sort of architecture will naturally find ways to shave monetary costs and the time delays that come from a lot of back-and-forth between consumer and hosted LLM model.
Next steps
As I mentioned earlier, this experiment also got me thinking a lot more about the somewhat asynchronous nature of human conversations. Especially verbal ones. My following blog posts will show how I decided to approach this broader problem of floorkeeping.

Comments
Post a Comment