mirror of
https://github.com/hwchase17/langchain.git
synced 2025-08-19 09:30:15 +00:00
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:
parent
c72bcda4f2
commit
b61de9728e
@ -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…
Reference in New Issue
Block a user