MCPcopy
hub / github.com/FlowiseAI/Flowise / _isBaseDocumentLoader

Function _isBaseDocumentLoader

packages/components/src/indexing.ts:224–229  ·  view source on GitHub ↗
(arg: any)

Source from the content-addressed store, hash-verified

222}
223
224export const _isBaseDocumentLoader = (arg: any): arg is BaseDocumentLoader => {
225 if ('load' in arg && typeof arg.load === 'function' && 'loadAndSplit' in arg && typeof arg.loadAndSplit === 'function') {
226 return true
227 }
228 return false
229}
230
231interface IndexArgs {
232 docsSource: BaseDocumentLoader | DocumentInterface[]

Callers 1

indexFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected