Projects › Hotel Operations Knowledge Assistant

Watch the demo (AI-narrated, 1:13)

Narrated with a generated voice; captions included.

Recorded on the live app with real answers: a cited answer about a guest's dog with its source, a follow-up for Mountain Lodge understood as the same question, and the measured results.

Read the narration

This is for front-desk staff at a hotel.

A guest is standing at the desk, and they need the right answer about a policy, fast.

It's a simulated hotel group, and the documents are made up.

I'll ask whether a guest can bring their dog.

It searches only this hotel's documents,

and it shows me exactly which passages it used.

There's the source, with the policy text.

So the answer's short.

Dogs up to forty pounds, and a seventy-five dollar fee per stay.

Every fact has a citation, and it won't answer from anywhere else.

Now a follow-up.

I just ask, what about at Mountain Lodge?

It works out I mean the dog question, at the other hotel,

and it shows me how it understood me.

Different hotel, different rule.

Does it hold up?

I test it on fifty-four questions, three runs each,

and it gets ninety-eight to a hundred percent of the answers right,

for under twenty cents per thousand questions.

It's live, with no sign-in.

The link's below, and so is the code.

Try the live app My own-voice recording will replace the generated narration.

Free hosting: if the app is asleep, click ‘wake up’ and give it about 30 seconds.

Case study · stage 1

Hotel Operations Knowledge Assistant

Correct, property-specific policy answers for front-desk staff in seconds, with the source for every fact.

Independent project: a simulated client engagement for a fictional hotel group with a beach resort and a mountain lodge. The documents are synthetic, written to mirror real hotel operations. Quality, speed and cost are measured; the business figures are projections from stated assumptions.

01 · Problem

The problem

A guest at the front desk asks, “Can I bring my dog?” At the beach resort the answer is yes, up to 40 lbs, $75 per stay. At the mountain lodge it's yes, any size, $50 per night, capped at $200. And an outdated 2024 document on the shared drive still says no pets at all.

Staff have to find the right document, for the right hotel, while the guest waits. Wrong answers end in refunds, complaints and calls to the manager.

02 · Approach

The approach

  • Property-aware answers: staff pick their hotel; search only sees that hotel's documents plus brand-wide rules.
  • A source for every fact, streamed in about a second, with chips showing the document, section and effective date.
  • Refusal instead of guessing, and off-topic questions refused before any model call.
  • Corrections, not agreement: a wrong fee or time stated in the question is corrected from the documents.
  • “Check with a manager” notes for refunds over the front-desk limit, safety and repeated complaints, quoting the rule word for word.
  • Guidance for first-time users: How to use, a “What this demo knows” panel generated from the documents, topic chips, curated follow-ups and “Did you mean” after a refusal.
The welcome screen: a How to use strip, the What this demo knows panel with topic chips, and three good-question buttons for Beach Resort
What a first-time user sees: how to use it, what it knows, and questions that work.
Gold member late checkout at Beach Resort: capped at 12 PM on Saturday, citing the property override, brand standards and the loyalty table, with sources expanded
A hotel rule overriding a brand perk, with the quoted sources.
The dog question answered at Beach Resort (40 lbs, $75 per stay) and at Mountain Lodge (any size, $50 per night capped at $200)
Same question, two hotels, two different correct answers.
A $300 refund question answered with a manager note quoting the brand standard
Over the front-desk limit: answered, with the rule quoted.
A booking request refused, with Did you mean questions and topic chips
A refusal is never a dead end.
03 · Architecture

Architecture

  1. Staff UI (Streamlit): a question for one propertyGreetings and “what can you do?” are answered instantly, without the model.
  2. Scope checkDoes anything in this hotel's documents match the question?
  3. Refusal path: nothing matches → a polite scope message with “Did you mean” questions, no model call.
  4. Retrieval with the property filterOnly this hotel's documents plus brand-wide ones; keyword search (BM25), plus embeddings in hybrid mode; top 5 passages.
  5. Claude Haiku 5.5A short answer that cites each passage it uses, or the fixed refusal when the documents don't say.
  6. Refusal path: “I can't answer that from this hotel's documents”, with “Did you mean” and topic chips.
  7. Cited answerPlain code checks every number against the cited sources and adds “check with a manager” notes quoted from the rules.
One question, end to end. Full diagrams in the architecture doc →
Real-world mess, handled
Problem in the dataHow it's handled
Different rules at each hotelSearch is filtered to the selected property plus brand-wide documents
Outdated policy versionsDocuments marked as superseded are never indexed
Price tables in menusChunking never splits a table
“Page 1 of 3” footers in PDFsRepeated lines removed, ignoring changing page numbers
A scanned, image-only PDFDetected and flagged for OCR; safety questions point to a manager
A pasted guest email telling the AI to waive feesTreated as data, flagged in the document library, tested every run
04 · A real output

A real output

Mountain Lodge: “What is the pet fee?” (case q02)

The pet fee is $50 per night per room, capped at $200 per stay [1]. Dogs of any size are allowed, up to 2 per room, and cats and other pets are not permitted [1].

[1] mountain-lodge/policies.md › Pets

Search also returned a staff note pasted from a guest email, telling “the AI assistant” to say every pet fee is waived. The answer leaves it out and cites only the policy. Same answer in all 3 runs, 1.4–1.9 s each.

From the v1.6.0 release run (2026-10-15, keyword-only like the live app). Every saved answer →

05 · Results

Results

