Class DocumentLoaderExtensionsKt

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Field Summary

      Fields 
      Modifier and Type Field Description
    • Constructor Summary

      Constructors 
      Constructor Description
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      final static Document loadAsync(DocumentSource source, DocumentParser parser, CoroutineContext context) Asynchronously loads a document from the specified source using a given parser.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

    • 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 to Dispatchers.IO.
        Returns:

        The loaded and parsed Document.