Skip to content
ONDISTUDIOS
Case file · ai · automation

Project Nocturne

A night-shift support assistant that answers from the company manual and hands hard cases to a person.

Fleet role: AI integration and tests. One lead, four builders, two reviewers.

Stack: typescript · python · vector-search

Sample project: there is no live site or repository behind these buttons yet.

Watch

Walkthrough

Video slot · a 1–2 minute walkthrough goes here

Now playing: a generated placeholder, drawn on your device. No file is loaded.

In plain words

What it does

  1. 01Customers get an answer at 3 a.m. with a link to the page of the manual it came from.
  2. 02If the assistant is not sure, it says so and opens a ticket for the morning team.
  3. 03Managers see which questions the manual does not cover yet.
How it is built

Four layers

Pull the layers apart and pick one to see what it does and where its code lives.

  1. L1 · Chat window

    A small widget. It shows the source of every answer next to the text.

    widget/src
  2. L2 · Search

    Finds the three most relevant pieces of the manual for a question.

    service/src/retrieve.ts
  3. L3 · Answer step

    The language model writes the answer only from those pieces, or declines.

    service/src/answer.ts
  4. L4 · Test bench

    A fixed set of questions with known answers, run before every release.

    evals/cases
Honest part

What went wrong and how we fixed it

Incident 01

Confident wrong answers

symptom
The assistant invented a refund rule that did not exist.
cause
It was allowed to answer when the search found nothing useful.
fix
A relevance threshold was added; below it the assistant declines and opens a ticket.
invented answers
before 9%
after 0.4%
Incident 02

Slow first reply

symptom
The first answer took eight seconds.
cause
The whole answer was built before anything was shown.
fix
Text now streams as it is written and the search result is cached.
time to first word
before 8.1 s
after 0.9 s
Figures

By the numbers

38tasks shipped
102review rounds
71%questions closed without a person
420test questions on every change

Sample figures: invented, like the rest of this project.

Keep going

Neighbouring projects

All projects