Update long_context_reorder.py (#12422)

The function comment was confusing and inaccurate
pull/12452/head
Ennio Pastore 8 months ago committed by GitHub
parent a8c68d4ffa
commit 48fde2004f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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

Loading…
Cancel
Save