| 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) |
static Document |
Document.document(String text,
Metadata metadata) |
static Document |
Document.from(String text) |
static Document |
Document.from(String text,
Metadata metadata) |
static Document |
DocumentLoader.load(DocumentSource source,
DocumentParser 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) |
void |
EmbeddingStoreIngestor.ingest(Document document) |
| Modifier and Type | Method and Description |
|---|---|
void |
EmbeddingStoreIngestor.ingest(List<Document> documents) |
Copyright © 2023. All rights reserved.