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

Implement `async def atransform_documents( self, documents:
Sequence[Document], **kwargs: Any ) -> Sequence[Document]` for
`LongContextReorder`
pull/22912/head
Philippe PRADOS 3 weeks ago committed by GitHub
parent c72bcda4f2
commit b61de9728e
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -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))

Loading…
Cancel
Save