Class MultiModalEmbeddingParam.MultiModalEmbeddingParamBuilder<C extends MultiModalEmbeddingParam,B extends MultiModalEmbeddingParam.MultiModalEmbeddingParamBuilder<C,B>>
java.lang.Object
com.alibaba.dashscope.legacy_2x.base.HalfDuplexParamBase.HalfDuplexParamBaseBuilder<C,B>
com.alibaba.dashscope.legacy_2x.base.HalfDuplexServiceParam.HalfDuplexServiceParamBuilder<C,B>
com.alibaba.dashscope.legacy_2x.embeddings.MultiModalEmbeddingParam.MultiModalEmbeddingParamBuilder<C,B>
- Enclosing class:
- MultiModalEmbeddingParam
public abstract static class MultiModalEmbeddingParam.MultiModalEmbeddingParamBuilder<C extends MultiModalEmbeddingParam,B extends MultiModalEmbeddingParam.MultiModalEmbeddingParamBuilder<C,B>>
extends HalfDuplexServiceParam.HalfDuplexServiceParamBuilder<C,B>
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract Cbuild()contents(@NonNull List<MultiModalEmbeddingItemBase> contents) The output vector dimensions.enableFusion(Boolean enableFusion) Only applicable to qwen3-vl-embedding.The video frame extraction ratio, in range [0, 1].Custom task instruction to guide model understanding of query intent.maxVideoFrames(Integer maxVideoFrames) The maximum number of frames extracted from the input video.outputType(String outputType) The output vector format.The resolution level of the input images/videos.protected abstract Bself()toString()Methods inherited from class com.alibaba.dashscope.legacy_2x.base.HalfDuplexServiceParam.HalfDuplexServiceParamBuilder
model, resourcesMethods inherited from class com.alibaba.dashscope.legacy_2x.base.HalfDuplexParamBase.HalfDuplexParamBaseBuilder
apiKey, clearHeaders, clearParameters, enableEncrypt, header, headers, parameter, parameters, securityCheck, workspace
-
Constructor Details
-
MultiModalEmbeddingParamBuilder
public MultiModalEmbeddingParamBuilder()
-
-
Method Details
-
contents
- Returns:
this.
-
dimension
The output vector dimensions. Supported values vary by model. For example, multimodal-embedding-v1 outputs 1024-dimension vectors only and ignores this parameter, while tongyi-embedding-vision-plus supports multiple dimensions (1152 by default).- Returns:
this.
-
outputType
The output vector format. Currently only "dense" is supported.- Returns:
this.
-
fps
The video frame extraction ratio, in range [0, 1]. Default: 1.0.- Returns:
this.
-
instruct
Custom task instruction to guide model understanding of query intent.- Returns:
this.
-
enableFusion
Only applicable to qwen3-vl-embedding. When true, all contents are fused into a single vector.- Returns:
this.
-
resLevel
The resolution level of the input images/videos.- Returns:
this.
-
maxVideoFrames
The maximum number of frames extracted from the input video.- Returns:
this.
-
self
- Specified by:
selfin classHalfDuplexServiceParam.HalfDuplexServiceParamBuilder<C extends MultiModalEmbeddingParam,B extends MultiModalEmbeddingParam.MultiModalEmbeddingParamBuilder<C, B>>
-
build
- Specified by:
buildin classHalfDuplexServiceParam.HalfDuplexServiceParamBuilder<C extends MultiModalEmbeddingParam,B extends MultiModalEmbeddingParam.MultiModalEmbeddingParamBuilder<C, B>>
-
toString
- Overrides:
toStringin classHalfDuplexServiceParam.HalfDuplexServiceParamBuilder<C extends MultiModalEmbeddingParam,B extends MultiModalEmbeddingParam.MultiModalEmbeddingParamBuilder<C, B>>
-