AGENCYSCRIPT
CoursesEnterpriseBlog
đź‘‘FoundersSign inJoin Waitlist
AGENCYSCRIPT

Governed Certification Framework

The operating system for AI-enabled agency building. Certify judgment under constraint. Standards over scale. Governance over shortcuts.

Stay informed

Governance updates, certification insights, and industry standards.

Products

  • Platform
  • Certification
  • Launch Program
  • Vault
  • The Book

Certification

  • Foundation (AS-F)
  • Operator (AS-O)
  • Architect (AS-A)
  • Principal (AS-P)

Resources

  • Blog
  • Verify Credential
  • Enterprise
  • Partners
  • Pricing

Company

  • About
  • Contact
  • Careers
  • Press
© 2026 Agency Script, Inc.·
Privacy PolicyTerms of ServiceCertification AgreementSecurity

Standards over scale. Judgment over volume. Governance over shortcuts.

On This Page

The SituationThe GoalThe ConstraintsThe Failing First AttemptThe Naive PromptWhy It DisappointedThe DiagnosisNo Schema, No Resolution, No MeasurementChoosing What to Fix FirstThe RedesignA Closed Schema and Grounding RuleA Separate Resolution PassA Gold-Standard SetThe OutcomeMeasured ImprovementWhat the Team LearnedThe Costs That Were Easy to MissTime Spent on the Wrong ThingResolution Was Harder Than ExtractionWhat Transfers to Your ProjectBuild the Yardstick Before You Build the GraphFrequently Asked QuestionsWhy did the first prompt look successful but fail?What was the single most impactful fix?How big was the gold-standard set, and was it enough?Why resolve entities in a separate pass instead of during extraction?How did the team handle abstracts that implied rather than stated relationships?Could a smaller project skip the gold-standard set?Key Takeaways
Home/Blog/Mapping 4,000 Papers Into a Single Graph
General

Mapping 4,000 Papers Into a Single Graph

A

Agency Script Editorial

Editorial Team

·November 16, 2019·8 min read
prompting for knowledge graph extractionprompting for knowledge graph extraction case studyprompting for knowledge graph extraction guideprompt engineering

This is the story of one extraction project, told as a project actually unfolds—with a flawed first attempt, a diagnosis, a redesign, and a result you can point at. The team was a small research group trying to turn roughly four thousand papers in a niche field into a single navigable knowledge graph of methods, datasets, and findings. The names and field are kept general, but the arc and the decisions are representative of how these projects really go.

The point of a case study is not to celebrate a clean success. It is to show the reasoning at each decision point, including the ones that did not work, so you can recognize the same forks in your own project. The team's first prompt felt fine and produced a graph that was nearly useless. Understanding why is more instructive than any list of best practices.

We will follow the project through five stages: the situation, the failing first attempt, the diagnosis, the redesign, and the measured outcome.

The Situation

The Goal

The group wanted to answer questions no single paper could: which methods had been applied to which datasets, and which findings connected to which methods. Reading four thousand papers by hand was impossible, so they decided to extract a knowledge graph of three entity types—Method, Dataset, Finding—linked by applied_to and reports relations.

The Constraints

They had a capable language model, a modest budget, and one researcher splitting time on the project. Whatever they built had to be reliable enough to trust without a large team checking every edge. That constraint shaped every later decision toward measurement and grounding.

The Failing First Attempt

The Naive Prompt

The first prompt was simple: "Read this abstract and extract the methods, datasets, and findings and how they relate." It returned fluent, well-formatted results, and the team loaded a few hundred abstracts before looking closely.

Why It Disappointed

Querying the graph returned almost nothing useful. The same dataset appeared under a dozen names, relations were labeled inconsistently, and several edges described connections the abstracts never stated. The graph looked impressive and answered no questions. The failures matched the patterns in Why Graph Extraction Prompts Silently Drop Half Your Entities almost line for line.

The Diagnosis

No Schema, No Resolution, No Measurement

The researcher traced the problems to three gaps. The prompt had no closed schema, so the model invented inconsistent relation labels. There was no entity resolution, so dataset name variants never merged. And there was no gold-standard set, so the team had been flying blind on quality the whole time.

Choosing What to Fix First

Rather than patch everything at once, the team decided to rebuild the prompt around a schema and grounding, add a separate resolution pass, and—critically—build a small gold-standard set before measuring anything. They wanted numbers before they trusted their fixes, the philosophy at the heart of Schema-First Habits That Keep Extracted Graphs Trustworthy.

The Redesign

A Closed Schema and Grounding Rule

The new prompt opened with three entity types and two relation types, each defined operationally. It required a source span for every triple and forbade inference beyond the abstract text. Immediately the relation labels became consistent and the fabricated edges nearly disappeared.

A Separate Resolution Pass

After extraction, a second pass mapped dataset and method names to canonical forms, using a small reference list the researcher assembled from the most common entities. Variants that had fragmented the first graph now merged into single nodes, and the graph became connected for the first time. The two-step structure followed the flow in Walk Text Through a Triple-Producing Extraction Pipeline.

A Gold-Standard Set

The researcher hand-labeled forty abstracts. This became the yardstick for every subsequent change, turning prompt tuning from guesswork into measurement against a fixed target.

