import { ... } from "@langchain/core/documents";Abstract base class for document transformation systems.
A document transformation system takes an array of Documents and returns an array of transformed Documents. These arrays do not necessarily have to have the same length.
One example of this is a text splitter that splits a large document into many smaller documents.
Interface for interacting with a document.
Class for document transformers that return exactly one transformed document for each input document.