Building an Investment Knowledge Graph from Seven Decades of Shareholder Letters

    Transforming nearly seventy years of shareholder letters into a useful knowledge graph requires more than translation. It involves building a traceable, extensible structure that connects letters, paragraphs, concepts, entities, events, and evidence. This article presents a practical workflow covering knowledge modeling, translation, extraction, entity resolution, evidence management, parallel processing, quality review, linked-note organization, and cloud deployment.

    When a collection of shareholder letters spanning almost seven decades is laid out, the hardest problem is not translation. It is building a stable, traceable, and extensible knowledge structure from a large body of unstructured narrative.

    An individual letter may discuss operating results, investment cases, accounting conventions, and risk assessments. Across multiple letters, the same concept may evolve, the same company may be mentioned repeatedly, and the same investment may extend from its original purchase rationale to a review conducted years later.

    Full-text search returns a collection of matching passages. Summaries, on the other hand, may lose the temporal relationships and evidence chains between concepts. A knowledge graph addresses this problem by organizing letters, paragraphs, concepts, entities, events, and evidence into a navigable network.

    1. The Core Problem: Knowledge Modeling, Not Translation

    The first step in converting long-form documents into a knowledge graph is to define the goal correctly. The objective is not to generate attractive notes, but to support question-driven retrieval and reasoning.

    For example, if a reader wants to understand how an investment concept was introduced, strengthened, revised, and validated through cases, the system should be able to list the relevant passages chronologically and identify whether each passage provides a definition, case study, counterexample, or supplementary explanation.

    Similarly, when tracking a company, the system should aggregate its first mention, key judgments, subsequent changes, and related people.

    At minimum, the knowledge model needs several types of nodes:

    • Letters
    • Years
    • Paragraphs
    • Concepts
    • Company entities
    • People
    • Metrics
    • Events
    • Citations

    Edges may represent relationships such as:

    • Mentioning
    • Defining
    • Evolving
    • Supporting through a case
    • Refuting
    • Supplementing
    • Temporal adjacency

    One of the most common mistakes is to reduce extraction results to a flat set of tags. Tags only indicate that something appeared. They do not explain why it appeared or how it relates to other items.

    Every relationship should therefore include evidence, such as:

    • The source paragraph ID
    • The translated paragraph ID
    • Extraction confidence
    • Review status

    An evidence-first approach significantly reduces contamination caused by model hallucinations and gives human reviewers a clear basis for verification.

    2. Designing the Knowledge Model: Nodes, Edges, and Evidence Chains

    Node design must balance readability with machine processing.

    A letter node can store its title, date, type, and topic tags. A concept node can store its definition, aliases, first appearance, evolution history, and related cases. An entity node can store its canonical name, aliases, and the list of letters in which it appears. A paragraph node can store the original text and its alignment with the translation.

    Edges should avoid excessive connectivity and prioritize high-value relationships. Examples include:

    • “Concept A is redefined by the author in a specific letter.”
    • “Company B is a representative case of Concept C.”
    • “Person D influenced the capital allocation judgment in Letter E.”

    The evidence chain is the foundation of graph credibility. Every edge should be traceable to at least one paragraph ID and retain both the original excerpt and the translated excerpt.

    When a reader clicks a relationship on the publishing interface, the system should display not only the conclusion but also the relevant context.

    Ambiguous entities should be managed through an alias table and disambiguation rules. This prevents entities with the same name from being incorrectly merged.

    3. Designing an End-to-End Pipeline

    A practical pipeline can be divided into seven layers:

    1. Collection and cleaning
    2. Translation and terminology standardization
    3. Entity and concept extraction
    4. Relationship construction and linking
    5. Metadata standardization
    6. Quality validation
    7. Publishing and retrieval

    The collection layer divides documents by year and letter, then generates stable IDs, content hashes, and paragraph numbers.

    The cleaning layer handles OCR output, headers and footers, line breaks, and duplicate paragraphs.

    The translation layer maintains a terminology table before translation begins. It then translates the documents according to a consistent style guide. Terminology must remain consistent, uncertainty must be preserved, and the translation must not introduce judgments that are absent from the source.

    The extraction layer identifies concepts, entities, claims, cases, and cross-references from the translated text. Every extracted item must include an evidence paragraph.

    The linking layer merges extracted results with existing nodes and generates forward and reverse links.

    The metadata layer standardizes fields across the collection.

    The quality layer performs sample-based reviews and consistency checks.

    Finally, the publishing layer provides full-text search, graph queries, and timeline views.

    4. Parallel Processing and Idempotent Engineering

    Long-document projects are well suited to task decomposition by letter. Each letter can be treated as an independent work unit. It reads from a read-only terminology table, writes to its own directory, and is later included in a unified index rebuild.

    The key to parallel processing is not simply launching more tasks. It is ensuring that outputs are idempotent and mergeable.

    The same input hash, prompt-template version, and model version should produce traceable outputs. Repeated execution should not create duplicate nodes. Changes to the terminology table should go through a review process rather than being rewritten arbitrarily by an individual task.

    1. knowledge-base/
    2. sources/1957/letter-001.txt
    3. translations/1957/letter-001.txt
    4. concepts/moat.note
    5. entities/example-consumer-brand.note
    6. letters/1957/letter-001.note
    7. indexes/graph.json
    1. tasks = discover_letters(sources)
    2. term_table = load_term_table()
    3. parallel_for task in tasks with queue:
    4. doc = preprocess(task)
    5. translation = translate(doc, term_table, style_guide)
    6. extracted = extract_entities_concepts(translation, evidence_required=true)
    7. write_idempotent(task.id, translation, extracted)
    8. enqueue_review(task.id)
    9. rebuild_indexes_after_merge()

    Every letter and concept should use a standardized metadata header to support retrieval, filtering, and publishing.

    The field set does not need to be large, but it must remain stable. Useful fields include:

    • ID
    • Title
    • Date
    • Type
    • Tags
    • Source references
    • Translation references
    • Confidence
    • Review status

    Bidirectional linked text is suitable for human reading and can also support static publishing. A concept file should contain its definition, timeline, related letters, related cases, and unresolved review questions.

    1. ---
    2. id: letter-1957-001
    3. title: 1957 Shareholder Letter
    4. date: 1957-01-01
    5. type: shareholder_letter
    6. tags: [investing, value_investing, market_following_investing]
    7. source_refs:
    8. - sources/1957/letter-001.txt#p12
    9. translation_refs:
    10. - translations/1957/letter-001.txt#p12
    11. confidence: 0.82
    12. review_status: draft
    13. ---

    Within the body text, concepts and entities can be represented as bidirectional links, for example:

    1. [[concept/moat]]
    2. [[entity/example-consumer-brand]]

    The publishing layer can automatically generate backlinks. Readers can move from a concept page to every related letter, or from a letter page to the concepts introduced or revised in that letter.

    6. Quality Validation and Human Review

    Automated extraction cannot replace editorial review.

    Quality validation should cover four categories:

    1. Whether entities have been disambiguated correctly
    2. Whether concepts have been duplicated
    3. Whether relationships have supporting evidence
    4. Whether the translation preserves the original meaning

    Two review paths can be used:

    • Sample-based review
    • Full review of low-confidence results

    Pipeline health can be monitored through metrics such as:

    • Extraction accuracy
    • Link accuracy
    • Evidence coverage
    • Human correction rate

    Review status must be stored in the metadata so that draft content is not published accidentally.

    For relationships describing concept evolution, reviewers should explicitly confirm both the chronological order and the semantic change. This helps prevent a series of simple repeated mentions from being incorrectly classified as conceptual evolution.

    7. Publishing, Retrieval, and Cloud Deployment

    The publishing interface can provide several complementary views:

    • Full-text search for finding specific sentences
    • Graph queries for discovering relationships
    • Timeline views for examining evolution

    When deployed on a general-purpose cloud platform, the system can use object storage for original and translated documents, a message queue for distributing letter-level tasks, and a container platform for running parallel agents. Logging and monitoring services can be used to observe task status.

    These are general infrastructure capabilities. The important point is to include task status, output hashes, and review records in the observability system.

    8. Practical Boundaries and Conclusion

    This approach is suitable for document collections that are long-lived, distributed, high-value, and dependent on cross-referencing. It should not promise a fully automated, perfect knowledge graph.

    A more realistic path is to begin with a minimum viable version:

    1. Clean and translate a limited number of letters.
    2. Extract concepts and entities.
    3. Publish the results using bidirectional links.
    4. Test whether the knowledge model supports real user questions.
    5. Gradually add entity disambiguation, relationship review, and timeline capabilities.

    The value of a graph is not determined by the number of nodes. It depends on relationship quality, evidence completeness, and the mechanisms used for ongoing maintenance.

    Turning scattered long-form documents into a navigable knowledge base is fundamentally an incremental knowledge-engineering project, not a one-time scripting task.