类的使用
dev.langchain4j.data.document.Document
使用Document的程序包
程序包
说明
-
dev.langchain4j.classification中Document的使用
参数类型为Document的dev.langchain4j.classification中的方法 -
dev.langchain4j.data.document中Document的使用
修饰符和类型方法说明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 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.返回变量类型为Document的类型的dev.langchain4j.data.document中的方法修饰符和类型方法说明DocumentTransformer.transformAll(List<Document> documents) Transforms all the provided documents.参数类型为Document的dev.langchain4j.data.document中的方法修饰符和类型方法说明Splits a single Document into a list of TextSegment objects.Transforms a provided document.类型变量类型为Document的dev.langchain4j.data.document中的方法参数修饰符和类型方法说明default List<TextSegment>Splits a list of Documents into a list of TextSegment objects.DocumentTransformer.transformAll(List<Document> documents) Transforms all the provided documents. -
dev.langchain4j.store.embedding中Document的使用
参数类型为Document的dev.langchain4j.store.embedding中的方法修饰符和类型方法说明voidIngests a specified document into anEmbeddingStorethat was specified during the creation of thisEmbeddingStoreIngestor.voidIngests specified documents into anEmbeddingStorethat was specified during the creation of thisEmbeddingStoreIngestor.static voidEmbeddingStoreIngestor.ingest(Document document, EmbeddingStore<TextSegment> embeddingStore) Ingests a specifiedDocumentinto a specifiedEmbeddingStore.类型变量类型为Document的dev.langchain4j.store.embedding中的方法参数修饰符和类型方法说明voidIngests specified documents into anEmbeddingStorethat was specified during the creation of thisEmbeddingStoreIngestor.static voidEmbeddingStoreIngestor.ingest(List<Document> documents, EmbeddingStore<TextSegment> embeddingStore) Ingests specifiedDocuments into a specifiedEmbeddingStore. -
dev.langchain4j.web.search中Document的使用
修饰符和类型方法说明WebSearchOrganicResult.toDocument()Converts this WebSearchOrganicResult to a Document.返回变量类型为Document的类型的dev.langchain4j.web.search中的方法修饰符和类型方法说明WebSearchResults.toDocuments()Converts the organic search results to a list of documents.