community[minor]: Fix long_context_reorder.py async (#22839)

Implement `async def atransform_documents( self, documents:
Sequence[Document], **kwargs: Any ) -> Sequence[Document]` for
`LongContextReorder`
This commit is contained in:
Philippe PRADOS
2024-06-14 19:55:18 +02:00
committed by William Fu-Hinthorn
parent b699d81d10
commit 44472e9de4

View File

@@ -42,4 +42,4 @@ class LongContextReorder(BaseDocumentTransformer, BaseModel):
async def atransform_documents(
self, documents: Sequence[Document], **kwargs: Any
) -> Sequence[Document]:
raise NotImplementedError
return _litm_reordering(list(documents))