🐦 Twitter Post Details

Viewing enriched Twitter post

@jerryjliu0

Build a knowledge graph over any legal document 🧑‍⚖️ This weekend, learn the full stack to ETL your legal contracts into an entity graph that captures intricate relationships between parties/locations/contract terms. The trick: have a full document workflow that can convert docs into structured data first! 1️⃣ Parse your documents into well-structured markdown tokens with LlamaParse 2️⃣ Classify contracts into different categories 3️⃣ Extract structured data using LlamaExtract where schema is dependent on the category. This is a fantastic collab with @neo4j (Tomaz). Shoutout @tuanacelik from our side! Notebook: https://t.co/x2fp7h1hVN LlamaCloud: https://t.co/rlDaAlE4SH

Media 1
Media 2

📊 Media Metadata

{
  "media": [
    {
      "url": "https://crmoxkoizveukayfjuyo.supabase.co/storage/v1/object/public/media/posts/1957141315088728276/media_0.jpg?",
      "media_url": "https://crmoxkoizveukayfjuyo.supabase.co/storage/v1/object/public/media/posts/1957141315088728276/media_0.jpg?",
      "type": "photo",
      "filename": "media_0.jpg"
    },
    {
      "url": "https://crmoxkoizveukayfjuyo.supabase.co/storage/v1/object/public/media/posts/1957141315088728276/media_1.jpg?",
      "media_url": "https://crmoxkoizveukayfjuyo.supabase.co/storage/v1/object/public/media/posts/1957141315088728276/media_1.jpg?",
      "type": "photo",
      "filename": "media_1.jpg"
    }
  ],
  "processed_at": "2025-08-18T13:58:31.953052",
  "pipeline_version": "2.0"
}

🔧 Raw API Response

