mirror of
https://github.com/hwchase17/langchain.git
synced 2025-07-19 11:08:55 +00:00
Update long_context_reorder.py (#12422)
The function comment was confusing and inaccurate
This commit is contained in:
parent
a8c68d4ffa
commit
48fde2004f
@ -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"""
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user