Skip to content

feat: Docling timeout extension #17026

@theobgbd

Description

@theobgbd

Check Existing Issues

  • I have searched the existing issues and discussions.

Problem Description

open-webui : v0.6.20
docling-serve : v1.3.1

Docling-serve document timeout is set by default to 60s, regardless of the processing time. This causes an issue for large PDFs requiring a large processing time. When a document is uploaded (via the chat interface or the knowledge base page), docling takes over processing, however when the request exceeds 60s, open-webui drops the document from the interface and its internal DB. Logs show docling serve returns the extracted content, which open-webui proceeds to embed and store in vector storage, without an entry in the document DB.

Desired Solution you'd like

The problem can be patched by adding an environment variable to control the DoclingLoader timeout. Implementations can be done by adding the a timeout option to the requests.post() call in the DoclingLoader class, poiting to said environment variable.

Alternatives Considered

No response

Additional Context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions