Transform a list of documents.
transformDocuments(
documents: Document<Record<string, any>>[],
chunkHeaderOptions: TextSplitterChunkHeaderOptions = {}
): Promise<Document<Record<string, any>>[]>| Name | Type | Description |
|---|---|---|
documents* | Document<Record<string, any>>[] | A sequence of documents to be transformed. |
chunkHeaderOptions | TextSplitterChunkHeaderOptions | Default: {} |