mirror of
https://gitee.com/milvus-io/milvus.git
synced 2026-01-07 19:31:51 +08:00
fix: fix voyageai model int8 bug (#46819)
https://github.com/milvus-io/milvus/issues/46815 Signed-off-by: junjie.jiang <junjie.jiang@zilliz.com>
This commit is contained in:
parent
53a300db83
commit
537199fb80
@ -128,10 +128,11 @@ func (c *voyageAIEmbedding) embedding(modelName string, texts []string, dim int,
|
||||
return nil, fmt.Errorf("Voyageai: unsupport output type: [%s], only support float and int8", outputType)
|
||||
}
|
||||
r := EmbeddingRequest{
|
||||
Model: modelName,
|
||||
Input: texts,
|
||||
InputType: textType,
|
||||
Truncation: truncation,
|
||||
Model: modelName,
|
||||
Input: texts,
|
||||
InputType: textType,
|
||||
Truncation: truncation,
|
||||
OutputDtype: outputType,
|
||||
}
|
||||
if dim != 0 {
|
||||
r.OutputDimension = int64(dim)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user