HKUDS / LightRAG

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

Fix Event Loop conflict #221

Closed wiltshirek closed 2 weeks ago

wiltshirek commented 2 weeks ago

Neo4J: AsyncGraphDatabase needs get_event_loop opposed to get_running_loop.

   try:
        **loop = asyncio.get_event_loop()**
    except RuntimeError:
        logger.info("Creating a new event loop in main thread.")
        loop = asyncio.new_event_loop()
        asyncio.set_event_loop(loop)
    return loop