| Package | Description |
|---|---|
| dev.langchain4j.data.document | |
| dev.langchain4j.model.chat | |
| dev.langchain4j.model.embedding | |
| dev.langchain4j.model.language | |
| dev.langchain4j.model.moderation |
| Modifier and Type | Method and Description |
|---|---|
static DocumentSegment |
DocumentSegment.documentSegment(String text) |
static DocumentSegment |
DocumentSegment.documentSegment(String text,
Metadata metadata) |
static DocumentSegment |
DocumentSegment.from(String text) |
static DocumentSegment |
DocumentSegment.from(String text,
Metadata metadata) |
DocumentSegment |
Document.toDocumentSegment() |
| Modifier and Type | Method and Description |
|---|---|
List<DocumentSegment> |
DocumentSplitter.split(Document document) |
| Modifier and Type | Method and Description |
|---|---|
int |
TokenCountEstimator.estimateTokenCount(DocumentSegment documentSegment) |
| Modifier and Type | Method and Description |
|---|---|
Result<Embedding> |
EmbeddingModel.embed(DocumentSegment documentSegment) |
int |
TokenCountEstimator.estimateTokenCount(DocumentSegment documentSegment) |
| Modifier and Type | Method and Description |
|---|---|
Result<List<Embedding>> |
EmbeddingModel.embedAll(List<DocumentSegment> documentSegments) |
int |
TokenCountEstimator.estimateTokenCount(List<DocumentSegment> documentSegments) |
| Modifier and Type | Method and Description |
|---|---|
int |
TokenCountEstimator.estimateTokenCount(DocumentSegment documentSegment) |
| Modifier and Type | Method and Description |
|---|---|
Result<Moderation> |
ModerationModel.moderate(DocumentSegment documentSegment) |
Copyright © 2023. All rights reserved.