HKUDS / LightRAG

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

Naive query fails with "'NoneType' object is not subscriptable" #306

Open rcoundon opened 3 hours ago

rcoundon commented 3 hours ago

When issuing a naive query like this:

rag.query(query, param=QueryParam(mode="naive"))

This fails with:


  File ".../LightRAG/lightrag/operate.py", line 1083, in <lambda>
    key=lambda x: x["content"],
                  ~^^^^^^^^^^^
TypeError: 'NoneType' object is not subscriptable

Running a local, global or hybrid query works fine.

This seemed to be introduced with the changes deployed on 19 Nov (UK time)

sougannkyou commented 2 hours ago

遇到同样问题