docs: fix DocumentLengthRouter usage example (#9652)

Co-authored-by: David S. Batista <dsbatista@gmail.com>
This commit is contained in:
Stefano Fiorucci 2025-07-24 12:45:05 +02:00 committed by GitHub
parent 8af4cf8b01
commit 23237f76d2
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -37,6 +37,7 @@ class DocumentLengthRouter:
# "short_documents": [Document(content="Short", ...)],
# "long_documents": [Document(content="Long document ...", ...)],
# }
```
"""
def __init__(self, *, threshold: int = 10) -> None: