This is an automated email from the ASF dual-hosted git repository.
acosentino pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/camel.git
The following commit(s) were added to refs/heads/main by this push:
new 89ded2b6060 Camel-Pinecone: Refine metadata (#14090)
89ded2b6060 is described below
commit 89ded2b606062e372a8dbcbc20ae3082552ab4a5
Author: Andrea Cosentino <[email protected]>
AuthorDate: Thu May 9 10:52:30 2024 +0200
Camel-Pinecone: Refine metadata (#14090)
Signed-off-by: Andrea Cosentino <[email protected]>
---
.../resources/org/apache/camel/catalog/components/pinecone.json | 2 +-
.../META-INF/org/apache/camel/component/pinecone/pinecone.json | 2 +-
.../main/java/org/apache/camel/component/pinecone/PineconeVectorDb.java | 2 +-
3 files changed, 3 insertions(+), 3 deletions(-)
diff --git
a/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/components/pinecone.json
b/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/components/pinecone.json
index 82e43374d94..3802f1993b6 100644
---
a/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/components/pinecone.json
+++
b/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/components/pinecone.json
@@ -36,7 +36,7 @@
"CamelPineconeIndexPodType": { "index": 4, "kind": "header",
"displayName": "", "group": "producer", "label": "", "required": false,
"javaType": "String", "deprecated": false, "deprecationNote": "", "autowired":
false, "secret": false, "description": "Index Pod Type", "constantName":
"org.apache.camel.component.pinecone.PineconeVectorDb$Headers#INDEX_POD_TYPE" },
"CamelPineconeIndexPodEnvironment": { "index": 5, "kind": "header",
"displayName": "", "group": "producer", "label": "", "required": false,
"javaType": "String", "deprecated": false, "deprecationNote": "", "autowired":
false, "secret": false, "description": "Index Pod Environment", "constantName":
"org.apache.camel.component.pinecone.PineconeVectorDb$Headers#INDEX_POD_ENVIRONMENT"
},
"CamelPineconeCollectionName": { "index": 6, "kind": "header",
"displayName": "", "group": "producer", "label": "", "required": false,
"javaType": "String", "deprecated": false, "deprecationNote": "", "autowired":
false, "secret": false, "description": "Collection Name for Insert\/Upsert
operation", "constantName":
"org.apache.camel.component.pinecone.PineconeVectorDb$Headers#COLLECTION_NAME"
},
- "CamelPineconeCollectionSimilarityMetric": { "index": 7, "kind": "header",
"displayName": "", "group": "producer", "label": "", "required": false,
"javaType": "String", "deprecated": false, "deprecationNote": "", "autowired":
false, "secret": false, "description": "Collection Similarity Metric",
"constantName":
"org.apache.camel.component.pinecone.PineconeVectorDb$Headers#COLLECTION_SIMILARITY_METRIC"
},
+ "CamelPineconeCollectionSimilarityMetric": { "index": 7, "kind": "header",
"displayName": "", "group": "producer", "label": "", "required": false,
"javaType": "String", "enum": [ "cosine", "euclidean", "dotproduct" ],
"deprecated": false, "deprecationNote": "", "autowired": false, "secret":
false, "description": "Collection Similarity Metric", "constantName":
"org.apache.camel.component.pinecone.PineconeVectorDb$Headers#COLLECTION_SIMILARITY_METRIC"
},
"CamelPineconeCollectionDimension": { "index": 8, "kind": "header",
"displayName": "", "group": "producer", "label": "", "required": false,
"javaType": "int", "deprecated": false, "deprecationNote": "", "autowired":
false, "secret": false, "description": "Collection Dimension", "constantName":
"org.apache.camel.component.pinecone.PineconeVectorDb$Headers#COLLECTION_DIMENSION"
},
"CamelPineconeCollectionCloud": { "index": 9, "kind": "header",
"displayName": "", "group": "producer", "label": "", "required": false,
"javaType": "String", "enum": [ "aws", "gcp", "azure" ], "deprecated": false,
"deprecationNote": "", "autowired": false, "secret": false, "description":
"Collection Cloud Vendor", "constantName":
"org.apache.camel.component.pinecone.PineconeVectorDb$Headers#COLLECTION_CLOUD"
},
"CamelPineconeCollectionCloudRegion": { "index": 10, "kind": "header",
"displayName": "", "group": "producer", "label": "", "required": false,
"javaType": "String", "enum": [ "aws", "gcp", "azure" ], "deprecated": false,
"deprecationNote": "", "autowired": false, "secret": false, "description":
"Collection Cloud Vendor Region", "constantName":
"org.apache.camel.component.pinecone.PineconeVectorDb$Headers#COLLECTION_CLOUD_REGION"
},
diff --git
a/components/camel-pinecone/src/generated/resources/META-INF/org/apache/camel/component/pinecone/pinecone.json
b/components/camel-pinecone/src/generated/resources/META-INF/org/apache/camel/component/pinecone/pinecone.json
index 82e43374d94..3802f1993b6 100644
---
a/components/camel-pinecone/src/generated/resources/META-INF/org/apache/camel/component/pinecone/pinecone.json
+++
b/components/camel-pinecone/src/generated/resources/META-INF/org/apache/camel/component/pinecone/pinecone.json
@@ -36,7 +36,7 @@
"CamelPineconeIndexPodType": { "index": 4, "kind": "header",
"displayName": "", "group": "producer", "label": "", "required": false,
"javaType": "String", "deprecated": false, "deprecationNote": "", "autowired":
false, "secret": false, "description": "Index Pod Type", "constantName":
"org.apache.camel.component.pinecone.PineconeVectorDb$Headers#INDEX_POD_TYPE" },
"CamelPineconeIndexPodEnvironment": { "index": 5, "kind": "header",
"displayName": "", "group": "producer", "label": "", "required": false,
"javaType": "String", "deprecated": false, "deprecationNote": "", "autowired":
false, "secret": false, "description": "Index Pod Environment", "constantName":
"org.apache.camel.component.pinecone.PineconeVectorDb$Headers#INDEX_POD_ENVIRONMENT"
},
"CamelPineconeCollectionName": { "index": 6, "kind": "header",
"displayName": "", "group": "producer", "label": "", "required": false,
"javaType": "String", "deprecated": false, "deprecationNote": "", "autowired":
false, "secret": false, "description": "Collection Name for Insert\/Upsert
operation", "constantName":
"org.apache.camel.component.pinecone.PineconeVectorDb$Headers#COLLECTION_NAME"
},
- "CamelPineconeCollectionSimilarityMetric": { "index": 7, "kind": "header",
"displayName": "", "group": "producer", "label": "", "required": false,
"javaType": "String", "deprecated": false, "deprecationNote": "", "autowired":
false, "secret": false, "description": "Collection Similarity Metric",
"constantName":
"org.apache.camel.component.pinecone.PineconeVectorDb$Headers#COLLECTION_SIMILARITY_METRIC"
},
+ "CamelPineconeCollectionSimilarityMetric": { "index": 7, "kind": "header",
"displayName": "", "group": "producer", "label": "", "required": false,
"javaType": "String", "enum": [ "cosine", "euclidean", "dotproduct" ],
"deprecated": false, "deprecationNote": "", "autowired": false, "secret":
false, "description": "Collection Similarity Metric", "constantName":
"org.apache.camel.component.pinecone.PineconeVectorDb$Headers#COLLECTION_SIMILARITY_METRIC"
},
"CamelPineconeCollectionDimension": { "index": 8, "kind": "header",
"displayName": "", "group": "producer", "label": "", "required": false,
"javaType": "int", "deprecated": false, "deprecationNote": "", "autowired":
false, "secret": false, "description": "Collection Dimension", "constantName":
"org.apache.camel.component.pinecone.PineconeVectorDb$Headers#COLLECTION_DIMENSION"
},
"CamelPineconeCollectionCloud": { "index": 9, "kind": "header",
"displayName": "", "group": "producer", "label": "", "required": false,
"javaType": "String", "enum": [ "aws", "gcp", "azure" ], "deprecated": false,
"deprecationNote": "", "autowired": false, "secret": false, "description":
"Collection Cloud Vendor", "constantName":
"org.apache.camel.component.pinecone.PineconeVectorDb$Headers#COLLECTION_CLOUD"
},
"CamelPineconeCollectionCloudRegion": { "index": 10, "kind": "header",
"displayName": "", "group": "producer", "label": "", "required": false,
"javaType": "String", "enum": [ "aws", "gcp", "azure" ], "deprecated": false,
"deprecationNote": "", "autowired": false, "secret": false, "description":
"Collection Cloud Vendor Region", "constantName":
"org.apache.camel.component.pinecone.PineconeVectorDb$Headers#COLLECTION_CLOUD_REGION"
},
diff --git
a/components/camel-pinecone/src/main/java/org/apache/camel/component/pinecone/PineconeVectorDb.java
b/components/camel-pinecone/src/main/java/org/apache/camel/component/pinecone/PineconeVectorDb.java
index 6414986fab4..2d0e87fe94d 100644
---
a/components/camel-pinecone/src/main/java/org/apache/camel/component/pinecone/PineconeVectorDb.java
+++
b/components/camel-pinecone/src/main/java/org/apache/camel/component/pinecone/PineconeVectorDb.java
@@ -47,7 +47,7 @@ public class PineconeVectorDb {
@Metadata(description = "Collection Name for Insert/Upsert operation",
javaType = "String")
public static final String COLLECTION_NAME =
"CamelPineconeCollectionName";
- @Metadata(description = "Collection Similarity Metric", javaType =
"String")
+ @Metadata(description = "Collection Similarity Metric", javaType =
"String", enums = "cosine,euclidean,dotproduct")
public static final String COLLECTION_SIMILARITY_METRIC =
"CamelPineconeCollectionSimilarityMetric";
@Metadata(description = "Collection Dimension", javaType = "int")