public interface EmbeddingModel
Modifier and Type | Method and Description |
---|---|
default Response<Embedding> |
embed(String text)
Embed a text.
|
default Response<Embedding> |
embed(TextSegment textSegment)
Embed the text content of a TextSegment.
|
Response<List<Embedding>> |
embedAll(List<TextSegment> textSegments)
Embeds the text content of a list of TextSegments.
|
default Response<Embedding> embed(String text)
text
- the text to embed.default Response<Embedding> embed(TextSegment textSegment)
textSegment
- the text segment to embed.Response<List<Embedding>> embedAll(List<TextSegment> textSegments)
textSegments
- the text segments to embed.Copyright © 2024. All rights reserved.