You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/core_docs/docs/integrations/text_embedding/voyageai.mdx
+11Lines changed: 11 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -8,12 +8,23 @@ The `inputType` parameter allows you to specify the type of input text for bette
8
8
-`document`: Use this for documents or content that you want to be retrievable. Voyage AI will prepend a prompt to optimize the embeddings for document use cases.
9
9
-`None` (default): The input text will be directly encoded without any additional prompt.
10
10
11
+
Additionally, the class supports new parameters for further customization of the embedding process:
12
+
13
+
-**truncation**: Whether to truncate the input texts to the maximum length allowed by the model.
14
+
-**outputDimension**: The desired dimension of the output embeddings.
15
+
-**outputDtype**: The data type of the output embeddings. Can be `"float"` or `"int8"`.
16
+
-**encodingFormat**: The format of the output embeddings. Can be `"float"`, `"base64"`, or `"ubinary"`.
0 commit comments