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 DocumentCreates a new Document from the given text.static DocumentCreates a new Document from the given text.static DocumentCreates a new Document from the given text.static DocumentCreates a new Document from the given text.static DocumentDocumentLoader.load(DocumentSource source, DocumentParser parser) Loads a document from the given source using the given parser.DocumentParser.parse(InputStream inputStream) Parses a givenInputStreaminto 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 multipleDocumentinstances into a list ofTextSegmentobjects.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 anEmbeddingStorethat was specified during the creation of thisEmbeddingStoreIngestor.Ingests specified documents into anEmbeddingStorethat was specified during the creation of thisEmbeddingStoreIngestor.static IngestionResultEmbeddingStoreIngestor.ingest(Document document, EmbeddingStore<TextSegment> embeddingStore) Ingests a specifiedDocumentinto a specifiedEmbeddingStore.Method parameters in dev.langchain4j.store.embedding with type arguments of type DocumentModifier and TypeMethodDescriptionIngests specified documents into anEmbeddingStorethat was specified during the creation of thisEmbeddingStoreIngestor.static IngestionResultEmbeddingStoreIngestor.ingest(List<Document> documents, EmbeddingStore<TextSegment> embeddingStore) Ingests specifiedDocuments 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.