Package | Description |
---|---|
dev.langchain4j.classification | |
dev.langchain4j.data.document | |
dev.langchain4j.store.embedding |
Modifier and Type | Method and Description |
---|---|
default List<E> |
TextClassifier.classify(Document document)
Classify the given
Document . |
Modifier and Type | Method and Description |
---|---|
static Document |
Document.document(String text)
Creates a new Document from the given text.
|
static Document |
Document.document(String text,
Metadata metadata)
Creates a new Document from the given text.
|
static Document |
Document.from(String text)
Creates a new Document from the given text.
|
static Document |
Document.from(String text,
Metadata metadata)
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.
|
Document |
DocumentParser.parse(InputStream inputStream)
Parses an InputStream into a Document.
|
Document |
DocumentTransformer.transform(Document document)
Transforms a provided document.
|
Modifier and Type | Method and Description |
---|---|
default List<Document> |
DocumentTransformer.transformAll(List<Document> documents)
Transforms all the provided documents.
|
Modifier and Type | Method and Description |
---|---|
List<TextSegment> |
DocumentSplitter.split(Document document)
Splits a single Document into a list of TextSegment objects.
|
Document |
DocumentTransformer.transform(Document document)
Transforms a provided document.
|
Modifier and Type | Method and Description |
---|---|
default List<TextSegment> |
DocumentSplitter.splitAll(List<Document> documents)
Splits a list of Documents into a list of TextSegment objects.
|
default List<Document> |
DocumentTransformer.transformAll(List<Document> documents)
Transforms all the provided documents.
|
Modifier and Type | Method and Description |
---|---|
void |
EmbeddingStoreIngestor.ingest(Document... documents)
Ingests multiple documents.
|
void |
EmbeddingStoreIngestor.ingest(Document document)
Ingests a single document.
|
Modifier and Type | Method and Description |
---|---|
void |
EmbeddingStoreIngestor.ingest(List<Document> documents)
Ingests multiple documents.
|
Copyright © 2024. All rights reserved.