Modifier and Type | Method and Description |
---|---|
default List<E> |
TextClassifier.classify(TextSegment textSegment)
Classify the given
TextSegment . |
Modifier and Type | Method and Description |
---|---|
TextSegment |
Document.toTextSegment()
Builds a TextSegment from this document.
|
Modifier and Type | Method and Description |
---|---|
List<TextSegment> |
DocumentSplitter.split(Document document)
Splits a single Document into a list of TextSegment objects.
|
default List<TextSegment> |
DocumentSplitter.splitAll(List<Document> documents)
Splits a list of Documents into a list of TextSegment objects.
|
Modifier and Type | Method and Description |
---|---|
static TextSegment |
TextSegment.from(String text)
Creates a new text segment.
|
static TextSegment |
TextSegment.from(String text,
Metadata metadata)
Creates a new text segment.
|
static TextSegment |
TextSegment.textSegment(String text)
Creates a new text segment.
|
static TextSegment |
TextSegment.textSegment(String text,
Metadata metadata)
Creates a new text segment.
|
TextSegment |
TextSegmentTransformer.transform(TextSegment segment)
Transforms a provided segment.
|
Modifier and Type | Method and Description |
---|---|
default List<TextSegment> |
TextSegmentTransformer.transformAll(List<TextSegment> segments)
Transforms all the provided segments.
|
Modifier and Type | Method and Description |
---|---|
TextSegment |
TextSegmentTransformer.transform(TextSegment segment)
Transforms a provided segment.
|
Modifier and Type | Method and Description |
---|---|
default List<TextSegment> |
TextSegmentTransformer.transformAll(List<TextSegment> segments)
Transforms all the provided segments.
|
Modifier and Type | Method and Description |
---|---|
default int |
TokenCountEstimator.estimateTokenCount(TextSegment textSegment)
Estimates the count of tokens in the specified text segment.
|
Modifier and Type | Method and Description |
---|---|
default Response<Embedding> |
EmbeddingModel.embed(TextSegment textSegment)
Embed the text content of a TextSegment.
|
default int |
TokenCountEstimator.estimateTokenCount(TextSegment textSegment)
Estimates the count of tokens in the given text segment.
|
Modifier and Type | Method and Description |
---|---|
Response<List<Embedding>> |
EmbeddingModel.embedAll(List<TextSegment> textSegments)
Embeds the text content of a list of TextSegments.
|
default int |
TokenCountEstimator.estimateTokenCount(List<TextSegment> textSegments)
Estimates the count of tokens in the given text segments.
|
Modifier and Type | Method and Description |
---|---|
default int |
TokenCountEstimator.estimateTokenCount(TextSegment textSegment)
Estimates the count of tokens in the given text segment.
|
Modifier and Type | Method and Description |
---|---|
default Response<Moderation> |
ModerationModel.moderate(TextSegment textSegment)
Moderates the given text segment.
|
Modifier and Type | Method and Description |
---|---|
default Response<Double> |
ScoringModel.score(TextSegment segment,
String query)
Scores a given
TextSegment against a given query. |
Modifier and Type | Method and Description |
---|---|
Response<List<Double>> |
ScoringModel.scoreAll(List<TextSegment> segments,
String query)
Scores all provided
TextSegment s against a given query. |
Modifier and Type | Method and Description |
---|---|
TextSegment |
Content.textSegment() |
Modifier and Type | Method and Description |
---|---|
static Content |
Content.from(TextSegment textSegment) |
Constructor and Description |
---|
Content(TextSegment textSegment) |
Modifier and Type | Method and Description |
---|---|
protected List<TextSegment> |
ReRankingContentAggregator.reRankAndFilter(List<Content> contents,
Query query) |
Constructor and Description |
---|
EmbeddingStoreContentRetriever(EmbeddingStore<TextSegment> embeddingStore,
EmbeddingModel embeddingModel) |
EmbeddingStoreContentRetriever(EmbeddingStore<TextSegment> embeddingStore,
EmbeddingModel embeddingModel,
int maxResults) |
EmbeddingStoreContentRetriever(EmbeddingStore<TextSegment> embeddingStore,
EmbeddingModel embeddingModel,
Integer maxResults,
Double minScore) |
Modifier and Type | Method and Description |
---|---|
EmbeddingStoreIngestor.Builder |
EmbeddingStoreIngestor.Builder.embeddingStore(EmbeddingStore<TextSegment> embeddingStore)
Sets the embedding store.
|
Constructor and Description |
---|
EmbeddingStoreIngestor(DocumentTransformer documentTransformer,
DocumentSplitter documentSplitter,
TextSegmentTransformer textSegmentTransformer,
EmbeddingModel embeddingModel,
EmbeddingStore<TextSegment> embeddingStore)
Creates a new EmbeddingStoreIngestor.
|
Copyright © 2024. All rights reserved.