gusye1234 / nano-graphrag

A simple, easy-to-hack GraphRAG implementation
MIT License
1.26k stars 121 forks source link

Empty graph visualization page #46

Open knightmarehs opened 1 month ago

knightmarehs commented 1 month ago

When the input doc is loo long, after run examples/graphml_visualize.py , the web page is empty. Here is the traceback:

Uncaught SyntaxError: Bad control character in string literal in JSON at position 491086 (line 1 column 491087) at JSON.parse () at graph_visualization.html:81:32

gusye1234 commented 1 month ago

which commit you're using?

knightmarehs commented 1 month ago

I use main branch and commit 9755b5a6d6530a64e0e23a730f7ab30d5ef68579. I note that this is not the latest code and this commit maybe fixed this problem: https://github.com/gusye1234/nano-graphrag/commit/165920c8472d8539251fc8c76eb57f094a3b86f8 I will try it, thanks

knightmarehs commented 1 month ago

I think https://github.com/gusye1234/nano-graphrag/commit/165920c8472d8539251fc8c76eb57f094a3b86f8 fixed this problem. However when we use customized html path it may raise errors, I fixed this in this pr, please check. https://github.com/gusye1234/nano-graphrag/pull/52

gusye1234 commented 1 month ago

Try to use neo4j backend if you want a better vis for your grapgh.