From 48fde2004fdaa097a3c3eb2353274d6cb508129f Mon Sep 17 00:00:00 2001 From: Ennio Pastore Date: Fri, 27 Oct 2023 20:52:28 +0200 Subject: [PATCH] Update long_context_reorder.py (#12422) The function comment was confusing and inaccurate --- .../langchain/document_transformers/long_context_reorder.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libs/langchain/langchain/document_transformers/long_context_reorder.py b/libs/langchain/langchain/document_transformers/long_context_reorder.py index 8da4fc441b..8abcaa9cd7 100644 --- a/libs/langchain/langchain/document_transformers/long_context_reorder.py +++ b/libs/langchain/langchain/document_transformers/long_context_reorder.py @@ -6,7 +6,7 @@ from langchain.schema import BaseDocumentTransformer, Document def _litm_reordering(documents: List[Document]) -> List[Document]: - """Los in the middle reorder: the most relevant will be at the + """Lost in the middle reorder: the less relevant documents will be at the middle of the list and more relevant elements at beginning / end. See: https://arxiv.org/abs//2307.03172"""