Uses of Class
dev.langchain4j.data.document.Document
Package
Description
-
Uses of Document in dev.langchain4j.classification
Modifier 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
Modifier 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.Modifier and TypeMethodDescriptionDocumentTransformer.transformAll
(List<Document> documents) Transforms all the provided documents.Modifier and TypeMethodDescriptionSplits a single Document into a list of TextSegment objects.Transforms a provided document.Modifier 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
Modifier 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
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) Modifier and TypeMethodDescriptionFileSystemDocumentLoader.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.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
Modifier and TypeMethodDescriptionAmazonS3DocumentLoader.loadDocument
(String bucket, String key, DocumentParser parser) Loads a single document from the specified S3 bucket based on the specified object key.Modifier 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
Modifier and TypeMethodDescriptionAzureBlobStorageDocumentLoader.loadDocument
(String containerName, String blobName, DocumentParser parser) Modifier and TypeMethodDescriptionAzureBlobStorageDocumentLoader.loadDocuments
(String containerName, DocumentParser parser) -
Uses of Document in dev.langchain4j.data.document.loader.gcs
Modifier 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.Modifier 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
Modifier and TypeMethodDescriptionGitHubDocumentLoader.loadDocument
(String owner, String repo, String branch, String path, DocumentParser parser) Modifier 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
Modifier 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
Modifier and TypeMethodDescriptionTencentCosDocumentLoader.loadDocument
(String bucket, String key, DocumentParser parser) Loads a single document from the specified COS bucket based on the specified object key.Modifier 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
-
Uses of Document in dev.langchain4j.data.document.parser.apache.pdfbox
-
Uses of Document in dev.langchain4j.data.document.parser.apache.poi
-
Uses of Document in dev.langchain4j.data.document.parser.apache.tika
-
Uses of Document in dev.langchain4j.data.document.splitter
Modifier and TypeMethodDescription -
Uses of Document in dev.langchain4j.data.document.transformer.jsoup
Modifier and TypeMethodDescription -
Uses of Document in dev.langchain4j.rag.content.retriever.azure.search
-
Uses of Document in dev.langchain4j.store.embedding
Modifier 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
.Modifier 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
Modifier and TypeMethodDescriptionWebSearchOrganicResult.toDocument()
Converts this WebSearchOrganicResult to a Document.Modifier and TypeMethodDescriptionWebSearchResults.toDocuments()
Converts the organic search results to a list of documents.