mirror of
https://github.com/hwchase17/langchain.git
synced 2025-09-10 23:41:28 +00:00
community[patch]: docstrings update (#20301)
Added missed docstrings. Format docstings to the consistent form.
This commit is contained in:
@@ -21,7 +21,9 @@ def _litm_reordering(documents: List[Document]) -> List[Document]:
|
||||
|
||||
|
||||
class LongContextReorder(BaseDocumentTransformer, BaseModel):
|
||||
"""Lost in the middle:
|
||||
"""Reorder long context.
|
||||
|
||||
Lost in the middle:
|
||||
Performance degrades when models must access relevant information
|
||||
in the middle of long contexts.
|
||||
See: https://arxiv.org/abs//2307.03172"""
|
||||
|
@@ -9,7 +9,8 @@ from langchain_community.tools.nuclia.tool import NucliaUnderstandingAPI
|
||||
|
||||
|
||||
class NucliaTextTransformer(BaseDocumentTransformer):
|
||||
"""
|
||||
"""Nuclia Text Transformer.
|
||||
|
||||
The Nuclia Understanding API splits into paragraphs and sentences,
|
||||
identifies entities, provides a summary of the text and generates
|
||||
embeddings for all sentences.
|
||||
|
Reference in New Issue
Block a user