Update long_context_reorder.py (#12422)

The function comment was confusing and inaccurate
This commit is contained in:
Ennio Pastore 2023-10-27 20:52:28 +02:00 committed by GitHub
parent a8c68d4ffa
commit 48fde2004f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -6,7 +6,7 @@ from langchain.schema import BaseDocumentTransformer, Document
def _litm_reordering(documents: List[Document]) -> List[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. middle of the list and more relevant elements at beginning / end.
See: https://arxiv.org/abs//2307.03172""" See: https://arxiv.org/abs//2307.03172"""