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.
Walkthrough
Now playing: a generated placeholder, drawn on your device. No file is loaded.
What it does
- 01Customers get an answer at 3 a.m. with a link to the page of the manual it came from.
- 02If the assistant is not sure, it says so and opens a ticket for the morning team.
- 03Managers see which questions the manual does not cover yet.
Four layers
Pull the layers apart and pick one to see what it does and where its code lives.
L1 · Chat window
A small widget. It shows the source of every answer next to the text.
widget/srcL2 · Search
Finds the three most relevant pieces of the manual for a question.
service/src/retrieve.tsL3 · Answer step
The language model writes the answer only from those pieces, or declines.
service/src/answer.tsL4 · Test bench
A fixed set of questions with known answers, run before every release.
evals/cases
What went wrong and how we fixed it
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.
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.
By the numbers
Sample figures: invented, like the rest of this project.