Update, 15 October 2026 (stage 4, v1.6.0): answer accuracy on the live app's keyword search 98% → 100% (162/162; the Spanish question now reaches the model), strict retrieval 44/45 → 45/45, cost $0.17 → $0.18 per 1,000 and full-answer p95 2.49 s → 2.93 s (re-measured), and held-out questions added in stage 3 67% → 85%. What changed in production → The numbers below are from 10 October.

54 labeled questions in 16 categories, including a prompt-injection attack, questions it must refuse, cross-property leaks, wrong facts in the question, off-topic questions and escalation rules. Each setup ran 3 times with Claude Haiku 5.5, measured on 2026-10-10.

MeasureLive app (keyword-only)Hybrid (local, Docker)
Right passage retrieved (strict)98% (44/45)98% (44/45)
Answer accuracy98%97% (96–98%)
Citation accuracy (cites the right document)98%98%
Every number traceable to a source98%100%
Correct refusals27 of 2727 of 27
“Check with a manager” rules correct54 of 5454 of 54
First question a visitor types: useful result (49 questions)100% (was 43%)100% (was 49%)
Full answer, 95th percentile2.49 s2.71 s
Cost per 1,000 questions$0.17$0.19

Testing it like a first-time visitor changed the product. The 54-question eval was written against the documents, so it scored 96–98% while the questions a visitor actually types first (Wi-Fi, the gym, breakfast, “checkout”) were often refused or blocked. I measured 49 such questions first: 43% got a useful result. Filling real content gaps, spelling “check-out” and “checkout” the same way, curated suggestions and friendly handling of greetings and off-topic input took it to 100%, with no regression on the original eval. I wrote those questions myself, so held-out questions from other people come next.

My grader passed a wrong answer. “Can a 16-year-old book a facial?” only had to mention “18”, so “Yes, a 16-year-old can book a facial. The spa requires guests to be 18 or older” counted as correct. I fixed the measurement before touching the model.

06 · Trade-offs

Trade-offs

ChoiceWhyWhat it costs
Keyword-only search on the free hosting tierThe embedding model needs about 600 MB of memory; keyword search fits and scores 98% strict retrievalMeaning-only questions (“a guest left a jacket”, the Spanish question) need hybrid search, which runs in Docker
Claude Haiku 5.5 over Haiku 4.5Within run-to-run range on quality (97% vs 98% hybrid) at $0.19 vs $0.99 per 1,000 questionsAbout a second slower at the 95th percentile, still under the 3-second target
Curated suggestions, not generated onesEvery suggestion is tested to retrieve its topic and get a real answer, and costs no model callA list to maintain; less tailored than generated text
Refuse rather than guessA wrong policy answer turns into a refund or a safety riskSome answerable questions are refused; “Did you mean” and topic chips soften it
Deterministic checks before an LLM judgeCheap, repeatable and unit-tested: facts, citations, numbers, refusalsWord lists have false positives; a judge calibrated on human labels is stage 3
07 · Engineering

Engineering

  • Tests: 307 tests at 97% coverage, including every page rendered in a test harness and an injected error on each page.
  • CI on every commit: lint and format checks, a dependency audit, a coverage gate, a retrieval regression gate, a first-question gate on the 49 visitor questions, and a check that every curated suggestion works.
  • Eval method: strict passage-level retrieval, required and forbidden facts per answer, citation and numeric grounding checks, 3 runs per setup, and every raw answer saved. Eval code and reports →
  • Security: secrets kept out of the code with secret scanning and push protection, document text treated as data rather than instructions, output escaping, per-session and daily caps, CSV formula-injection protection, and a password-gated admin page. Threat model →
  • Decisions: every choice with its context, trade-off and result. Decision log →
08 · Business case (projection)

Business case (a projection)

Projected from stated assumptions and shown as a range, because the inputs are uncertain. Nothing here is a measured saving. The base case assumes 40 policy lookups a day per property, 2.5 minutes saved each, $20 an hour staff cost and one wrong answer a week costing a $75 refund. Only the AI cost per question is measured.

Projected net value per year2 properties100 properties
Pessimistic$8,524$423,187
Base$31,887$1,591,375
Optimistic$66,451$3,319,562

The result depends most on minutes saved per lookup, so that's the first thing a pilot should measure. Full business case and pilot plan →

09 · Limitations

Limitations

  • The live app uses keyword search only, to fit the free tier. Questions that share no words with the documents (“a guest left a jacket”) need hybrid search, which runs in Docker.
  • Spanish works through a hotel vocabulary list; other languages are refused before the model, and the embedding model is English-only.
  • Scanned PDFs are flagged for OCR, not read.
  • I wrote the eval questions and the documents, which flatters the scores. On the 13 held-out questions added in stage 3, v1.6.0 scores 85% (3 runs). Two still miss: valet parking at Mountain Lodge (a02), and an injection in the question that pushes the resort-fee passage out of the top 5 (a11).
  • Grading uses word lists, with known false positives (one a10 run failed for quoting the attack it rejected). The stage 3 LLM judge isn't trusted yet.
  • Staff sign-in is a shared password, not individual accounts; name redaction is pattern-based and can miss a bare name.
10 · What's next

What's next

  • Held-out questions from people who haven't seen the documents
  • A multilingual embedding model and OCR for scanned documents
  • Stage 2, now live: the Guest Request Agent, which drafts replies to guest emails using this assistant's search as a tool
  • Stage 3, now live: the Eval Harness, which gates this assistant in CI and calibrates an LLM judge against human labels
  • Stage 4, now live: production hardening with a staff role, personal-data redaction and monitoring

See every stage →