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: models/spring-ai-bedrock/src/main/java/org/springframework/ai/bedrock/cohere/api/CohereEmbeddingBedrockApi.java
* In search use-cases, use search_document when you encode documents for embeddings that you store in a
172
-
* vector database.
175
+
* In search use-cases, use search_document when you encode documents for
176
+
* embeddings that you store in a vector database.
173
177
*/
174
178
@JsonProperty("search_document")
175
179
SEARCH_DOCUMENT,
@@ -188,12 +192,17 @@ public enum InputType {
188
192
*/
189
193
@JsonProperty("clustering")
190
194
CLUSTERING
195
+
191
196
}
192
197
193
198
/**
194
-
* Specifies how the API handles inputs longer than the maximum token length. Passing START will discard the start of the input. END will discard the end of the input. In both cases, input is discarded until the remaining input is exactly the maximum input token length for the model.
199
+
* Specifies how the API handles inputs longer than the maximum token length.
200
+
* Passing START will discard the start of the input. END will discard the end of
201
+
* the input. In both cases, input is discarded until the remaining input is
202
+
* exactly the maximum input token length for the model.
195
203
*/
196
204
publicenumTruncate {
205
+
197
206
/**
198
207
* Returns an error when the input exceeds the maximum input token length.
199
208
*/
@@ -206,29 +215,30 @@ public enum Truncate {
206
215
* (default) Discards the end of the input.
207
216
*/
208
217
END
218
+
209
219
}
210
220
}
211
221
212
222
/**
213
223
* Cohere Embedding response.
214
224
*
215
225
* @param id An identifier for the response.
216
-
* @param embeddings An array of embeddings, where each embedding is an array of floats with 1024 elements. The
217
-
* length of the embeddings array will be the same as the length of the original texts array.
218
-
* @param texts An array containing the text entries for which embeddings were returned.
226
+
* @param embeddings An array of embeddings, where each embedding is an array of
227
+
* floats with 1024 elements. The length of the embeddings array will be the same as
228
+
* the length of the original texts array.
229
+
* @param texts An array containing the text entries for which embeddings were
230
+
* returned.
219
231
* @param responseType The type of the response. The value is always embeddings.
220
-
* @param amazonBedrockInvocationMetrics Bedrock invocation metrics. Currently bedrock doesn't return
221
-
* invocationMetrics for the cohere embedding model.
232
+
* @param amazonBedrockInvocationMetrics Bedrock invocation metrics. Currently bedrock
233
+
* doesn't return invocationMetrics for the cohere embedding model.
Copy file name to clipboardExpand all lines: models/spring-ai-bedrock/src/test/java/org/springframework/ai/bedrock/cohere/BedrockCohereEmbeddingModelIT.java
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -169,7 +169,7 @@ public static class TestConfiguration {
Copy file name to clipboardExpand all lines: models/spring-ai-bedrock/src/test/java/org/springframework/ai/bedrock/cohere/api/CohereEmbeddingBedrockApiIT.java
Copy file name to clipboardExpand all lines: spring-ai-spring-boot-autoconfigure/src/main/java/org/springframework/ai/autoconfigure/bedrock/cohere/BedrockCohereEmbeddingProperties.java
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -43,7 +43,7 @@ public class BedrockCohereEmbeddingProperties {
43
43
* Bedrock Cohere Embedding generative name. Defaults to
Copy file name to clipboardExpand all lines: spring-ai-spring-boot-autoconfigure/src/test/java/org/springframework/ai/autoconfigure/bedrock/cohere/BedrockCohereEmbeddingAutoConfigurationIT.java
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -44,7 +44,7 @@ public class BedrockCohereEmbeddingAutoConfigurationIT {
0 commit comments