Uses of Interface
dev.langchain4j.data.document.Document
Packages that use Document
Package
Description
-
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.default List
<TextSegment> Splits multipleDocument
instances into a list ofTextSegment
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.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.