News for hackers. Stuff that matters.

Show HN: Generate Knowledge Graphs with LLMs

https://share.streamlit.io/-/auth/app?redirect_uri=https%3A%2F%2Fpansophy.streamlit.app%2F

I created an app that lets you generate knowledge graphs about any topic. It uses OpenAI GPT-3.5 and instructor to generate knowledge graphs.

Feel free to try it and provide any feedback! The UI still needs some work, but this is just a prototype.

Code: https://github.com/benthecoder/pansophy Instructor: https://pypi.org/project/instructor/

( 3 comments | on HN )
Re:Show HN: Generate Knowledge Graphs with LLMs by graphitout on Thursday October 19, 2023 @09:05AM (#37942342)
This is very interesting. I am working on a similar project related to generating dependency graphs (basically only type of connection is A depends on B). I tried to get the common chatbots to generate the data in the form of dependencies, but I didn't have much luck.

Example graph (hand written): https://charstorm.github.io/class-11-12-india/class11/maths/...

Re:Show HN: Generate Knowledge Graphs with LLMs by benthecoder on Thursday October 19, 2023 @11:20PM (#37952033)
interesting, thanks for sharing! Maybe check out if instructor helps https://jxnl.github.io/instructor/examples/knowledge_graph/

What do you use for the UI?

Re:Show HN: Generate Knowledge Graphs with LLMs by graphitout on Friday October 20, 2023 @03:45AM (#37953373)
I will try it out. It looks straightforward.

For UI, I used a tiny tool I wrote: https://github.com/charstorm/linkitall/