Featured AI automation workflow · Literature Library + LLM gateway

Retina Evidence Hub

Designed and built end to end · Eye Care International · Pilot moving to production

An AI workflow that turns new ophthalmology literature into curated, published evidence for Medical Affairs teams. Papers queued in a Literature Library review collection are fetched into the app, where an agent on the company's approved LLM gateway API retrieves each one, scores relevance, quality, impact and novelty against the selected prompt, and recommends include or exclude with a confidence and a newsletter-ready summary. Then it waits for a reviewer.

Approved papers are published to the Retina Evidence Hub collection, and Literature Library is tagged automatically (REH-Include or REH-Exclude and Published, with NEW removed), so both collections stay in step without re-keying.

Built end to end with Visual Studio Code and Claude Code

From the Figma Make scaffold to the LLM gateway relay, the review screens, the Literature Library tag sync and the move onto the corporate design system, I developed the whole application in VS Code with Claude Code.

Visual Studio CodeClaude CodeFigma MakeCorporate design system

  • 7agent steps, from retrieval to metadata, with a reviewer gate before publishing
  • 7evaluation prompts, from standard evaluation to EC priorities screening
  • 3LLM gateway environments with GPT and Claude models and a context-overflow fallback
  • 2Literature Library collections, a review queue and the curated hub, kept in step by tags
  • React 18
  • TypeScript
  • Vite
  • Express relay
  • Literature Library REST API
  • LLM gateway: GPT · Claude
  • Corporate design system
  • VS Code
  • Claude Code

The demo runs in your browser on invented sample data: no real data, people or systems are connected.

How it works

How a paper becomes evidence

  • Deterministic
  • AI
  • Human
  1. 1 · Queue

    A Literature Library review collection

    Candidate papers from brand literature collections land in the REH-Review collection, tagged NEW.

  2. 2 · Retrieve

    Paper details and full text

    The agent pulls each paper's metadata, abstract and full text where available through the Literature Library API, and flags abstract-only papers.

  3. 3 · Evaluate

    Scored against the team's priorities

    LLM gateway scores relevance, quality, impact and novelty, 25 points each, with the selected prompt, for a score out of 100 and a confidence.

  4. 4 · Recommend

    Include or exclude, with the reasoning

    A newsletter-ready summary, an at-a-glance table, structured screening fields and suggested tags.

  5. 5 · Review gate

    A reviewer decides

    Nothing is published until a person approves, edits or overrides the recommendation.

  6. 6 · Publish and tag

    Published, tagged, logged

    Approved papers move to the Retina Evidence Hub collection, Literature Library is tagged, and every step is in the fetch log.

Architecture

How papers and AI move through the hub

A React 18 and TypeScript app between two Literature Library collections, with every AI call relayed same-origin to the company's approved LLM gateway. Drawn from the application's own engineering notes.

Retina Evidence Hub system mapPapers move from Literature Library collections into a REH-Review collection (1) and are fetched into the app (2). A seven-step agent workflow calls the company's approved LLM gateway through a same-origin relay to evaluate, summarize and suggest tags (3). A reviewer approves, edits or overrides each recommendation (4); approved papers are published to the Retina Evidence Hub collection (5) and both collections are tagged (6). Built with Visual Studio Code and Claude Code.LITERATURE LIBRARY · EVIDENCE COLLECTIONSLiterature collectionsCurated literature by brandand topic, with abstracts,full text and PDFsREH-Review collectionCandidate papers queued forreview, tagged NEWRetina Evidence HubcollectionCurated, published evidencetagged REH-Include orREH-Exclude, plus PublishedBROWSER · REACT 18 + TYPESCRIPT (VITE) · CORPORATE DESIGN SYSTEMREH ReviewQueue, batches andthe prompt pickerPrompts and tagsSeven evaluationprompts; collectiontagsHub and metricsPublished evidence,summaries andmetricsAgent workflowSeven steps for every paper, with a reviewer gate before anything is published1 Retrieve2 Evaluate3 Recommend4 User review5 Publish6 Tag suggestion7 Apply metadataApp stateOne reducer store: each papercarries its collection tags and AIfields (score, summary, decision,confidence)ReviewerApproves, edits or overrides everyrecommendation before it ispublishedSettings and credential vaultCollections, the LLM gatewayenvironment and model, and anencrypted credential vaultFetch logEvery Literature Library and LLMgateway call logged step by step,inside the appBuilt with Visual Studio Code and Claude CodeScaffolded from a Figma Make design, moving onto corporate design-system componentsSAME-ORIGIN SERVER · EXPRESSLLM gateway relaySix same-origin routes to thegateway. Strips browserheaders, allows long LLM callsand keeps the history fallbackbehind the proxyStatic bundleServes the built appENTERPRISE LLM GATEWAYLLM gateway environmentsDev-Emerging, Production-Coreand LiteLLM, with GPT andClaude modelsContext fallbackRetries once on thelargest-context model when along paper overflowsevaluate · summarize · tag123456
Teal lines carry the AI calls and the publish step; grey lines move papers and tags. The numbers match the steps below.
  1. QueueCandidate papers are added from Literature Library collections to the REH-Review collection, tagged NEW.
  2. FetchThe app pulls only NEW papers, with their abstracts and full text where available, and logs every call.
  3. EvaluateThe agent sends each paper and the chosen prompt to LLM gateway through the same-origin relay; GPT or Claude scores and summarizes it.
  4. ReviewA reviewer approves, edits or overrides each recommendation. Nothing publishes without that decision.
  5. PublishApproved papers move to the Retina Evidence Hub collection with their summary, score and metadata.
  6. TagLiterature Library gets REH-Include or REH-Exclude and Published tags, and NEW is removed, so the queue stays clean.

The workflow, screen by screen

Eleven screens, in order

From a Literature Library collection to published, tagged evidence. People's and authors' names, IDs and the team's screening rationale are blurred. Select a screen to enlarge it.

Case study

Screen

Interactive view

Live chart

Open in new tab ↗

Loading the live chart…