MCPcopy Create free account
hub / github.com/FlowiseAI/Flowise / parseDocumentLoaderMetadata

Function parseDocumentLoaderMetadata

packages/components/src/utils.ts:1361–1369  ·  view source on GitHub ↗
(metadata: object | string)

Source from the content-addressed store, hash-verified

1359}
1360
1361export const parseDocumentLoaderMetadata = (metadata: object | string): object => {
1362 if (!metadata) return {}
1363
1364 if (typeof metadata !== 'object') {
1365 return JSON.parse(metadata)
1366 }
1367
1368 return metadata
1369}
1370
1371export const handleDocumentLoaderMetadata = (
1372 docs: Document[],

Callers 1

Calls 1

parseMethod · 0.65

Tested by

no test coverage detected