Modifier and Type | Method and Description |
---|---|
TextSegment |
Document.toTextSegment() |
Modifier and Type | Method and Description |
---|---|
List<TextSegment> |
DocumentSplitter.split(Document document) |
default List<TextSegment> |
DocumentSplitter.split(List<Document> documents) |
Modifier and Type | Method and Description |
---|---|
static TextSegment |
TextSegment.from(String text) |
static TextSegment |
TextSegment.from(String text,
Metadata metadata) |
static TextSegment |
TextSegment.textSegment(String text) |
static TextSegment |
TextSegment.textSegment(String text,
Metadata metadata) |
Modifier and Type | Method and Description |
---|---|
int |
TokenCountEstimator.estimateTokenCount(TextSegment textSegment) |
Modifier and Type | Method and Description |
---|---|
Result<Embedding> |
EmbeddingModel.embed(TextSegment textSegment) |
int |
TokenCountEstimator.estimateTokenCount(TextSegment textSegment) |
Modifier and Type | Method and Description |
---|---|
Result<List<Embedding>> |
EmbeddingModel.embedAll(List<TextSegment> textSegments) |
int |
TokenCountEstimator.estimateTokenCount(List<TextSegment> textSegments) |
Modifier and Type | Method and Description |
---|---|
int |
TokenCountEstimator.estimateTokenCount(TextSegment textSegment) |
Modifier and Type | Method and Description |
---|---|
Result<Moderation> |
ModerationModel.moderate(TextSegment textSegment) |
Copyright © 2023. All rights reserved.