API-ingested documents have file_path=None causing 500s on status endpoints – intended design? #2594
filippoloddo
started this conversation in
Ideas
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi maintainers,
I’m running LightRAG Server (v1.4.9.x) and noticed the following behavior:
/documents/textor/documents/uploadlegitimately havefile_path = None/documents/paginated/documents/track_status/{track_id}attempt to serialize these documents using
DocStatusResponseDocStatusResponse.file_pathis currently defined as a requiredstrI verified this is happening in:
api/routers/document_routes.pywhen constructingDocStatusResponse.From a user perspective, API-ingested documents are first-class, so
file_path=Noneseems valid state.This leaves two possible design directions:
file_pathoptional inDocStatusResponseapi://text/<doc_id>)Before opening a PR, I wanted to ask:
file_path?None?Happy to contribute a fix once the intended direction is clarified.
Beta Was this translation helpful? Give feedback.
All reactions