Skip to content

Commit 989b083

Browse files
committed
example: embedding use typeDocument as default value
1 parent fabee62 commit 989b083

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

example/embedding/main.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ func main() {
2424
req := &embedding.Request{
2525
Model: model,
2626
Params: embedding.Params{
27-
TextType: embedding.TypeQuery,
27+
TextType: embedding.TypeDocument, // 默认值
2828
},
2929
Input: embedding.Input{
3030
Texts: textInputs,

0 commit comments

Comments
 (0)