Back to portfolio
Document SearchOperationsNext.js + pgvectorAnswers that cite their sources NDA

Case study

Document search for operators

A search tool that answers questions from operations documents and tickets, cites its sources, collects feedback and hands off to a person.

Onboarding

Self-serve lookup

New operators can query the playbook and ticket history and get answers with citations.

Checking answers

Sources shown

Every answer lists its sources so staff can check it before using it.

Data handling

Personal data redacted

Redaction and private retrieval keep raw customer data away from the model.

ai

What this case covers

OperationsStack focus: Next.js + pgvectorOutcome focus: Answers that cite their sourcesService: Build a document search toolTool: Operations automation noteConfidential project

Next step

Use the build brief when the team needs answers with sources, an evaluation and escalation rules.

Notes

Industry: Operations

Related: Build a document search tool / Operations automation note

Outcome: Sources, evaluation results and operator actions are kept in one record.

This case shows how the work was delivered and what it achieved. Confidential internal screens are left out.

Chapter 01

Challenge

01

Cut the time first-line operators spend searching SOPs and old tickets, without sending personal data to outside model services.

Chapter 02

System

02

Hybrid retrieval over chunked SOPs plus structured ticket history.

Citation-first answers with inline links to source pages.

Corrections from operators adjust the ranking weights.

Chapter 03

Interface

03

Capabilities: RAG, Operator Tools, PII Redaction.

Stack: Next.js, pgvector, LLM APIs, Resend.

ai

Capability

RAG

Capability

Operator Tools

Capability

PII Redaction

Chapter 04

Outcome

04

New operators can look up playbook steps themselves.

No raw customer data goes to model providers; personal data is redacted first.

Each answer links to its sources, so it can be checked.

How it fits together

Where answers come from

How sources, retrieval and escalation fit together.

Source layer

Chunked SOPs and structured ticket history sit behind every answer.

Answer layer

Answers show their citations so the operator can trace the evidence.

Escalation layer

When the system is unsure or context is missing, it points the operator to a person.

In short

Evaluation and feedback

How answers are scored and how operator corrections are used.

Answer quality

Citation-backed

The evaluation rewards answers that can be checked, not answers that only read well.

Feedback loop

Corrections captured

Operator edits feed ranking and retrieval instead of staying in chat history.

Lookup

Less searching

Operators spend less time searching SOPs, and the review step stays visible.

More work

More case studies.

Start a document search brief