HKUDS / LightRAG

"LightRAG: Simple and Fast Retrieval-Augmented Generation"
https://arxiv.org/abs/2410.05779
MIT License
9.64k stars 1.2k forks source link

Fix evenloop and add neo4j #145

Closed Paxwell-Paxwell closed 4 weeks ago

Paxwell-Paxwell commented 1 month ago

Fix event loop handling:

Resolved the RuntimeError related to getting an event loop. Changed the creation of event loops to ensure they run in the main thread using asyncio.get_event_loop() Neo4j integration:

Added Neo4jKVStorage and Neo4jGraphStorage for improved graph-based data management. Updated configuration to support Neo4j in LightRAG with necessary settings in the code.

Docker Compose:

Added a docker-compose.yml file to enable easy setup of the Neo4j database.