mirror of
https://github.com/hwchase17/langchain.git
synced 2026-02-03 15:55:44 +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:
committed by
William Fu-Hinthorn
parent
b699d81d10
commit
44472e9de4
@@ -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))
|
||||
|
||||
Reference in New Issue
Block a user