From 23237f76d224d00e06fa427beba08a08a8d8a0cf Mon Sep 17 00:00:00 2001 From: Stefano Fiorucci Date: Thu, 24 Jul 2025 12:45:05 +0200 Subject: [PATCH] docs: fix DocumentLengthRouter usage example (#9652) Co-authored-by: David S. Batista --- haystack/components/routers/document_length_router.py | 1 + 1 file changed, 1 insertion(+) diff --git a/haystack/components/routers/document_length_router.py b/haystack/components/routers/document_length_router.py index af05a0c21..41281e73b 100644 --- a/haystack/components/routers/document_length_router.py +++ b/haystack/components/routers/document_length_router.py @@ -37,6 +37,7 @@ class DocumentLengthRouter: # "short_documents": [Document(content="Short", ...)], # "long_documents": [Document(content="Long document ...", ...)], # } + ``` """ def __init__(self, *, threshold: int = 10) -> None: