OpenSPG / KAG

KAG is a logical form-guided reasoning and retrieval framework based on OpenSPG engine and LLMs. It is used to build logical reasoning and factual Q&A solutions for professional domain knowledge bases. It can effectively overcome the shortcomings of the traditional RAG vector similarity calculation model.
https://spg.openkg.cn/en-US
Apache License 2.0
732 stars 54 forks source link

Graph not sync to openspg-server after building index #33

Closed zxsimple closed 3 weeks ago

zxsimple commented 3 weeks ago

Project Configuration

{"database":"medicine","password":"neo4j@openspg","uri":"neo4j://release-openspg-neo4j:7687","user":"neo4j"}

After execution of python ./builder/indexer.py, it shows KGWriter finished, but knowledge base and graph not shown on web.

Processing KAGExtractor: 100%|████████████████████████████████████████████████████████████████████████████████████████████████████| 2/2 [02:01<00:00, 60.97s/it]
Processing BatchVectorizer: 100%|█████████████████████████████████████████████████████████████████████████████████████████████████| 2/2 [00:32<00:00, 16.33s/it]
Processing KGWriter: 100%|████████████████████████████████████████████████████████████████████████████████████████████████████████| 2/2 [00:05<00:00,  2.73s/it]
Processing CSVReader: 100%|██████████████████████████████████████████████████████████████████████████████████████████████████████| 1/1 [00:00<00:00, 400.37it/s]
Processing SPOMapping: 100%|█████████████████████████████████████████████████████████████████████████████████████████████████| 14/14 [00:00<00:00, 68839.69it/s]
Processing BatchVectorizer: 100%|███████████████████████████████████████████████████████████████████████████████████████████████| 14/14 [00:00<00:00, 18.91it/s]
Processing KGWriter: 100%|██████████████████████████████████████████████████████████████████████████████████████████████████████| 14/14 [00:00<00:00, 28.08it/s]
image
xionghuaidong commented 3 weeks ago

The graph you see is the concept graph, not the entity graph. To see the imported data, you can view it in the Neo4j browser. Please navigate to http://127.0.0.1:7474.

zxsimple commented 3 weeks ago

Thanks!

Wangzhongxi commented 3 weeks ago

您看到的图形是概念图,而不是实体图。要查看导入的数据,您可以在 Neo4j 浏览器中查看它。请导航到 http://127.0.0.1:7474image

image

wo'zhe'li我这里也是构建完成,为什么在neo4j中查看不到图谱结构

Wangzhongxi commented 2 weeks ago

谢谢! 你好,你这个可以在neo4j中查看到图谱结构吗,运行index.py重构图谱文件后还要其他操作吗?求解答

caszkgui commented 2 weeks ago

您看到的图形是概念图,而不是实体图。要查看导入的数据,您可以在 Neo4j 浏览器中查看它。请导航到 http://127.0.0.1:7474。 image

image

wo'zhe'li我这里也是构建完成,为什么在neo4j中查看不到图谱结构

you can change the database through neo4j webui: image

Wangzhongxi commented 2 weeks ago

您看到的图形是概念图,而不是实体图。要查看导入的数据,您可以在 Neo4j 浏览器中查看它。请导航到 http://127.0.0.1:7474。 图像

图像 wo'zhe'li我这里也是构建完成,为什么在neo4j中查看不到图谱结构

您可以通过 Neo4j WebUI 更改数据库: 图像

好的,谢谢了