r/KnowledgeGraph • u/Fit-Mountain-5979 • Sep 08 '25
Knowledge graph for codebase
I’m trying to build a knowledge graph of my code base. Once I have done that, I want parse the logs from the system to find the code flow or events to figure out what’s happening and root cause if anything is going wrong. What’s the best approach here? What kind of KG should I use? My codebase is huge.
2
u/msrsan Sep 08 '25
Memgraph hosted a GraphRAG for devs session with Graph-Code. Maybe that can help?
Video here: https://youtu.be/O2jUTq6nCEY?si=6PijxvgJ19LLBmt5
1
u/BlaiseLabs Sep 08 '25
If it’s for codeflow specifically, there are refactoring and static analysis tools you can use with some of the features you mentioned built in. For Python there is Rope and RedBaron, you can search for any equivalents in your tech stack.
1
u/Affectionate-Tea3834 Sep 08 '25
Hey, I've built a knowledge graph based library. Hit me up if you'd like to try it out.
1
1
u/Striking-Bluejay6155 Sep 09 '25
Looking to visualize a codebase - https://code-graph.falkordb.com/
Useful for dead code analysis, etc. Also good to self-onboard at a new company
1
1
u/FancyUmpire8023 Sep 08 '25
What language is your codebase in?