Skip to main content
Complete sift-kg pipeline output from 9 Wikipedia articles documenting the FTX cryptocurrency exchange collapse, producing a graph of 373 entities and 1,184 relations after deduplication.

Overview

This example demonstrates knowledge graph extraction from journalistic and encyclopedic content, with emphasis on the entity resolution workflow to merge duplicate entities across multiple documents.

View Interactive Graph

Open examples/ftx/output/graph.html in your browser

Source Documents

9 text files covering FTX, Alameda Research, Binance, and key people

Quick Start

Pipeline Output

The output/ directory contains the complete pipeline results:

Pipeline Statistics

Entity Resolution Workflow

This example showcases the full deduplication pipeline:

1. Automatic Semantic Deduplication

During extraction, semantic hashing automatically merges near-identical entities:
  • Before: 777 raw entities
  • After: 750 entities (27 deterministic merges)

2. Build + Postprocess

Graph construction with normalization and filtering:
  • Result: 432 entities, 1,201 relations

3. LLM-Assisted Resolution

Three passes of sift resolve to identify remaining duplicates:
This generates merge_proposals.yaml with candidate merges:

4. Human Review

Interactive review to confirm or reject each proposed merge.

5. Apply Merges

Final result: 373 entities, 1,184 relations (59 entities merged)

Key Insights from the Graph

The generated narrative (narrative.md) provides:
  • Overview — High-level synthesis of the FTX collapse timeline
  • Entity descriptions — AI-generated profiles for 100 key entities (companies, people, events)
  • Relationship mapping — How FTX, Alameda, Binance, and key figures are connected

Re-running the Example

Option 1: Build from Existing Extractions (Free)

Use the pre-extracted entities — no LLM API calls:

Option 2: Full Pipeline from Scratch

Re-extract entities from the source documents:
Run sift resolve multiple times (2-3 passes) to catch progressively more subtle duplicates. Each pass refines the merge proposals.

Cost Breakdown

The ~$0.28 total cost includes:
  • Resolution — LLM calls across 3 passes to identify duplicates
  • Narration — LLM calls to generate entity descriptions and overview
(Extraction cost was calculated separately.) Costs will vary based on:
  • Number of entities to resolve
  • Model chosen (Haiku vs GPT-4o-mini vs others)
  • Number of resolution passes

Use Cases

This example pattern works well for:
  • Investigative journalism — Map connections across news articles
  • Business intelligence — Track companies, people, and events across sources
  • Historical analysis — Document timelines and relationships in major events
  • Due diligence — Aggregate information about entities from multiple sources

Merge Proposals File

The merge_proposals.yaml file is a key artifact:
This file:
  • Is generated by sift resolve
  • Can be manually edited before applying
  • Supports version control and collaboration
  • Is applied with sift apply-merges

Next Steps

Explore Other Examples

See Transformers and Epstein examples

Resolution Guide

Learn more about entity deduplication