类 DisabledEmbeddingModel
java.lang.Object
dev.langchain4j.model.embedding.DisabledEmbeddingModel
- 所有已实现的接口:
EmbeddingModel
An
EmbeddingModel which throws a ModelDisabledException for all of its methods
This could be used in tests, or in libraries that extend this one to conditionally enable or disable functionality.
-
构造器详细资料
-
DisabledEmbeddingModel
public DisabledEmbeddingModel()
-
-
方法详细资料
-
embed
从接口复制的说明:EmbeddingModelEmbed a text.- 指定者:
embed在接口中EmbeddingModel- 参数:
text- the text to embed.- 返回:
- the embedding.
-
embed
从接口复制的说明:EmbeddingModelEmbed the text content of a TextSegment.- 指定者:
embed在接口中EmbeddingModel- 参数:
textSegment- the text segment to embed.- 返回:
- the embedding.
-
embedAll
从接口复制的说明:EmbeddingModelEmbeds the text content of a list of TextSegments.- 指定者:
embedAll在接口中EmbeddingModel- 参数:
textSegments- the text segments to embed.- 返回:
- the embeddings.
-