rules management blog posts

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