Fix linting

This commit is contained in:
yangdx
2025-02-22 10:18:39 +08:00
parent 2fff9ae1ab
commit 411782797b

View File

@@ -608,10 +608,7 @@ class LightRAG:
contents = {id_: doc for id_, doc in zip(ids, input)}
else:
# Generate contents dict of MD5 hash IDs and documents
contents = {
compute_mdhash_id(doc, prefix="doc-"): doc
for doc in input
}
contents = {compute_mdhash_id(doc, prefix="doc-"): doc for doc in input}
# 2. Remove duplicate contents
unique_contents = {