Merge pull request #572 from iridium-soda/main

fix: Resolve 500 error caused by missing `len()` for `LightRAG`
This commit is contained in:
zrguo 2025-01-13 09:27:37 +08:00 committed by GitHub
commit 4b060305ce
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -487,7 +487,7 @@ def create_app(args):
return InsertResponse(
status="success",
message="Text successfully inserted",
document_count=len(rag),
document_count=1,
)
except Exception as e:
raise HTTPException(status_code=500, detail=str(e))