from .router import process_document, is_long_document