{
  "type": "tweet",
  "id": "1957141315088728276",
  "url": "https://x.com/jerryjliu0/status/1957141315088728276",
  "twitterUrl": "https://twitter.com/jerryjliu0/status/1957141315088728276",
  "text": "Build a knowledge graph over any legal document 🧑‍⚖️\n\nThis weekend, learn the full stack to ETL your legal contracts into an entity graph that captures intricate relationships between parties/locations/contract terms. The trick: have a full document workflow that can convert docs into structured data first!\n1️⃣ Parse your documents into well-structured markdown tokens with LlamaParse\n2️⃣ Classify contracts into different categories\n3️⃣ Extract structured data using LlamaExtract where schema is dependent on the category.\n\nThis is a fantastic collab with @neo4j (Tomaz). Shoutout @tuanacelik from our side!\n\nNotebook: https://t.co/x2fp7h1hVN\n\nLlamaCloud: https://t.co/rlDaAlE4SH",
  "source": "Twitter for iPhone",
  "retweetCount": 67,
  "replyCount": 5,
  "likeCount": 392,
  "quoteCount": 2,
  "viewCount": 44055,
  "createdAt": "Sun Aug 17 18:03:46 +0000 2025",
  "lang": "en",
  "bookmarkCount": 591,
  "isReply": false,
  "inReplyToId": null,
  "conversationId": "1957141315088728276",
  "displayTextRange": [
    0,
    281
  ],
  "inReplyToUserId": null,
  "inReplyToUsername": null,
  "author": {
    "type": "user",
    "userName": "jerryjliu0",
    "url": "https://x.com/jerryjliu0",
    "twitterUrl": "https://twitter.com/jerryjliu0",
    "id": "369777416",
    "name": "Jerry Liu",
    "isVerified": false,
    "isBlueVerified": true,
    "verifiedType": null,
    "profilePicture": "https://pbs.twimg.com/profile_images/1283610285031460864/1Q4zYhtb_normal.jpg",
    "coverPicture": "",
    "description": "",
    "location": "",
    "followers": 64500,
    "following": 1378,
    "status": "",
    "canDm": true,
    "canMediaTag": true,
    "createdAt": "Wed Sep 07 22:54:31 +0000 2011",
    "entities": {
      "description": {
        "urls": []
      },
      "url": {}
    },
    "fastFollowersCount": 0,
    "favouritesCount": 7796,
    "hasCustomTimelines": true,
    "isTranslator": false,
    "mediaCount": 1255,
    "statusesCount": 6069,
    "withheldInCountries": [],
    "affiliatesHighlightedLabel": {},
    "possiblySensitive": false,
    "pinnedTweetIds": [],
    "profile_bio": {
      "description": "co-founder/CEO @llama_index\n\nCareers: https://t.co/EUnMNmbCtx\nEnterprise: https://t.co/Ht5jwxSrQB",
      "entities": {
        "description": {
          "urls": [
            {
              "display_url": "llamaindex.ai/careers",
              "expanded_url": "https://www.llamaindex.ai/careers",
              "indices": [
                38,
                61
              ],
              "url": "https://t.co/EUnMNmbCtx"
            },
            {
              "display_url": "llamaindex.ai/contact",
              "expanded_url": "https://www.llamaindex.ai/contact",
              "indices": [
                74,
                97
              ],
              "url": "https://t.co/Ht5jwxSrQB"
            }
          ],
          "user_mentions": [
            {
              "id_str": "0",
              "indices": [
                15,
                27
              ],
              "name": "",
              "screen_name": "llama_index"
            }
          ]
        },
        "url": {
          "urls": [
            {
              "display_url": "llamaindex.ai",
              "expanded_url": "https://www.llamaindex.ai/",
              "indices": [
                0,
                23
              ],
              "url": "https://t.co/YiIfjVlzb6"
            }
          ]
        }
      }
    },
    "isAutomated": false,
    "automatedBy": null
  },
  "extendedEntities": {
    "media": [
      {
        "display_url": "pic.twitter.com/P09MjpCArh",
        "expanded_url": "https://twitter.com/jerryjliu0/status/1957141315088728276/photo/1",
        "ext_media_availability": {
          "status": "Available"
        },
        "features": {
          "large": {
            "faces": [
              {
                "h": 175,
                "w": 175,
                "x": 328,
                "y": 59
              }
            ]
          },
          "orig": {
            "faces": [
              {
                "h": 175,
                "w": 175,
                "x": 328,
                "y": 59
              }
            ]
          }
        },
        "id_str": "1957141305089478656",
        "indices": [
          282,
          305
        ],
        "media_key": "3_1957141305089478656",
        "media_results": {
          "id": "QXBpTWVkaWFSZXN1bHRzOgwAAQoAARspKaXJGlAACgACGykpqB0awNQAAA==",
          "result": {
            "__typename": "ApiMedia",
            "id": "QXBpTWVkaWE6DAABCgABGykppckaUAAKAAIbKSmoHRrA1AAA",
            "media_key": "3_1957141305089478656"
          }
        },
        "media_url_https": "https://pbs.twimg.com/media/GykppckaUAACwIL.jpg",
        "original_info": {
          "focus_rects": [
            {
              "h": 381,
              "w": 680,
              "x": 0,
              "y": 0
            },
            {
              "h": 596,
              "w": 596,
              "x": 25,
              "y": 0
            },
            {
              "h": 596,
              "w": 523,
              "x": 62,
              "y": 0
            },
            {
              "h": 596,
              "w": 298,
              "x": 174,
              "y": 0
            },
            {
              "h": 596,
              "w": 680,
              "x": 0,
              "y": 0
            }
          ],
          "height": 596,
          "width": 680
        },
        "sizes": {
          "large": {
            "h": 596,
            "w": 680
          }
        },
        "type": "photo",
        "url": "https://t.co/P09MjpCArh"
      }
    ]
  },
  "card": null,
  "place": {},
  "entities": {
    "urls": [
      {
        "display_url": "docs.llamaindex.ai/en/latest/exam…",
        "expanded_url": "https://docs.llamaindex.ai/en/latest/examples/cookbooks/build_knowledge_graph_with_neo4j_llamacloud/?utm_source=socials&utm_medium=li_social",
        "indices": [
          622,
          645
        ],
        "url": "https://t.co/x2fp7h1hVN"
      },
      {
        "display_url": "cloud.llamaindex.ai/?utm_campaign=…",
        "expanded_url": "https://cloud.llamaindex.ai/?utm_campaign=index&utm_medium=jl_socials",
        "indices": [
          659,
          682
        ],
        "url": "https://t.co/rlDaAlE4SH"
      }
    ],
    "user_mentions": [
      {
        "id_str": "22467617",
        "indices": [
          559,
          565
        ],
        "name": "Neo4j",
        "screen_name": "neo4j"
      },
      {
        "id_str": "209600624",
        "indices": [
          584,
          595
        ],
        "name": "Tuana",
        "screen_name": "tuanacelik"
      }
    ]
  },
  "quoted_tweet": {
    "type": "tweet",
    "id": "1956462158138712426",
    "url": "https://x.com/llama_index/status/1956462158138712426",
    "twitterUrl": "https://twitter.com/llama_index/status/1956462158138712426",
    "text": "Transform unstructured legal documents into queryable knowledge graphs that understand not just content, but relationships between entities.\n\nThis comprehensive tutorial shows you how to build a knowldedge graph creation workflow using LlamaCloud and @neo4j for legal contract processing:\n\n📄 Use LlamaParse to extract clean text from PDF documents, even complex legal contracts\n🤖 Classify contract types using an LLM to enable context-aware processing\n🔍 Extract structured data with LlamaExtract, tailoring extraction schemas to each contract category\n🕸️ Store everything in @neo4j as a rich knowledge graph that captures intricate relationships between parties, locations, and contract terms\n\nThe tutorial includes complete code for building an agentic workflow that processes contracts from PDF to knowledge graph in a single pipeline.\n\nCheck out the full cookbook:\nhttps://t.co/gS7Q1trda8",
    "source": "Twitter for iPhone",
    "retweetCount": 98,
    "replyCount": 6,
    "likeCount": 459,
    "quoteCount": 4,
    "viewCount": 80052,
    "createdAt": "Fri Aug 15 21:05:02 +0000 2025",
    "lang": "en",
    "bookmarkCount": 660,
    "isReply": false,
    "inReplyToId": null,
    "conversationId": "1956462158138712426",
    "displayTextRange": [
      0,
      277
    ],
    "inReplyToUserId": null,
    "inReplyToUsername": null,
    "author": {
      "type": "user",
      "userName": "llama_index",
      "url": "https://x.com/llama_index",
      "twitterUrl": "https://twitter.com/llama_index",
      "id": "1604278358296055808",
      "name": "LlamaIndex 🦙",
      "isVerified": false,
      "isBlueVerified": true,
      "verifiedType": null,
      "profilePicture": "https://pbs.twimg.com/profile_images/1623505166996742144/n-PNQGgd_normal.jpg",
      "coverPicture": "https://pbs.twimg.com/profile_banners/1604278358296055808/1752258343",
      "description": "",
      "location": "",
      "followers": 100399,
      "following": 28,
      "status": "",
      "canDm": false,
      "canMediaTag": true,
      "createdAt": "Sun Dec 18 00:52:44 +0000 2022",
      "entities": {
        "description": {
          "urls": []
        },
        "url": {}
      },
      "fastFollowersCount": 0,
      "favouritesCount": 1429,
      "hasCustomTimelines": true,
      "isTranslator": false,
      "mediaCount": 1694,
      "statusesCount": 3520,
      "withheldInCountries": [],
      "affiliatesHighlightedLabel": {},
      "possiblySensitive": false,
      "pinnedTweetIds": [],
      "profile_bio": {
        "description": "Build AI agents over your documents\n\nGithub: https://t.co/HC19j7vMwc\nDocs: https://t.co/QInqg2zksh\nLlamaCloud: https://t.co/yQGTiRSNvj",
        "entities": {
          "description": {
            "urls": [
              {
                "display_url": "github.com/run-llama/llam…",
                "expanded_url": "http://github.com/run-llama/llama_index",
                "indices": [
                  45,
                  68
                ],
                "url": "https://t.co/HC19j7vMwc"
              },
              {
                "display_url": "docs.llamaindex.ai",
                "expanded_url": "http://docs.llamaindex.ai",
                "indices": [
                  75,
                  98
                ],
                "url": "https://t.co/QInqg2zksh"
              },
              {
                "display_url": "cloud.llamaindex.ai",
                "expanded_url": "https://cloud.llamaindex.ai/",
                "indices": [
                  111,
                  134
                ],
                "url": "https://t.co/yQGTiRSNvj"
              }
            ]
          },
          "url": {
            "urls": [
              {
                "display_url": "llamaindex.ai",
                "expanded_url": "https://www.llamaindex.ai/",
                "indices": [
                  0,
                  23
                ],
                "url": "https://t.co/epzefqQqZx"
              }
            ]
          }
        }
      },
      "isAutomated": false,
      "automatedBy": null
    },
    "extendedEntities": {
      "media": [
        {
          "display_url": "pic.twitter.com/MPSfPiS2Cv",
          "expanded_url": "https://twitter.com/llama_index/status/1956462158138712426/photo/1",
          "ext_media_availability": {
            "status": "Available"
          },
          "features": {
            "large": {
              "faces": [
                {
                  "h": 285,
                  "w": 285,
                  "x": 634,
                  "y": 127
                }
              ]
            },
            "orig": {
              "faces": [
                {
                  "h": 285,
                  "w": 285,
                  "x": 634,
                  "y": 127
                }
              ]
            }
          },
          "id_str": "1956462154716266496",
          "indices": [
            278,
            301
          ],
          "media_key": "3_1956462154716266496",
          "media_results": {
            "id": "QXBpTWVkaWFSZXN1bHRzOgwAAQoAARsmv/bEW8AACgACGya/95BaIWoAAA==",
            "result": {
              "__typename": "ApiMedia",
              "id": "QXBpTWVkaWE6DAABCgABGya/9sRbwAAKAAIbJr/3kFohagAA",
              "media_key": "3_1956462154716266496"
            }
          },
          "media_url_https": "https://pbs.twimg.com/media/Gya_9sRbwAAF0m0.jpg",
          "original_info": {
            "focus_rects": [
              {
                "h": 703,
                "w": 1256,
                "x": 0,
                "y": 0
              },
              {
                "h": 1100,
                "w": 1100,
                "x": 46,
                "y": 0
              },
              {
                "h": 1100,
                "w": 965,
                "x": 114,
                "y": 0
              },
              {
                "h": 1100,
                "w": 550,
                "x": 321,
                "y": 0
              },
              {
                "h": 1100,
                "w": 1256,
                "x": 0,
                "y": 0
              }
            ],
            "height": 1100,
            "width": 1256
          },
          "sizes": {
            "large": {
              "h": 1100,
              "w": 1256
            }
          },
          "type": "photo",
          "url": "https://t.co/MPSfPiS2Cv"
        }
      ]
    },
    "card": null,
    "place": {},
    "entities": {
      "urls": [
        {
          "display_url": "docs.llamaindex.ai/en/latest/exam…",
          "expanded_url": "https://docs.llamaindex.ai/en/latest/examples/cookbooks/build_knowledge_graph_with_neo4j_llamacloud/?utm_source=socials&utm_medium=li_social",
          "indices": [
            868,
            891
          ],
          "url": "https://t.co/gS7Q1trda8"
        }
      ],
      "user_mentions": [
        {
          "id_str": "22467617",
          "indices": [
            251,
            257
          ],
          "name": "Neo4j",
          "screen_name": "neo4j"
        },
        {
          "id_str": "22467617",
          "indices": [
            575,
            581
          ],
          "name": "Neo4j",
          "screen_name": "neo4j"
        }
      ]
    },
    "quoted_tweet": null,
    "retweeted_tweet": null,
    "article": null
  },
  "retweeted_tweet": null,
  "article": null
}