This is an automated email from the ASF dual-hosted git repository.
davsclaus pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/camel-spring-boot.git
The following commit(s) were added to refs/heads/main by this push:
new 6526fd1cb11 Regen
6526fd1cb11 is described below
commit 6526fd1cb11d8f335e6424d206d546af939102b6
Author: Claus Ibsen <[email protected]>
AuthorDate: Wed Feb 26 08:49:37 2025 +0100
Regen
---
.../springboot/catalog/components/pinecone.json | 22 +++++---
.../src/main/docs/pinecone.json | 30 +++++++++++
.../PineconeVectorDbComponentConfiguration.java | 61 ++++++++++++++++++++++
3 files changed, 107 insertions(+), 6 deletions(-)
diff --git
a/catalog/camel-catalog-provider-springboot/src/main/resources/org/apache/camel/springboot/catalog/components/pinecone.json
b/catalog/camel-catalog-provider-springboot/src/main/resources/org/apache/camel/springboot/catalog/components/pinecone.json
index 32cf62f44b7..2082985d901 100644
---
a/catalog/camel-catalog-provider-springboot/src/main/resources/org/apache/camel/springboot/catalog/components/pinecone.json
+++
b/catalog/camel-catalog-provider-springboot/src/main/resources/org/apache/camel/springboot/catalog/components/pinecone.json
@@ -24,10 +24,15 @@
"remote": true
},
"componentProperties": {
- "configuration": { "index": 0, "kind": "property", "displayName":
"Configuration", "group": "producer", "label": "", "required": false, "type":
"object", "javaType":
"org.apache.camel.component.pinecone.PineconeVectorDbConfiguration",
"deprecated": false, "autowired": false, "secret": false, "description": "The
configuration;" },
- "lazyStartProducer": { "index": 1, "kind": "property", "displayName":
"Lazy Start Producer", "group": "producer", "label": "producer", "required":
false, "type": "boolean", "javaType": "boolean", "deprecated": false,
"autowired": false, "secret": false, "defaultValue": false, "description":
"Whether the producer should be started lazy (on the first message). By
starting lazy you can use this to allow CamelContext and routes to startup in
situations where a producer may otherwise fail [...]
- "token": { "index": 2, "kind": "property", "displayName": "Token",
"group": "producer", "label": "", "required": false, "type": "string",
"javaType": "java.lang.String", "deprecated": false, "deprecationNote": "",
"autowired": false, "secret": true, "configurationClass":
"org.apache.camel.component.pinecone.PineconeVectorDbConfiguration",
"configurationField": "configuration", "description": "Sets the API key to use
for authentication" },
- "autowiredEnabled": { "index": 3, "kind": "property", "displayName":
"Autowired Enabled", "group": "advanced", "label": "advanced", "required":
false, "type": "boolean", "javaType": "boolean", "deprecated": false,
"autowired": false, "secret": false, "defaultValue": true, "description":
"Whether autowiring is enabled. This is used for automatic autowiring options
(the option must be marked as autowired) by looking up in the registry to find
if there is a single instance of matching t [...]
+ "cloud": { "index": 0, "kind": "property", "displayName": "Cloud",
"group": "producer", "label": "producer", "required": false, "type": "string",
"javaType": "java.lang.String", "deprecated": false, "autowired": false,
"secret": false, "configurationClass":
"org.apache.camel.component.pinecone.PineconeVectorDbConfiguration",
"configurationField": "configuration", "description": "Sets the cloud type to
use (aws\/gcp\/azure)" },
+ "cloudRegion": { "index": 1, "kind": "property", "displayName": "Cloud
Region", "group": "producer", "label": "producer", "required": false, "type":
"string", "javaType": "java.lang.String", "deprecated": false, "autowired":
false, "secret": false, "configurationClass":
"org.apache.camel.component.pinecone.PineconeVectorDbConfiguration",
"configurationField": "configuration", "description": "Sets the cloud region" },
+ "collectionDimension": { "index": 2, "kind": "property", "displayName":
"Collection Dimension", "group": "producer", "label": "producer", "required":
false, "type": "integer", "javaType": "java.lang.Integer", "deprecated": false,
"autowired": false, "secret": false, "configurationClass":
"org.apache.camel.component.pinecone.PineconeVectorDbConfiguration",
"configurationField": "configuration", "description": "Sets the Collection
Dimension to use (1-1536)" },
+ "collectionSimilarityMetric": { "index": 3, "kind": "property",
"displayName": "Collection Similarity Metric", "group": "producer", "label":
"producer", "required": false, "type": "string", "javaType":
"java.lang.String", "deprecated": false, "autowired": false, "secret": false,
"configurationClass":
"org.apache.camel.component.pinecone.PineconeVectorDbConfiguration",
"configurationField": "configuration", "description": "Sets the Collection
Similarity Metric to use (cosine\/euclidea [...]
+ "configuration": { "index": 4, "kind": "property", "displayName":
"Configuration", "group": "producer", "label": "", "required": false, "type":
"object", "javaType":
"org.apache.camel.component.pinecone.PineconeVectorDbConfiguration",
"deprecated": false, "autowired": false, "secret": false, "description": "The
configuration;" },
+ "indexName": { "index": 5, "kind": "property", "displayName": "Index
Name", "group": "producer", "label": "producer", "required": false, "type":
"string", "javaType": "java.lang.String", "deprecated": false, "autowired":
false, "secret": false, "configurationClass":
"org.apache.camel.component.pinecone.PineconeVectorDbConfiguration",
"configurationField": "configuration", "description": "Sets the index name to
use" },
+ "lazyStartProducer": { "index": 6, "kind": "property", "displayName":
"Lazy Start Producer", "group": "producer", "label": "producer", "required":
false, "type": "boolean", "javaType": "boolean", "deprecated": false,
"autowired": false, "secret": false, "defaultValue": false, "description":
"Whether the producer should be started lazy (on the first message). By
starting lazy you can use this to allow CamelContext and routes to startup in
situations where a producer may otherwise fail [...]
+ "token": { "index": 7, "kind": "property", "displayName": "Token",
"group": "producer", "label": "", "required": false, "type": "string",
"javaType": "java.lang.String", "deprecated": false, "deprecationNote": "",
"autowired": false, "secret": true, "configurationClass":
"org.apache.camel.component.pinecone.PineconeVectorDbConfiguration",
"configurationField": "configuration", "description": "Sets the API key to use
for authentication" },
+ "autowiredEnabled": { "index": 8, "kind": "property", "displayName":
"Autowired Enabled", "group": "advanced", "label": "advanced", "required":
false, "type": "boolean", "javaType": "boolean", "deprecated": false,
"autowired": false, "secret": false, "defaultValue": true, "description":
"Whether autowiring is enabled. This is used for automatic autowiring options
(the option must be marked as autowired) by looking up in the registry to find
if there is a single instance of matching t [...]
},
"headers": {
"CamelPineconeAction": { "index": 0, "kind": "header", "displayName": "",
"group": "producer", "label": "", "required": false, "javaType": "String",
"enum": [ "CREATE_COLLECTION", "CREATE_INDEX", "UPSERT", "INSERT", "SEARCH",
"DELETE", "UPDATE", "QUERY", "QUERY_BY_ID" ], "deprecated": false,
"deprecationNote": "", "autowired": false, "secret": false, "description": "The
action to be performed.", "constantName":
"org.apache.camel.component.pinecone.PineconeVectorDb$Headers#ACTION" },
@@ -46,7 +51,12 @@
},
"properties": {
"collection": { "index": 0, "kind": "path", "displayName": "Collection",
"group": "producer", "label": "", "required": true, "type": "string",
"javaType": "java.lang.String", "deprecated": false, "deprecationNote": "",
"autowired": false, "secret": false, "description": "The collection Name" },
- "token": { "index": 1, "kind": "parameter", "displayName": "Token",
"group": "producer", "label": "", "required": false, "type": "string",
"javaType": "java.lang.String", "deprecated": false, "deprecationNote": "",
"autowired": false, "secret": true, "configurationClass":
"org.apache.camel.component.pinecone.PineconeVectorDbConfiguration",
"configurationField": "configuration", "description": "Sets the API key to use
for authentication" },
- "lazyStartProducer": { "index": 2, "kind": "parameter", "displayName":
"Lazy Start Producer", "group": "producer (advanced)", "label":
"producer,advanced", "required": false, "type": "boolean", "javaType":
"boolean", "deprecated": false, "autowired": false, "secret": false,
"defaultValue": false, "description": "Whether the producer should be started
lazy (on the first message). By starting lazy you can use this to allow
CamelContext and routes to startup in situations where a produc [...]
+ "cloud": { "index": 1, "kind": "parameter", "displayName": "Cloud",
"group": "producer", "label": "producer", "required": false, "type": "string",
"javaType": "java.lang.String", "deprecated": false, "autowired": false,
"secret": false, "configurationClass":
"org.apache.camel.component.pinecone.PineconeVectorDbConfiguration",
"configurationField": "configuration", "description": "Sets the cloud type to
use (aws\/gcp\/azure)" },
+ "cloudRegion": { "index": 2, "kind": "parameter", "displayName": "Cloud
Region", "group": "producer", "label": "producer", "required": false, "type":
"string", "javaType": "java.lang.String", "deprecated": false, "autowired":
false, "secret": false, "configurationClass":
"org.apache.camel.component.pinecone.PineconeVectorDbConfiguration",
"configurationField": "configuration", "description": "Sets the cloud region" },
+ "collectionDimension": { "index": 3, "kind": "parameter", "displayName":
"Collection Dimension", "group": "producer", "label": "producer", "required":
false, "type": "integer", "javaType": "java.lang.Integer", "deprecated": false,
"autowired": false, "secret": false, "configurationClass":
"org.apache.camel.component.pinecone.PineconeVectorDbConfiguration",
"configurationField": "configuration", "description": "Sets the Collection
Dimension to use (1-1536)" },
+ "collectionSimilarityMetric": { "index": 4, "kind": "parameter",
"displayName": "Collection Similarity Metric", "group": "producer", "label":
"producer", "required": false, "type": "string", "javaType":
"java.lang.String", "deprecated": false, "autowired": false, "secret": false,
"configurationClass":
"org.apache.camel.component.pinecone.PineconeVectorDbConfiguration",
"configurationField": "configuration", "description": "Sets the Collection
Similarity Metric to use (cosine\/euclide [...]
+ "indexName": { "index": 5, "kind": "parameter", "displayName": "Index
Name", "group": "producer", "label": "producer", "required": false, "type":
"string", "javaType": "java.lang.String", "deprecated": false, "autowired":
false, "secret": false, "configurationClass":
"org.apache.camel.component.pinecone.PineconeVectorDbConfiguration",
"configurationField": "configuration", "description": "Sets the index name to
use" },
+ "token": { "index": 6, "kind": "parameter", "displayName": "Token",
"group": "producer", "label": "", "required": false, "type": "string",
"javaType": "java.lang.String", "deprecated": false, "deprecationNote": "",
"autowired": false, "secret": true, "configurationClass":
"org.apache.camel.component.pinecone.PineconeVectorDbConfiguration",
"configurationField": "configuration", "description": "Sets the API key to use
for authentication" },
+ "lazyStartProducer": { "index": 7, "kind": "parameter", "displayName":
"Lazy Start Producer", "group": "producer (advanced)", "label":
"producer,advanced", "required": false, "type": "boolean", "javaType":
"boolean", "deprecated": false, "autowired": false, "secret": false,
"defaultValue": false, "description": "Whether the producer should be started
lazy (on the first message). By starting lazy you can use this to allow
CamelContext and routes to startup in situations where a produc [...]
}
}
diff --git
a/components-starter/camel-pinecone-starter/src/main/docs/pinecone.json
b/components-starter/camel-pinecone-starter/src/main/docs/pinecone.json
index 12aa03db7c9..27293ee4bda 100644
--- a/components-starter/camel-pinecone-starter/src/main/docs/pinecone.json
+++ b/components-starter/camel-pinecone-starter/src/main/docs/pinecone.json
@@ -20,6 +20,30 @@
"sourceType":
"org.apache.camel.component.pinecone.springboot.PineconeVectorDbComponentConfiguration",
"defaultValue": true
},
+ {
+ "name": "camel.component.pinecone.cloud",
+ "type": "java.lang.String",
+ "description": "Sets the cloud type to use (aws\/gcp\/azure)",
+ "sourceType":
"org.apache.camel.component.pinecone.springboot.PineconeVectorDbComponentConfiguration"
+ },
+ {
+ "name": "camel.component.pinecone.cloud-region",
+ "type": "java.lang.String",
+ "description": "Sets the cloud region",
+ "sourceType":
"org.apache.camel.component.pinecone.springboot.PineconeVectorDbComponentConfiguration"
+ },
+ {
+ "name": "camel.component.pinecone.collection-dimension",
+ "type": "java.lang.Integer",
+ "description": "Sets the Collection Dimension to use (1-1536)",
+ "sourceType":
"org.apache.camel.component.pinecone.springboot.PineconeVectorDbComponentConfiguration"
+ },
+ {
+ "name": "camel.component.pinecone.collection-similarity-metric",
+ "type": "java.lang.String",
+ "description": "Sets the Collection Similarity Metric to use
(cosine\/euclidean\/dotproduct)",
+ "sourceType":
"org.apache.camel.component.pinecone.springboot.PineconeVectorDbComponentConfiguration"
+ },
{
"name": "camel.component.pinecone.configuration",
"type":
"org.apache.camel.component.pinecone.PineconeVectorDbConfiguration",
@@ -37,6 +61,12 @@
"description": "Whether to enable auto configuration of the pinecone
component. This is enabled by default.",
"sourceType":
"org.apache.camel.component.pinecone.springboot.PineconeVectorDbComponentConfiguration"
},
+ {
+ "name": "camel.component.pinecone.index-name",
+ "type": "java.lang.String",
+ "description": "Sets the index name to use",
+ "sourceType":
"org.apache.camel.component.pinecone.springboot.PineconeVectorDbComponentConfiguration"
+ },
{
"name": "camel.component.pinecone.lazy-start-producer",
"type": "java.lang.Boolean",
diff --git
a/components-starter/camel-pinecone-starter/src/main/java/org/apache/camel/component/pinecone/springboot/PineconeVectorDbComponentConfiguration.java
b/components-starter/camel-pinecone-starter/src/main/java/org/apache/camel/component/pinecone/springboot/PineconeVectorDbComponentConfiguration.java
index b16c7307001..d2fd7e15e70 100644
---
a/components-starter/camel-pinecone-starter/src/main/java/org/apache/camel/component/pinecone/springboot/PineconeVectorDbComponentConfiguration.java
+++
b/components-starter/camel-pinecone-starter/src/main/java/org/apache/camel/component/pinecone/springboot/PineconeVectorDbComponentConfiguration.java
@@ -35,11 +35,32 @@ public class PineconeVectorDbComponentConfiguration
* enabled by default.
*/
private Boolean enabled;
+ /**
+ * Sets the cloud type to use (aws/gcp/azure)
+ */
+ private String cloud;
+ /**
+ * Sets the cloud region
+ */
+ private String cloudRegion;
+ /**
+ * Sets the Collection Dimension to use (1-1536)
+ */
+ private Integer collectionDimension;
+ /**
+ * Sets the Collection Similarity Metric to use
+ * (cosine/euclidean/dotproduct)
+ */
+ private String collectionSimilarityMetric;
/**
* The configuration;. The option is a
* org.apache.camel.component.pinecone.PineconeVectorDbConfiguration type.
*/
private PineconeVectorDbConfiguration configuration;
+ /**
+ * Sets the index name to use
+ */
+ private String indexName;
/**
* Whether the producer should be started lazy (on the first message). By
* starting lazy you can use this to allow CamelContext and routes to
@@ -65,6 +86,38 @@ public class PineconeVectorDbComponentConfiguration
*/
private Boolean autowiredEnabled = true;
+ public String getCloud() {
+ return cloud;
+ }
+
+ public void setCloud(String cloud) {
+ this.cloud = cloud;
+ }
+
+ public String getCloudRegion() {
+ return cloudRegion;
+ }
+
+ public void setCloudRegion(String cloudRegion) {
+ this.cloudRegion = cloudRegion;
+ }
+
+ public Integer getCollectionDimension() {
+ return collectionDimension;
+ }
+
+ public void setCollectionDimension(Integer collectionDimension) {
+ this.collectionDimension = collectionDimension;
+ }
+
+ public String getCollectionSimilarityMetric() {
+ return collectionSimilarityMetric;
+ }
+
+ public void setCollectionSimilarityMetric(String
collectionSimilarityMetric) {
+ this.collectionSimilarityMetric = collectionSimilarityMetric;
+ }
+
public PineconeVectorDbConfiguration getConfiguration() {
return configuration;
}
@@ -73,6 +126,14 @@ public class PineconeVectorDbComponentConfiguration
this.configuration = configuration;
}
+ public String getIndexName() {
+ return indexName;
+ }
+
+ public void setIndexName(String indexName) {
+ this.indexName = indexName;
+ }
+
public Boolean getLazyStartProducer() {
return lazyStartProducer;
}