Case study · Applied AI · 2026

SCRIBE

A RAG knowledge workspace designed to answer with sources—or abstain.

Next.jsPostgreSQLpgvectorGeminiVercel AI SDK
SCRIBE landing page showing its document ingestion and cited-answer workflow

01 / Problem

What needed to be true.

A useful document assistant needs to retrieve the right context, show where an answer came from, and avoid sounding certain when the documents do not support a response.

02 / Decisions

The system, not just the screen.

01

Ingest outside the request path

Uploads enter an asynchronous pipeline with retries and rollback so parsing and embedding work do not block the user-facing response.

02

Keep evidence attached

Retrieved chunks stay connected to their source metadata, enabling answers to expose citations instead of returning untraceable prose.

03

Treat abstention as a feature

The answer flow includes a supported-answer check so weak context can produce an honest ‘I don’t know’ instead of a confident guess.

03 / Flow

From input to useful output.

  • Upload
  • Parse & chunk
  • Embed
  • pgvector retrieval
  • Guarded answer
  • Citations

04 / Reflection

What I carry forward.

The important part was not adding a chat box. It was deciding where uncertainty, isolation, and failure should be visible in the system.

Back to selected work