Class DocumentLoaderExtensionsKt
-
- All Implemented Interfaces:
public final class DocumentLoaderExtensionsKt
-
-
Method Summary
Modifier and Type Method Description final static DocumentloadAsync(DocumentSource source, DocumentParser parser, CoroutineContext context)Asynchronously loads a document from the specified source using a given parser. -
-
Method Detail
-
loadAsync
final static Document loadAsync(DocumentSource source, DocumentParser parser, CoroutineContext context)
Asynchronously loads a document from the specified source using a given parser.
- Parameters:
source- The dev.langchain4j.data.document.DocumentSource from which the document will be loaded.parser- The dev.langchain4j.data.document.DocumentParser to parse the loaded document.context- The CoroutineContext to use for asynchronous execution, defaults toDispatchers.IO.- Returns:
The loaded and parsed Document.
-
-
-
-