Uses of Interface
dev.langchain4j.data.document.Document
Packages that use Document
Package
Description
-
Uses of Document in dev.langchain4j.classification
Methods in dev.langchain4j.classification with parameters of type DocumentModifier and TypeMethodDescriptionClassifies the givenDocument
.default ClassificationResult
<L> TextClassifier.classifyWithScores
(Document document) Classifies the givenDocument
and returns labels with scores. -
Uses of Document in dev.langchain4j.data.document
Classes in dev.langchain4j.data.document that implement DocumentMethods in dev.langchain4j.data.document that return DocumentModifier and TypeMethodDescriptionstatic Document
Creates a new Document from the given text.static Document
Creates a new Document from the given text.static Document
Creates a new Document from the given text.static Document
Creates a new Document from the given text.static Document
DocumentLoader.load
(DocumentSource source, DocumentParser parser) Loads a document from the given source using the given parser.DocumentParser.parse
(InputStream inputStream) Parses a givenInputStream
into aDocument
.Transforms a provided document.Methods in dev.langchain4j.data.document that return types with arguments of type DocumentModifier and TypeMethodDescriptionDocumentTransformer.transformAll
(List<Document> documents) Transforms all the provided documents.Methods in dev.langchain4j.data.document with parameters of type DocumentModifier and TypeMethodDescriptionSplits a single Document into a list of TextSegment objects.Transforms a provided document.Method parameters in dev.langchain4j.data.document with type arguments of type DocumentModifier and TypeMethodDescriptiondefault List
<TextSegment> Splits a list of Documents into a list of TextSegment objects.DocumentTransformer.transformAll
(List<Document> documents) Transforms all the provided documents. -
Uses of Document in dev.langchain4j.data.document.loader
Methods in dev.langchain4j.data.document.loader that return DocumentModifier and TypeMethodDescriptionstatic Document
UrlDocumentLoader.load
(String url, DocumentParser documentParser) Loads a document from the specified URL.static Document
UrlDocumentLoader.load
(URL url, DocumentParser documentParser) Loads a document from the specified URL.static Document
ClassPathDocumentLoader.loadDocument
(String pathOnClasspath) Loads aDocument
from the specified file path.static Document
ClassPathDocumentLoader.loadDocument
(String pathOnClasspath, DocumentParser documentParser) Loads aDocument
from the specified file path.static Document
FileSystemDocumentLoader.loadDocument
(String filePath) Loads aDocument
from the specified file path.static Document
FileSystemDocumentLoader.loadDocument
(String filePath, DocumentParser documentParser) Loads aDocument
from the specified file path.static Document
FileSystemDocumentLoader.loadDocument
(Path filePath) static Document
FileSystemDocumentLoader.loadDocument
(Path filePath, DocumentParser documentParser) Methods in dev.langchain4j.data.document.loader that return types with arguments of type DocumentModifier and TypeMethodDescriptionClassPathDocumentLoader.loadDocuments
(String directoryOnClasspath) LoadsDocument
s from the specified directory.ClassPathDocumentLoader.loadDocuments
(String directoryOnClasspath, DocumentParser documentParser) LoadsDocument
s from the specified directory.ClassPathDocumentLoader.loadDocuments
(String directoryOnClasspath, PathMatcher pathMatcher) Loads matchingDocument
s from the specified directory.ClassPathDocumentLoader.loadDocuments
(String directoryOnClasspath, PathMatcher pathMatcher, DocumentParser documentParser) Loads matchingDocument
s from the specified directory.FileSystemDocumentLoader.loadDocuments
(String directoryPath) LoadsDocument
s from the specified directory.FileSystemDocumentLoader.loadDocuments
(String directoryPath, DocumentParser documentParser) LoadsDocument
s from the specified directory.FileSystemDocumentLoader.loadDocuments
(String directoryPath, PathMatcher pathMatcher) Loads matchingDocument
s from the specified directory.FileSystemDocumentLoader.loadDocuments
(String directoryPath, PathMatcher pathMatcher, DocumentParser documentParser) Loads matchingDocument
s from the specified directory.FileSystemDocumentLoader.loadDocuments
(Path directoryPath) LoadsDocument
s from the specified directory.FileSystemDocumentLoader.loadDocuments
(Path directoryPath, DocumentParser documentParser) LoadsDocument
s from the specified directory.FileSystemDocumentLoader.loadDocuments
(Path directoryPath, PathMatcher pathMatcher) Loads matchingDocument
s from the specified directory.FileSystemDocumentLoader.loadDocuments
(Path directoryPath, PathMatcher pathMatcher, DocumentParser documentParser) Loads matchingDocument
s from the specified directory.ClassPathDocumentLoader.loadDocumentsRecursively
(String directoryOnClasspath) Recursively loadsDocument
s from the specified directory and its subdirectories.ClassPathDocumentLoader.loadDocumentsRecursively
(String directoryOnClasspath, DocumentParser documentParser) Recursively loadsDocument
s from the specified directory and its subdirectories.ClassPathDocumentLoader.loadDocumentsRecursively
(String directoryOnClasspath, PathMatcher pathMatcher) Recursively loads matchingDocument
s from the specified directory and its subdirectories.ClassPathDocumentLoader.loadDocumentsRecursively
(String directoryOnClasspath, PathMatcher pathMatcher, DocumentParser documentParser) Recursively loads matchingDocument
s from the specified directory and its subdirectories.FileSystemDocumentLoader.loadDocumentsRecursively
(String directoryPath) Recursively loadsDocument
s from the specified directory and its subdirectories.FileSystemDocumentLoader.loadDocumentsRecursively
(String directoryPath, DocumentParser documentParser) Recursively loadsDocument
s from the specified directory and its subdirectories.FileSystemDocumentLoader.loadDocumentsRecursively
(String directoryPath, PathMatcher pathMatcher) Recursively loads matchingDocument
s from the specified directory and its subdirectories.FileSystemDocumentLoader.loadDocumentsRecursively
(String directoryPath, PathMatcher pathMatcher, DocumentParser documentParser) Recursively loads matchingDocument
s from the specified directory and its subdirectories.FileSystemDocumentLoader.loadDocumentsRecursively
(Path directoryPath) Recursively loadsDocument
s from the specified directory and its subdirectories.FileSystemDocumentLoader.loadDocumentsRecursively
(Path directoryPath, DocumentParser documentParser) Recursively loadsDocument
s from the specified directory and its subdirectories.FileSystemDocumentLoader.loadDocumentsRecursively
(Path directoryPath, PathMatcher pathMatcher) Recursively loads matchingDocument
s from the specified directory and its subdirectories.FileSystemDocumentLoader.loadDocumentsRecursively
(Path directoryPath, PathMatcher pathMatcher, DocumentParser documentParser) Recursively loads matchingDocument
s from the specified directory and its subdirectories. -
Uses of Document in dev.langchain4j.data.document.loader.amazon.s3
Methods in dev.langchain4j.data.document.loader.amazon.s3 that return DocumentModifier and TypeMethodDescriptionAmazonS3DocumentLoader.loadDocument
(String bucket, String key, DocumentParser parser) Loads a single document from the specified S3 bucket based on the specified object key.Methods in dev.langchain4j.data.document.loader.amazon.s3 that return types with arguments of type DocumentModifier and TypeMethodDescriptionAmazonS3DocumentLoader.loadDocuments
(String bucket, DocumentParser parser) Loads all documents from an S3 bucket.AmazonS3DocumentLoader.loadDocuments
(String bucket, String prefix, DocumentParser parser) Loads all documents from an S3 bucket. -
Uses of Document in dev.langchain4j.data.document.loader.azure.storage.blob
Methods in dev.langchain4j.data.document.loader.azure.storage.blob that return DocumentModifier and TypeMethodDescriptionAzureBlobStorageDocumentLoader.loadDocument
(String containerName, String blobName, DocumentParser parser) Methods in dev.langchain4j.data.document.loader.azure.storage.blob that return types with arguments of type DocumentModifier and TypeMethodDescriptionAzureBlobStorageDocumentLoader.loadDocuments
(String containerName, DocumentParser parser) -
Uses of Document in dev.langchain4j.data.document.loader.gcs
Methods in dev.langchain4j.data.document.loader.gcs that return DocumentModifier and TypeMethodDescriptionGoogleCloudStorageDocumentLoader.loadDocument
(String bucket, String objectName, DocumentParser parser) Loads a single document from the specified Google Cloud Storage bucket based on the specified object key.Methods in dev.langchain4j.data.document.loader.gcs that return types with arguments of type DocumentModifier and TypeMethodDescriptionGoogleCloudStorageDocumentLoader.loadDocuments
(String bucket, DocumentParser parser) Loads all documents from an GCS bucket.GoogleCloudStorageDocumentLoader.loadDocuments
(String bucket, String globPattern, DocumentParser parser) Load a list of documents from the specified bucket, filtered with a glob pattern. -
Uses of Document in dev.langchain4j.data.document.loader.github
Methods in dev.langchain4j.data.document.loader.github that return DocumentModifier and TypeMethodDescriptionGitHubDocumentLoader.loadDocument
(String owner, String repo, String branch, String path, DocumentParser parser) Methods in dev.langchain4j.data.document.loader.github that return types with arguments of type DocumentModifier and TypeMethodDescriptionGitHubDocumentLoader.loadDocuments
(String owner, String repo, String branch, DocumentParser parser) GitHubDocumentLoader.loadDocuments
(String owner, String repo, String branch, String path, DocumentParser parser) -
Uses of Document in dev.langchain4j.data.document.loader.selenium
Methods in dev.langchain4j.data.document.loader.selenium that return DocumentModifier and TypeMethodDescriptionSeleniumDocumentLoader.load
(String url, DocumentParser documentParser) Loads a document from the specified URL. -
Uses of Document in dev.langchain4j.data.document.loader.tencent.cos
Methods in dev.langchain4j.data.document.loader.tencent.cos that return DocumentModifier and TypeMethodDescriptionTencentCosDocumentLoader.loadDocument
(String bucket, String key, DocumentParser parser) Loads a single document from the specified COS bucket based on the specified object key.Methods in dev.langchain4j.data.document.loader.tencent.cos that return types with arguments of type DocumentModifier and TypeMethodDescriptionTencentCosDocumentLoader.loadDocuments
(String bucket, DocumentParser parser) Loads all documents from an COS bucket.TencentCosDocumentLoader.loadDocuments
(String bucket, String prefix, DocumentParser parser) Loads all documents from an COS bucket. -
Uses of Document in dev.langchain4j.data.document.parser
Methods in dev.langchain4j.data.document.parser that return Document -
Uses of Document in dev.langchain4j.data.document.parser.apache.pdfbox
Methods in dev.langchain4j.data.document.parser.apache.pdfbox that return Document -
Uses of Document in dev.langchain4j.data.document.parser.apache.poi
Methods in dev.langchain4j.data.document.parser.apache.poi that return Document -
Uses of Document in dev.langchain4j.data.document.parser.apache.tika
Methods in dev.langchain4j.data.document.parser.apache.tika that return Document -
Uses of Document in dev.langchain4j.data.document.splitter
Methods in dev.langchain4j.data.document.splitter with parameters of type DocumentModifier and TypeMethodDescription -
Uses of Document in dev.langchain4j.data.document.transformer.jsoup
Methods in dev.langchain4j.data.document.transformer.jsoup that return DocumentModifier and TypeMethodDescriptionMethods in dev.langchain4j.data.document.transformer.jsoup with parameters of type Document -
Uses of Document in dev.langchain4j.rag.content.retriever.azure.search
Methods in dev.langchain4j.rag.content.retriever.azure.search with parameters of type Document -
Uses of Document in dev.langchain4j.store.embedding
Methods in dev.langchain4j.store.embedding with parameters of type DocumentModifier and TypeMethodDescriptionIngests a specified document into anEmbeddingStore
that was specified during the creation of thisEmbeddingStoreIngestor
.Ingests specified documents into anEmbeddingStore
that was specified during the creation of thisEmbeddingStoreIngestor
.static IngestionResult
EmbeddingStoreIngestor.ingest
(Document document, EmbeddingStore<TextSegment> embeddingStore) Ingests a specifiedDocument
into a specifiedEmbeddingStore
.Method parameters in dev.langchain4j.store.embedding with type arguments of type DocumentModifier and TypeMethodDescriptionIngests specified documents into anEmbeddingStore
that was specified during the creation of thisEmbeddingStoreIngestor
.static IngestionResult
EmbeddingStoreIngestor.ingest
(List<Document> documents, EmbeddingStore<TextSegment> embeddingStore) Ingests specifiedDocument
s into a specifiedEmbeddingStore
. -
Uses of Document in dev.langchain4j.web.search
Methods in dev.langchain4j.web.search that return DocumentModifier and TypeMethodDescriptionWebSearchOrganicResult.toDocument()
Converts this WebSearchOrganicResult to a Document.Methods in dev.langchain4j.web.search that return types with arguments of type DocumentModifier and TypeMethodDescriptionWebSearchResults.toDocuments()
Converts the organic search results to a list of documents.