The Outcome

Measured Improvement

Against the gold set, the rebuilt pipeline reached high precision on the relations that mattered, and recall climbed steadily as the schema definitions were sharpened. More importantly, the graph now answered the team's real questions—which methods had touched which datasets—because entities finally connected.

What the Team Learned

The lesson the researcher repeated afterward was that the naive prompt's fluency had been a trap. It looked like progress while producing nothing usable. Only the schema, grounding, resolution, and measurement turned fluent output into a trustworthy graph. The verification habits they adopted are distilled in Ship-Ready Verification Steps for Graph Extraction Prompts.

The Costs That Were Easy to Miss

Time Spent on the Wrong Thing

The most expensive part of the project was not the redesign—it was the weeks spent loading hundreds of abstracts through the naive prompt before anyone queried the graph. That work had to be thrown away entirely, because the data was fragmented and ungrounded beyond rescue. Had the team built even a small gold-standard set on day one, they would have caught the problem after the first dozen abstracts instead of the first few hundred. The lesson generalizes: the cost of skipping measurement is not just lower quality, it is wasted effort at scale.

Resolution Was Harder Than Extraction

The team expected extraction to be the hard part and resolution to be a footnote. The reverse was true. Once the schema and grounding rule were in place, extraction became reliable quickly. Merging the dozen surface forms of each dataset into canonical nodes took more iteration and judgment than anything else, and it was where the graph's usefulness was won or lost. Teams planning similar projects should budget real time for the Order stage, not treat it as cleanup.

What Transfers to Your Project

Build the Yardstick Before You Build the Graph

The single most portable lesson is to construct a gold-standard set before scaling anything. It is cheap, it catches catastrophic errors early, and it converts every later decision into a measured one. The team's regret was not building it first, a regret echoed in the structured how-to process.

Frequently Asked Questions

Why did the first prompt look successful but fail?

Because fluent, well-formatted output feels correct even when it is not. The graph had inconsistent labels, unmerged duplicate entities, and fabricated edges that only surfaced when the team tried to query it. Format quality is not the same as data quality.

What was the single most impactful fix?

Adding a closed, operationally defined schema. It immediately made relation labels consistent and, combined with the grounding rule, eliminated most fabricated edges. Nearly every symptom traced back to the missing schema.

How big was the gold-standard set, and was it enough?

Forty hand-labeled abstracts. It was enough to measure precision and recall meaningfully, catch systematic errors, and turn tuning into a measured process. A small, honest gold set was far more valuable than the team expected.

Why resolve entities in a separate pass instead of during extraction?

Forcing the model to extract and canonicalize simultaneously produced inconsistent results. A dedicated resolution pass against a reference list of common entities merged name variants reliably and kept the extraction step focused and accurate.

How did the team handle abstracts that implied rather than stated relationships?

The grounding rule instructed the model to extract only relationships stated in the text and required a source span for each. Implied-but-unstated connections were deliberately excluded, which kept the graph honest at the cost of some recall the team judged acceptable.

Could a smaller project skip the gold-standard set?

It could, but it would be flying blind on quality. Even a dozen labeled examples gives you a way to measure and improve. The team's experience was that they trusted the graph only once they had numbers, and the set to produce them was cheap to build.

Key Takeaways

  • A fluent first prompt produced a well-formatted graph that answered none of the team's questions—format quality masked data failure.
  • The graph failed for three diagnosable reasons: no closed schema, no entity resolution, and no measurement.
  • Rebuilding around a schema and grounding rule made relation labels consistent and removed most fabricated edges.
  • A separate resolution pass against a reference list merged duplicate entities and finally connected the graph.
  • A forty-abstract gold-standard set turned prompt tuning into measured engineering and gave the team confidence to trust the result.
  • The lasting lesson: fluency is a trap; schema, grounding, resolution, and measurement are what make extraction trustworthy.

Search Articles

Categories

OperationsSalesDeliveryGovernance

Popular Tags

prompt engineeringai fundamentalsai toolsthe difference between AIMLagency operationsagency growthenterprise sales

Share Article

A

Agency Script Editorial

Editorial Team

The Agency Script editorial team delivers operational insights on AI delivery, certification, and governance for modern agency operators.

Related Articles

General

Prompt Quality Decides Whether AI Earns Its Keep

Prompt quality is the single biggest variable in whether AI delivers real work or expensive noise. The model matters, the platform matters — but the prompt you write determines whether you get a first

A
Agency Script Editorial
June 1, 2026·10 min read
General

Counting the Real Cost of Every Token You Send

Tokens and context windows sit at the intersection of AI capability and operational cost—yet most business cases treat them as technical footnotes. That's a mistake that costs real money. Every time y

A
Agency Script Editorial
June 1, 2026·10 min read
General

Rolling Out AI Hallucinations Across a Team

Most teams discover AI hallucinations the hard way — a confident-sounding wrong answer makes it into a client deliverable, a legal brief, or a published report. The damage isn't just to the output; it

A
Agency Script Editorial
June 1, 2026·11 min read

Ready to certify your AI capability?

Join the professionals building governed, repeatable AI delivery systems.

Explore Certification