before_rabbithole_splits_text
Intervene before the uploaded document is split into chunks.
Allows editing the uploaded document main Document(s) before the RabbitHole recursively splits it in shorter ones.
Please note that this is a list because parsers can output one or more Document, that are afterward split.
For instance, the hook allows to change the text or edit/add metadata.
đ Arguments
| Name | Type | Description |
|---|---|---|
docs |
List[Document] |
Langchain Documents resulted after parsing the file uploaded in the RabbitHole. |
cat |
StrayCat | Cheshire Cat instance, allows you to use the framework components. |
doc example:
âŠī¸ Return
Type: List[Document]
Edited Langchain Documents.