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
| model_provider | enum | yes | - | The model provider for embedding. Options may include `QIANFAN`, `OPENAI`, etc. |
16
+
| api_key | string | yes | - | The API key required to authenticate with the embedding service. |
17
+
| secret_key | string | yes | - | The secret key required for additional authentication with the embedding service. |
18
+
| single_vectorized_input_number | int | no | 1 | The number of inputs vectorized in one request. Default is 1. |
19
+
| vectorization_fields | map | yes | - | A mapping between input fields and their corresponding output vector fields. |
20
+
| model | string | yes | - | The specific model to use for embedding (e.g: `text-embedding-3-small` for OPENAI). |
21
+
| api_path | string | no | - | The API endpoint for the embedding service. Typically provided by the model provider. |
22
+
| dimension | int | no | - | TThe vector dimension defaults to 2048. The Embedding-3 model supports custom vector dimensions, and it is recommended to choose dimensions of 256, 512, 1024, or 2048. |
23
+
| oauth_path | string | no | - | The API endpoint for the oauth service. |
24
+
| custom_config | map | no || Custom configurations for the model. |
25
+
| custom_response_parse | string | no || Specifies how to parse the response from the model using JsonPath. Example: `$.choices[*].message.content`. |
26
+
| custom_request_headers | map | no || Custom headers for the request to the model. |
27
+
| custom_request_body | map | no || Custom body for the request. Supports placeholders like `${model}`, `${input}`. |
Copy file name to clipboardExpand all lines: seatunnel-transforms-v2/src/main/java/org/apache/seatunnel/transform/nlpmodel/embedding/EmbeddingTransform.java
Copy file name to clipboardExpand all lines: seatunnel-transforms-v2/src/main/java/org/apache/seatunnel/transform/nlpmodel/embedding/EmbeddingTransformFactory.java
+4
Original file line number
Diff line number
Diff line change
@@ -62,6 +62,10 @@ public OptionRule optionRule() {
Copy file name to clipboardExpand all lines: seatunnel-transforms-v2/src/main/java/org/apache/seatunnel/transform/nlpmodel/embedding/remote/AbstractModel.java
Copy file name to clipboardExpand all lines: seatunnel-transforms-v2/src/main/java/org/apache/seatunnel/transform/nlpmodel/embedding/remote/custom/CustomModel.java
Copy file name to clipboardExpand all lines: seatunnel-transforms-v2/src/main/java/org/apache/seatunnel/transform/nlpmodel/embedding/remote/doubao/DoubaoModel.java
0 commit comments