def get_document_by_id(index_name: str, document_id: str,
                       marqo_config: config.Config = Depends(get_config),
                       expose_facets: bool = False):
    """
    Gets a document using its ID. Please refer to
    [Get document API](https://docs.marqo.ai/latest/reference/api/documents/get-one-document/) for details.
    """
    return tensor_search.get_document_by_id(
        config=marqo_config, index_name=index_name, document_id=document_id,
        show_vectors=expose_facets
    )

    Gets a document using its ID. Please refer to
    [Get document API](https://docs.marqo.ai/latest/reference/api/documents/get-one-document/) for details.
    
src/marqo/tensor_search/api.py