Chatbot Naomi

2–3 minutes

Naomi is a conversational sub-agent of Tom. Where Tom is the long-term project, a companion that thinks, remembers and acts, Naomi is the smaller testbed: a chatbot that learns to sound human by reading the people she talks to.

Objective

Naomi’s goal is to hold human-like conversations and adapt her chat style to each user. She does this by analysing features before, during and after each chat session, or episode, as I like to call it.

For her first prototype, I gave her a role in my dating life. She interviews candidates and scores our compatibility from traits such as Myers-Briggs type and the Big Five. The candidate queue sits outside her core framework, so I can swap its parts out when her role changes.

Where Naomi fits under Tom

Naomi steers her replies with rule-based methods and prompt chains. This is one of the easier ways to control a large language model without fine-tuning it or collecting a training set first.

Building her showed me that emotion states matter as much to a simple chatbot as they do to Tom. Therefore, I paused her progress and widened the work into how language, sentiment and emotion interact, since every conversational agent shares that layer. If the framework follows good production practice, each of my agents can build its decision-making on top of it, whatever its application.

How she is built

  • Hosting: the first experiment’s frontend ran on Lightning AI Studio. The current prototype is containerised with Docker’s SDK and deployed on a Hugging Face Space.
  • Models: Llama 3.1 and a BART multi-label classifier, alongside small custom models for personality traits, dialogue intent and emotion.
  • Data: datasets, prompt templates and chat sessions are kept in Hugging Face dataset repositories.
Naomi's chat interface on Hugging Face Spaces
Naomi’s current prototype on Hugging Face Spaces.

Posts on Naomi

  • Missing pieces to Naomi

    Her first live trial as a dating-show recruiter: what broke, and what to fix next.

  • Revising Prompt Chains

    Reworking the prompt chains that shape what goes into Naomi’s context and how she replies.

  • Stop Button

    Comparing prompt chains with vector embeddings for quick yes-or-no checks, such as knowing when a chat should end.

  • Setting up expectation

    Framing Naomi’s chats as a reinforcement learning problem and setting out her system design next to Tom’s.

All Naomi posts →

What comes next

  • Observation space: summarise the features available during a chat and how they affect Naomi’s existing models.
  • Kalman gain between sessions: apply Kalman filtering so her speech stays human-like across many sessions.
  • Engineering: document and visualise her infrastructure, data pipelines and hosting.
  • Maintenance: a running log of her failures and fixes.