Document transformers.
Class for storing a piece of text and associated metadata.
Document is for retrieval workflows, not chat I/O. For sending text
to an LLM in a conversation, use message types from langchain.messages.
Abstract base class for document transformation.
A document transformation takes a sequence of Document objects and returns a
sequence of transformed Document objects.