Nodagentry

Research report: a multi-agent workflow with parallel search and a citation critic

A platform team has until Friday to decide between pgvector and a managed vector database for 5 million support articles. Research like this is where single-prompt agents struggle most: they skip angles, mix up sources and cite things that do not support the claim.

This workflow uses the orchestrator pattern. A planner turns the brief into search angles, two specialists search the web and your own internal notes in parallel, a synthesizer drafts a one-page brief from the combined evidence and a citation critic flags any claim without a source before a person approves publication.

Open this workflow in the editor

Free in Sim. No account or API key.

anglesanglesbriefnotesTask InputStartPlannerFrontier Mini$0.0005Web SearchFrontier MiniDocs SearchFrontier MiniJoinCode stepSynthesizerFrontier$0.007Citation CriticFrontier Pro$0.018Human GateApprovalPublishResult
The workflow as it opens in the editor. Each step shows its estimated cost per run at list prices; the costliest is highlighted.

What it costs to run

RouteSteps that call a modelPer run
Every runEnds at PublishPlanner, Synthesizer, Citation Critic$0.026

At 10 briefs a day, that is about $7.89 a month.

Estimated before running, from the prompt each step is sent and an assumed reply length, at list prices for each step's model tier. Want the same numbers for your own agent? Paste its code into the cost calculator.

Sample input

pgvector or a managed vector database for 5 million support articles? Compare cost, latency and operational load. One-page brief for the platform team with a recommendation.

How the workflow runs, step by step

Sample replies show what each step returns for the sample input above. In the editor, Sim shows the same replies for this input without calling a model; Live runs your own models.

  1. 1. Start

    Task Input

    The research brief starts the run.

    Next: Planner

  2. 2. Agent

    Planner

    A small model turns the brief into the decision to make, the angles to search and what the brief must answer.

    Sample reply
    QUESTION: Keep vectors in our Postgres with pgvector, or buy a managed vector database, for 5.2 million support articles?
    ANGLES:
    • Size: memory and storage for 5.2M vectors at 1,536 dimensions, plus the index.
    • Latency: can we hold p95 under 150 ms at 40 queries per second?
    • Operations: who tunes, scales and is on call for it?
    • Cost and procurement: monthly bill, finance sign-off, vendor security review.
    DONE WHEN: the brief recommends one option, lists the trade-offs and says what would change the answer.

    Next: Web Search (angles), Docs Search (angles)

  3. 3. Tool

    Web Search

    Searches the web for the brief.

    Next: Join

  4. 4. Tool

    Docs Search

    Searches the internal notes you paste in: here, your database size, latency target, team and budget rules.

    Next: Join

  5. 5. Join

    Join

    Waits for both searches and combines the evidence into labelled sections.

    Next: Synthesizer

  6. 6. Agent

    Synthesizer

    A stronger model drafts the brief: a recommendation, the reasons with their sources, trade-offs and open questions.

    Sample reply
    RECOMMENDATION: Start with pgvector on a dedicated Postgres replica, and revisit a managed vector database only if a load test misses p95 150 ms.
    WHY:
    • The raw vectors are about 32 GB before the index, too much to add to the current 64 GB primary alongside its normal work, but a fit for a replica sized for it [docs].
    • Articles can contain customer names and must stay in our cloud region; pgvector does that with no new vendor, while a managed service needs a region check and a 4 to 6 week security review [docs].
    • Two platform engineers already run Postgres; a second datastore adds on-call load to a small team [docs].
    • Published benchmarks show both approaches serving tens of queries per second at this scale when the index is tuned; results depend heavily on index settings [web].
    TRADE-OFFS:
    • pgvector: no new vendor or review, but we own index tuning, memory sizing and reindexing.
    • Managed: less tuning work, but a new monthly bill likely over the $1,000 sign-off line and a slower path to production.
    OPEN QUESTIONS:
    • Measured p95 for our real queries on a replica with an HNSW index.
    • Whether the corpus is likely to pass 10 million articles within a year.

    Next: Citation Critic, Human Gate (brief)

  7. 7. Agent

    Citation Critic

    A top-tier model checks every claim has a source in the evidence and suggests the fix for any that do not.

    Sample result
    UNSUPPORTED:
    • "a new monthly bill likely over the $1,000 sign-off line": the evidence has no price for a managed service.
    FIX:
    • Replace with "a new monthly bill; get a quote before asking for finance sign-off".
    VERDICT: revise (one line), then publish
    SCORE: 86

    Next: Human Gate (notes)

  8. 8. Human approval

    Human Gate

    A person sees the brief and the critic's notes together before it is published.

    Next: Publish

  9. 9. Result

    Publish

    The approved report is the result of the run.

Why build it as a graph

Parallel specialists finish faster than one agent working through every angle in turn, and a separate critic catches unsupported claims that the writer is unlikely to flag in its own draft. The graph shows where each part of the report came from.

Things to try

  • Run it in Sim to see the parallel branches fan out and join.
  • Switch to Live with your own model key to search the web for real.
  • Check the cost per step: the critic is the priciest step, so try sampling it on only some runs. The brief still publishes when the critic is skipped.
Run it free