Blog Posts Decision / Rules Management

Knowledge Graph in 100 Lines of Code

Blog: Decision Management Community

Knowledge graphs are getting lots of attention at the moment, as they are the natural Yin to the Yang of LLMs, providing structured data to chat interfaces, and powering Retrieval Augmented Generation. In this article Dan Selman demonstrates how to create your own custom Knowledge Graph using Typescript, Open Source tools and the Neo4J database.

His graph represents nodes and edges for a simple movie database including nodes for movies, actors, directors and users who have rated movies. His demo using Open AI retrieves three top-rated movies semantically similar to the search query ‘Working in a boring job and looking for love’ though that exact text doesn’t appear in the summary of the movie. Link

Leave a Comment

Get the BPI Web Feed

Using the HTML code below, you can display this Business Process Incubator page content with the current filter and sorting inside your web site for FREE.

Copy/Paste this code in your website html code:

<iframe src="https://www.businessprocessincubator.com/content/knowledge-graph-in-100-lines-of-code/?feed=html" frameborder="0" scrolling="auto" width="100%" height="700">

Customizing your BPI Web Feed

You can click on the Get the BPI Web Feed link on any of our page to create the best possible feed for your site. Here are a few tips to customize your BPI Web Feed.

Customizing the Content Filter
On any page, you can add filter criteria using the MORE FILTERS interface:

Customizing the Content Filter

Customizing the Content Sorting
Clicking on the sorting options will also change the way your BPI Web Feed will be ordered on your site:

Get the BPI Web Feed

Some integration examples

BPMN.org

XPDL.org

×