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.git
commit 57c94a8fca727538b1401bb2ec0a27878ecb3b9c Author: Claus Ibsen <[email protected]> AuthorDate: Fri Nov 27 16:27:54 2026 +0100 CAMEL-23832: camel-milvus - improve the component and option descriptions This commit rewrites the component description and the texts of 6 options and 8 headers of milvus. The timeout text said it applies to all requests, while it is only the connect timeout of the client. The collection path option is only the collection that the producer loads before SEARCH, QUERY and DELETE, and the header texts now say which ones the milvus:embeddings transformer reads and what their defaults are. Documentation only, no behavior change. The component JSON, the catalog copy, the doc page header and the DSL are regenerated. camel-milvus is marked as done in tasks/component-descriptions.md. Co-Authored-By: Claude Opus 5.5 <[email protected]> Signed-off-by: Claus Ibsen <[email protected]> --- .../apache/camel/catalog/components/milvus.json | 38 +++++------ .../camel/catalog/docs/milvus-component.adoc | 4 +- .../org/apache/camel/component/milvus/milvus.json | 38 +++++------ .../src/main/docs/milvus-component.adoc | 4 +- .../camel/component/milvus/MilvusComponent.java | 7 +- .../component/milvus/MilvusConfiguration.java | 32 ++++----- .../camel/component/milvus/MilvusEndpoint.java | 6 +- .../camel/component/milvus/MilvusHeaders.java | 35 +++++++--- .../component/ComponentsBuilderFactory.java | 3 +- .../dsl/MilvusComponentBuilderFactory.java | 27 ++++++-- .../builder/endpoint/EndpointHeaderBuilders.java | 3 +- .../builder/endpoint/StaticEndpointBuilders.java | 14 ++-- .../endpoint/dsl/MilvusEndpointBuilderFactory.java | 79 ++++++++++++++++------ tasks/component-descriptions.md | 2 +- 14 files changed, 180 insertions(+), 112 deletions(-) diff --git a/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/components/milvus.json b/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/components/milvus.json index 581eb90e8931..2def72daa0c9 100644 --- a/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/components/milvus.json +++ b/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/components/milvus.json @@ -3,7 +3,7 @@ "kind": "component", "name": "milvus", "title": "Milvus", - "description": "Perform operations on the Milvus Vector Database.", + "description": "Create collections and indexes, and insert, upsert, delete, search and query entities in the Milvus vector database.", "deprecated": false, "firstVersion": "4.5.0", "label": "database,ai", @@ -25,35 +25,35 @@ }, "componentProperties": { "action": { "index": 0, "kind": "property", "displayName": "Action", "group": "producer", "label": "", "required": false, "type": "enum", "javaType": "org.apache.camel.component.milvus.MilvusAction", "enum": [ "CREATE_COLLECTION", "CREATE_INDEX", "UPSERT", "INSERT", "SEARCH", "QUERY", "DELETE" ], "deprecated": false, "autowired": false, "secret": false, "configurationClass": "org.apache.camel.component.milvus.MilvusConfiguration", "configurationField": "configuration", "description": [...] - "configuration": { "index": 1, "kind": "property", "displayName": "Configuration", "group": "producer", "label": "", "required": false, "type": "object", "javaType": "org.apache.camel.component.milvus.MilvusConfiguration", "deprecated": false, "autowired": false, "secret": false, "description": "The configuration;" }, - "host": { "index": 2, "kind": "property", "displayName": "Host", "group": "producer", "label": "", "required": false, "type": "string", "javaType": "java.lang.String", "deprecated": false, "autowired": false, "secret": false, "defaultValue": "localhost", "configurationClass": "org.apache.camel.component.milvus.MilvusConfiguration", "configurationField": "configuration", "description": "The host to connect to." }, + "configuration": { "index": 1, "kind": "property", "displayName": "Configuration", "group": "producer", "label": "", "required": false, "type": "object", "javaType": "org.apache.camel.component.milvus.MilvusConfiguration", "deprecated": false, "autowired": false, "secret": false, "description": "The configuration that the endpoints start from. Each endpoint gets a copy, and its options replace the values of the copy. It also holds the MilvusClient that MilvusConfiguration.setClient() [...] + "host": { "index": 2, "kind": "property", "displayName": "Host", "group": "producer", "label": "", "required": false, "type": "string", "javaType": "java.lang.String", "deprecated": false, "autowired": false, "secret": false, "defaultValue": "localhost", "configurationClass": "org.apache.camel.component.milvus.MilvusConfiguration", "configurationField": "configuration", "description": "The host name or IP address of the Milvus server. Not used when a MilvusClient is set with MilvusCo [...] "lazyStartProducer": { "index": 3, "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 [...] - "port": { "index": 4, "kind": "property", "displayName": "Port", "group": "producer", "label": "", "required": false, "type": "integer", "javaType": "int", "deprecated": false, "autowired": false, "secret": false, "defaultValue": 19530, "configurationClass": "org.apache.camel.component.milvus.MilvusConfiguration", "configurationField": "configuration", "description": "The port to connect to." }, - "timeout": { "index": 5, "kind": "property", "displayName": "Timeout", "group": "producer", "label": "", "required": false, "type": "integer", "javaType": "long", "deprecated": false, "autowired": false, "secret": false, "configurationClass": "org.apache.camel.component.milvus.MilvusConfiguration", "configurationField": "configuration", "description": "Sets a default timeout for all requests" }, - "token": { "index": 6, "kind": "property", "displayName": "Token", "group": "producer", "label": "", "required": false, "type": "string", "javaType": "java.lang.String", "deprecated": false, "autowired": false, "secret": true, "security": "secret", "configurationClass": "org.apache.camel.component.milvus.MilvusConfiguration", "configurationField": "configuration", "description": "Sets the API key to use for authentication" }, + "port": { "index": 4, "kind": "property", "displayName": "Port", "group": "producer", "label": "", "required": false, "type": "integer", "javaType": "int", "deprecated": false, "autowired": false, "secret": false, "defaultValue": 19530, "configurationClass": "org.apache.camel.component.milvus.MilvusConfiguration", "configurationField": "configuration", "description": "The gRPC port of the Milvus server. Not used when a MilvusClient is set with MilvusConfiguration.setClient()." }, + "timeout": { "index": 5, "kind": "property", "displayName": "Timeout", "group": "producer", "label": "", "required": false, "type": "integer", "javaType": "long", "deprecated": false, "autowired": false, "secret": false, "configurationClass": "org.apache.camel.component.milvus.MilvusConfiguration", "configurationField": "configuration", "description": "The timeout in milliseconds for connecting to the Milvus server, 10000 if not set. The value must be greater than 0. It is not a time [...] + "token": { "index": 6, "kind": "property", "displayName": "Token", "group": "producer", "label": "", "required": false, "type": "string", "javaType": "java.lang.String", "deprecated": false, "autowired": false, "secret": true, "security": "secret", "configurationClass": "org.apache.camel.component.milvus.MilvusConfiguration", "configurationField": "configuration", "description": "The token that the client sends to authenticate with Milvus: a user name and password joined by a colon, [...] "autowiredEnabled": { "index": 7, "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": { - "CamelMilvusAction": { "index": 0, "kind": "header", "displayName": "", "group": "producer", "label": "", "required": false, "javaType": "String", "enum": [ "CREATE_COLLECTION", "CREATE_INDEX", "UPSERT", "INSERT", "SEARCH", "QUERY", "DELETE" ], "deprecated": false, "autowired": false, "secret": false, "description": "The action to be performed.", "constantName": "org.apache.camel.component.milvus.MilvusHeaders#ACTION" }, - "CamelMilvusOperationStatus": { "index": 1, "kind": "header", "displayName": "", "group": "producer", "label": "", "required": false, "javaType": "String", "deprecated": false, "autowired": false, "secret": false, "description": "Operation Status.", "constantName": "org.apache.camel.component.milvus.MilvusHeaders#OPERATION_STATUS" }, - "CamelMilvusOperationStatusValue": { "index": 2, "kind": "header", "displayName": "", "group": "producer", "label": "", "required": false, "javaType": "int", "deprecated": false, "autowired": false, "secret": false, "description": "Operation Status Value.", "constantName": "org.apache.camel.component.milvus.MilvusHeaders#OPERATION_STATUS_VALUE" }, - "CamelMilvusTextFieldName": { "index": 3, "kind": "header", "displayName": "", "group": "producer", "label": "", "required": false, "javaType": "String", "deprecated": false, "autowired": false, "secret": false, "description": "Text Field Name for Insert\/Upsert operation", "constantName": "org.apache.camel.component.milvus.MilvusHeaders#TEXT_FIELD_NAME" }, - "CamelMilvusVectorFieldName": { "index": 4, "kind": "header", "displayName": "", "group": "producer", "label": "", "required": false, "javaType": "String", "deprecated": false, "autowired": false, "secret": false, "description": "Vector Field Name for Insert\/Upsert operation", "constantName": "org.apache.camel.component.milvus.MilvusHeaders#VECTOR_FIELD_NAME" }, - "CamelMilvusCollectionName": { "index": 5, "kind": "header", "displayName": "", "group": "producer", "label": "", "required": false, "javaType": "String", "deprecated": false, "autowired": false, "secret": false, "description": "Collection Name for Insert\/Upsert operation", "constantName": "org.apache.camel.component.milvus.MilvusHeaders#COLLECTION_NAME" }, - "CamelMilvusKeyName": { "index": 6, "kind": "header", "displayName": "", "group": "producer", "label": "", "required": false, "javaType": "String", "deprecated": false, "autowired": false, "secret": false, "description": "Key Name for Insert\/Upsert operation", "constantName": "org.apache.camel.component.milvus.MilvusHeaders#KEY_NAME" }, - "CamelMilvusKeyValue": { "index": 7, "kind": "header", "displayName": "", "group": "producer", "label": "", "required": false, "javaType": "String", "deprecated": false, "autowired": false, "secret": false, "description": "Key Value for Insert\/Upsert operation", "constantName": "org.apache.camel.component.milvus.MilvusHeaders#KEY_VALUE" } + "CamelMilvusAction": { "index": 0, "kind": "header", "displayName": "", "group": "producer", "label": "", "required": false, "javaType": "String", "enum": [ "CREATE_COLLECTION", "CREATE_INDEX", "UPSERT", "INSERT", "SEARCH", "QUERY", "DELETE" ], "deprecated": false, "autowired": false, "secret": false, "description": "The action that the producer performs. It wins over the action option. The milvus:embeddings transformer reads it too, and accepts only INSERT and UPSERT.", "constantNam [...] + "CamelMilvusOperationStatus": { "index": 1, "kind": "header", "displayName": "", "group": "producer", "label": "", "required": false, "javaType": "String", "deprecated": false, "autowired": false, "secret": false, "description": "The status code of the response of Milvus. The producer sets it only after an action that succeeded, so it is always 0. When Milvus returns another code, the producer fails the exchange.", "constantName": "org.apache.camel.component.milvus.MilvusHeaders#OPER [...] + "CamelMilvusOperationStatusValue": { "index": 2, "kind": "header", "displayName": "", "group": "producer", "label": "", "required": false, "javaType": "int", "deprecated": false, "autowired": false, "secret": false, "description": "The status code of the response of Milvus as an int, the same value as the CamelMilvusOperationStatus header.", "constantName": "org.apache.camel.component.milvus.MilvusHeaders#OPERATION_STATUS_VALUE" }, + "CamelMilvusTextFieldName": { "index": 3, "kind": "header", "displayName": "", "group": "producer", "label": "", "required": false, "javaType": "String", "deprecated": false, "autowired": false, "secret": false, "description": "The name of the field for the text of the TextSegment, in the InsertParam or UpsertParam that the milvus:embeddings transformer builds. The default is text.", "constantName": "org.apache.camel.component.milvus.MilvusHeaders#TEXT_FIELD_NAME" }, + "CamelMilvusVectorFieldName": { "index": 4, "kind": "header", "displayName": "", "group": "producer", "label": "", "required": false, "javaType": "String", "deprecated": false, "autowired": false, "secret": false, "description": "The name of the field for the embedding vector, in the InsertParam or UpsertParam that the milvus:embeddings transformer builds. The default is vector.", "constantName": "org.apache.camel.component.milvus.MilvusHeaders#VECTOR_FIELD_NAME" }, + "CamelMilvusCollectionName": { "index": 5, "kind": "header", "displayName": "", "group": "producer", "label": "", "required": false, "javaType": "String", "deprecated": false, "autowired": false, "secret": false, "description": "The name of the collection, in the InsertParam or UpsertParam that the milvus:embeddings transformer builds. The default is embeddings: the transformer does not use the collection of the endpoint.", "constantName": "org.apache.camel.component.milvus.MilvusHea [...] + "CamelMilvusKeyName": { "index": 6, "kind": "header", "displayName": "", "group": "producer", "label": "", "required": false, "javaType": "String", "deprecated": false, "autowired": false, "secret": false, "description": "The name of the primary key field, in the InsertParam or UpsertParam that the milvus:embeddings transformer builds. The default is id. The transformer adds the key field only when the CamelMilvusKeyValue header is set.", "constantName": "org.apache.camel.component.m [...] + "CamelMilvusKeyValue": { "index": 7, "kind": "header", "displayName": "", "group": "producer", "label": "", "required": false, "javaType": "String", "deprecated": false, "autowired": false, "secret": false, "description": "The value of the primary key, in the InsertParam or UpsertParam that the milvus:embeddings transformer builds. If not set, the transformer adds no key field, as for a collection whose primary key has autoID enabled.", "constantName": "org.apache.camel.component.mil [...] }, "bodyTypes": { "producerIn": { "carriers": [ "pojo" ], "byOption": [ { "option": "action", "value": "CREATE_COLLECTION", "carriers": [ "pojo" ], "javaType": "io.milvus.param.collection.CreateCollectionParam" }, { "option": "action", "value": "CREATE_INDEX", "carriers": [ "pojo" ], "javaType": "io.milvus.param.index.CreateIndexParam" }, { "option": "action", "value": "UPSERT", "carriers": [ "pojo" ], "javaType": "io.milvus.param.dml.UpsertParam" }, { "option": "action", "value": "INSERT", "carriers" [...] "producerOut": { "carriers": [ "pojo" ], "byOption": [ { "option": "action", "value": "CREATE_COLLECTION", "carriers": [ "pojo" ], "javaType": "io.milvus.param.RpcStatus" }, { "option": "action", "value": "CREATE_INDEX", "carriers": [ "pojo" ], "javaType": "io.milvus.param.RpcStatus" }, { "option": "action", "value": "UPSERT", "carriers": [ "pojo" ], "javaType": "io.milvus.grpc.MutationResult" }, { "option": "action", "value": "INSERT", "carriers": [ "pojo" ], "javaType": "io.milvus. [...] }, "properties": { - "collection": { "index": 0, "kind": "path", "displayName": "Collection", "group": "producer", "label": "", "required": true, "type": "string", "javaType": "java.lang.String", "deprecated": false, "autowired": false, "secret": false, "description": "The collection Name" }, + "collection": { "index": 0, "kind": "path", "displayName": "Collection", "group": "producer", "label": "", "required": true, "type": "string", "javaType": "java.lang.String", "deprecated": false, "autowired": false, "secret": false, "description": "The name of the collection that the producer loads into memory before SEARCH, QUERY and DELETE. The request in the message body names the collection that the action works on, so it must name the same collection." }, "action": { "index": 1, "kind": "parameter", "displayName": "Action", "group": "producer", "label": "", "required": false, "type": "enum", "javaType": "org.apache.camel.component.milvus.MilvusAction", "enum": [ "CREATE_COLLECTION", "CREATE_INDEX", "UPSERT", "INSERT", "SEARCH", "QUERY", "DELETE" ], "deprecated": false, "autowired": false, "secret": false, "configurationClass": "org.apache.camel.component.milvus.MilvusConfiguration", "configurationField": "configuration", "description" [...] - "host": { "index": 2, "kind": "parameter", "displayName": "Host", "group": "producer", "label": "", "required": false, "type": "string", "javaType": "java.lang.String", "deprecated": false, "autowired": false, "secret": false, "defaultValue": "localhost", "configurationClass": "org.apache.camel.component.milvus.MilvusConfiguration", "configurationField": "configuration", "description": "The host to connect to." }, - "port": { "index": 3, "kind": "parameter", "displayName": "Port", "group": "producer", "label": "", "required": false, "type": "integer", "javaType": "int", "deprecated": false, "autowired": false, "secret": false, "defaultValue": 19530, "configurationClass": "org.apache.camel.component.milvus.MilvusConfiguration", "configurationField": "configuration", "description": "The port to connect to." }, - "timeout": { "index": 4, "kind": "parameter", "displayName": "Timeout", "group": "producer", "label": "", "required": false, "type": "integer", "javaType": "long", "deprecated": false, "autowired": false, "secret": false, "configurationClass": "org.apache.camel.component.milvus.MilvusConfiguration", "configurationField": "configuration", "description": "Sets a default timeout for all requests" }, - "token": { "index": 5, "kind": "parameter", "displayName": "Token", "group": "producer", "label": "", "required": false, "type": "string", "javaType": "java.lang.String", "deprecated": false, "autowired": false, "secret": true, "security": "secret", "configurationClass": "org.apache.camel.component.milvus.MilvusConfiguration", "configurationField": "configuration", "description": "Sets the API key to use for authentication" }, + "host": { "index": 2, "kind": "parameter", "displayName": "Host", "group": "producer", "label": "", "required": false, "type": "string", "javaType": "java.lang.String", "deprecated": false, "autowired": false, "secret": false, "defaultValue": "localhost", "configurationClass": "org.apache.camel.component.milvus.MilvusConfiguration", "configurationField": "configuration", "description": "The host name or IP address of the Milvus server. Not used when a MilvusClient is set with MilvusC [...] + "port": { "index": 3, "kind": "parameter", "displayName": "Port", "group": "producer", "label": "", "required": false, "type": "integer", "javaType": "int", "deprecated": false, "autowired": false, "secret": false, "defaultValue": 19530, "configurationClass": "org.apache.camel.component.milvus.MilvusConfiguration", "configurationField": "configuration", "description": "The gRPC port of the Milvus server. Not used when a MilvusClient is set with MilvusConfiguration.setClient()." }, + "timeout": { "index": 4, "kind": "parameter", "displayName": "Timeout", "group": "producer", "label": "", "required": false, "type": "integer", "javaType": "long", "deprecated": false, "autowired": false, "secret": false, "configurationClass": "org.apache.camel.component.milvus.MilvusConfiguration", "configurationField": "configuration", "description": "The timeout in milliseconds for connecting to the Milvus server, 10000 if not set. The value must be greater than 0. It is not a tim [...] + "token": { "index": 5, "kind": "parameter", "displayName": "Token", "group": "producer", "label": "", "required": false, "type": "string", "javaType": "java.lang.String", "deprecated": false, "autowired": false, "secret": true, "security": "secret", "configurationClass": "org.apache.camel.component.milvus.MilvusConfiguration", "configurationField": "configuration", "description": "The token that the client sends to authenticate with Milvus: a user name and password joined by a colon, [...] "lazyStartProducer": { "index": 6, "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/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/docs/milvus-component.adoc b/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/docs/milvus-component.adoc index a23419152a22..19d863dcfa39 100644 --- a/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/docs/milvus-component.adoc +++ b/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/docs/milvus-component.adoc @@ -2,7 +2,7 @@ :doctitle: Milvus :shortname: milvus :artifactid: camel-milvus -:description: Perform operations on the Milvus Vector Database. +:description: Create collections and indexes, and insert, upsert, delete, search and query entities in the Milvus vector database. :since: 4.5 :supportlevel: Stable :tabs-sync-option: @@ -274,5 +274,3 @@ This is particularly important when you design your Milvus database. The transformer only supports insert/upsert objects, so the only operation you can set via header are INSERT and UPSERT, otherwise the transformer will fail with an error log. The transformer runs before the endpoint, so it reads the `CamelMilvusAction` header only, not the `action` option of the endpoint. - - diff --git a/components/camel-ai/camel-milvus/src/generated/resources/META-INF/org/apache/camel/component/milvus/milvus.json b/components/camel-ai/camel-milvus/src/generated/resources/META-INF/org/apache/camel/component/milvus/milvus.json index 581eb90e8931..2def72daa0c9 100644 --- a/components/camel-ai/camel-milvus/src/generated/resources/META-INF/org/apache/camel/component/milvus/milvus.json +++ b/components/camel-ai/camel-milvus/src/generated/resources/META-INF/org/apache/camel/component/milvus/milvus.json @@ -3,7 +3,7 @@ "kind": "component", "name": "milvus", "title": "Milvus", - "description": "Perform operations on the Milvus Vector Database.", + "description": "Create collections and indexes, and insert, upsert, delete, search and query entities in the Milvus vector database.", "deprecated": false, "firstVersion": "4.5.0", "label": "database,ai", @@ -25,35 +25,35 @@ }, "componentProperties": { "action": { "index": 0, "kind": "property", "displayName": "Action", "group": "producer", "label": "", "required": false, "type": "enum", "javaType": "org.apache.camel.component.milvus.MilvusAction", "enum": [ "CREATE_COLLECTION", "CREATE_INDEX", "UPSERT", "INSERT", "SEARCH", "QUERY", "DELETE" ], "deprecated": false, "autowired": false, "secret": false, "configurationClass": "org.apache.camel.component.milvus.MilvusConfiguration", "configurationField": "configuration", "description": [...] - "configuration": { "index": 1, "kind": "property", "displayName": "Configuration", "group": "producer", "label": "", "required": false, "type": "object", "javaType": "org.apache.camel.component.milvus.MilvusConfiguration", "deprecated": false, "autowired": false, "secret": false, "description": "The configuration;" }, - "host": { "index": 2, "kind": "property", "displayName": "Host", "group": "producer", "label": "", "required": false, "type": "string", "javaType": "java.lang.String", "deprecated": false, "autowired": false, "secret": false, "defaultValue": "localhost", "configurationClass": "org.apache.camel.component.milvus.MilvusConfiguration", "configurationField": "configuration", "description": "The host to connect to." }, + "configuration": { "index": 1, "kind": "property", "displayName": "Configuration", "group": "producer", "label": "", "required": false, "type": "object", "javaType": "org.apache.camel.component.milvus.MilvusConfiguration", "deprecated": false, "autowired": false, "secret": false, "description": "The configuration that the endpoints start from. Each endpoint gets a copy, and its options replace the values of the copy. It also holds the MilvusClient that MilvusConfiguration.setClient() [...] + "host": { "index": 2, "kind": "property", "displayName": "Host", "group": "producer", "label": "", "required": false, "type": "string", "javaType": "java.lang.String", "deprecated": false, "autowired": false, "secret": false, "defaultValue": "localhost", "configurationClass": "org.apache.camel.component.milvus.MilvusConfiguration", "configurationField": "configuration", "description": "The host name or IP address of the Milvus server. Not used when a MilvusClient is set with MilvusCo [...] "lazyStartProducer": { "index": 3, "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 [...] - "port": { "index": 4, "kind": "property", "displayName": "Port", "group": "producer", "label": "", "required": false, "type": "integer", "javaType": "int", "deprecated": false, "autowired": false, "secret": false, "defaultValue": 19530, "configurationClass": "org.apache.camel.component.milvus.MilvusConfiguration", "configurationField": "configuration", "description": "The port to connect to." }, - "timeout": { "index": 5, "kind": "property", "displayName": "Timeout", "group": "producer", "label": "", "required": false, "type": "integer", "javaType": "long", "deprecated": false, "autowired": false, "secret": false, "configurationClass": "org.apache.camel.component.milvus.MilvusConfiguration", "configurationField": "configuration", "description": "Sets a default timeout for all requests" }, - "token": { "index": 6, "kind": "property", "displayName": "Token", "group": "producer", "label": "", "required": false, "type": "string", "javaType": "java.lang.String", "deprecated": false, "autowired": false, "secret": true, "security": "secret", "configurationClass": "org.apache.camel.component.milvus.MilvusConfiguration", "configurationField": "configuration", "description": "Sets the API key to use for authentication" }, + "port": { "index": 4, "kind": "property", "displayName": "Port", "group": "producer", "label": "", "required": false, "type": "integer", "javaType": "int", "deprecated": false, "autowired": false, "secret": false, "defaultValue": 19530, "configurationClass": "org.apache.camel.component.milvus.MilvusConfiguration", "configurationField": "configuration", "description": "The gRPC port of the Milvus server. Not used when a MilvusClient is set with MilvusConfiguration.setClient()." }, + "timeout": { "index": 5, "kind": "property", "displayName": "Timeout", "group": "producer", "label": "", "required": false, "type": "integer", "javaType": "long", "deprecated": false, "autowired": false, "secret": false, "configurationClass": "org.apache.camel.component.milvus.MilvusConfiguration", "configurationField": "configuration", "description": "The timeout in milliseconds for connecting to the Milvus server, 10000 if not set. The value must be greater than 0. It is not a time [...] + "token": { "index": 6, "kind": "property", "displayName": "Token", "group": "producer", "label": "", "required": false, "type": "string", "javaType": "java.lang.String", "deprecated": false, "autowired": false, "secret": true, "security": "secret", "configurationClass": "org.apache.camel.component.milvus.MilvusConfiguration", "configurationField": "configuration", "description": "The token that the client sends to authenticate with Milvus: a user name and password joined by a colon, [...] "autowiredEnabled": { "index": 7, "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": { - "CamelMilvusAction": { "index": 0, "kind": "header", "displayName": "", "group": "producer", "label": "", "required": false, "javaType": "String", "enum": [ "CREATE_COLLECTION", "CREATE_INDEX", "UPSERT", "INSERT", "SEARCH", "QUERY", "DELETE" ], "deprecated": false, "autowired": false, "secret": false, "description": "The action to be performed.", "constantName": "org.apache.camel.component.milvus.MilvusHeaders#ACTION" }, - "CamelMilvusOperationStatus": { "index": 1, "kind": "header", "displayName": "", "group": "producer", "label": "", "required": false, "javaType": "String", "deprecated": false, "autowired": false, "secret": false, "description": "Operation Status.", "constantName": "org.apache.camel.component.milvus.MilvusHeaders#OPERATION_STATUS" }, - "CamelMilvusOperationStatusValue": { "index": 2, "kind": "header", "displayName": "", "group": "producer", "label": "", "required": false, "javaType": "int", "deprecated": false, "autowired": false, "secret": false, "description": "Operation Status Value.", "constantName": "org.apache.camel.component.milvus.MilvusHeaders#OPERATION_STATUS_VALUE" }, - "CamelMilvusTextFieldName": { "index": 3, "kind": "header", "displayName": "", "group": "producer", "label": "", "required": false, "javaType": "String", "deprecated": false, "autowired": false, "secret": false, "description": "Text Field Name for Insert\/Upsert operation", "constantName": "org.apache.camel.component.milvus.MilvusHeaders#TEXT_FIELD_NAME" }, - "CamelMilvusVectorFieldName": { "index": 4, "kind": "header", "displayName": "", "group": "producer", "label": "", "required": false, "javaType": "String", "deprecated": false, "autowired": false, "secret": false, "description": "Vector Field Name for Insert\/Upsert operation", "constantName": "org.apache.camel.component.milvus.MilvusHeaders#VECTOR_FIELD_NAME" }, - "CamelMilvusCollectionName": { "index": 5, "kind": "header", "displayName": "", "group": "producer", "label": "", "required": false, "javaType": "String", "deprecated": false, "autowired": false, "secret": false, "description": "Collection Name for Insert\/Upsert operation", "constantName": "org.apache.camel.component.milvus.MilvusHeaders#COLLECTION_NAME" }, - "CamelMilvusKeyName": { "index": 6, "kind": "header", "displayName": "", "group": "producer", "label": "", "required": false, "javaType": "String", "deprecated": false, "autowired": false, "secret": false, "description": "Key Name for Insert\/Upsert operation", "constantName": "org.apache.camel.component.milvus.MilvusHeaders#KEY_NAME" }, - "CamelMilvusKeyValue": { "index": 7, "kind": "header", "displayName": "", "group": "producer", "label": "", "required": false, "javaType": "String", "deprecated": false, "autowired": false, "secret": false, "description": "Key Value for Insert\/Upsert operation", "constantName": "org.apache.camel.component.milvus.MilvusHeaders#KEY_VALUE" } + "CamelMilvusAction": { "index": 0, "kind": "header", "displayName": "", "group": "producer", "label": "", "required": false, "javaType": "String", "enum": [ "CREATE_COLLECTION", "CREATE_INDEX", "UPSERT", "INSERT", "SEARCH", "QUERY", "DELETE" ], "deprecated": false, "autowired": false, "secret": false, "description": "The action that the producer performs. It wins over the action option. The milvus:embeddings transformer reads it too, and accepts only INSERT and UPSERT.", "constantNam [...] + "CamelMilvusOperationStatus": { "index": 1, "kind": "header", "displayName": "", "group": "producer", "label": "", "required": false, "javaType": "String", "deprecated": false, "autowired": false, "secret": false, "description": "The status code of the response of Milvus. The producer sets it only after an action that succeeded, so it is always 0. When Milvus returns another code, the producer fails the exchange.", "constantName": "org.apache.camel.component.milvus.MilvusHeaders#OPER [...] + "CamelMilvusOperationStatusValue": { "index": 2, "kind": "header", "displayName": "", "group": "producer", "label": "", "required": false, "javaType": "int", "deprecated": false, "autowired": false, "secret": false, "description": "The status code of the response of Milvus as an int, the same value as the CamelMilvusOperationStatus header.", "constantName": "org.apache.camel.component.milvus.MilvusHeaders#OPERATION_STATUS_VALUE" }, + "CamelMilvusTextFieldName": { "index": 3, "kind": "header", "displayName": "", "group": "producer", "label": "", "required": false, "javaType": "String", "deprecated": false, "autowired": false, "secret": false, "description": "The name of the field for the text of the TextSegment, in the InsertParam or UpsertParam that the milvus:embeddings transformer builds. The default is text.", "constantName": "org.apache.camel.component.milvus.MilvusHeaders#TEXT_FIELD_NAME" }, + "CamelMilvusVectorFieldName": { "index": 4, "kind": "header", "displayName": "", "group": "producer", "label": "", "required": false, "javaType": "String", "deprecated": false, "autowired": false, "secret": false, "description": "The name of the field for the embedding vector, in the InsertParam or UpsertParam that the milvus:embeddings transformer builds. The default is vector.", "constantName": "org.apache.camel.component.milvus.MilvusHeaders#VECTOR_FIELD_NAME" }, + "CamelMilvusCollectionName": { "index": 5, "kind": "header", "displayName": "", "group": "producer", "label": "", "required": false, "javaType": "String", "deprecated": false, "autowired": false, "secret": false, "description": "The name of the collection, in the InsertParam or UpsertParam that the milvus:embeddings transformer builds. The default is embeddings: the transformer does not use the collection of the endpoint.", "constantName": "org.apache.camel.component.milvus.MilvusHea [...] + "CamelMilvusKeyName": { "index": 6, "kind": "header", "displayName": "", "group": "producer", "label": "", "required": false, "javaType": "String", "deprecated": false, "autowired": false, "secret": false, "description": "The name of the primary key field, in the InsertParam or UpsertParam that the milvus:embeddings transformer builds. The default is id. The transformer adds the key field only when the CamelMilvusKeyValue header is set.", "constantName": "org.apache.camel.component.m [...] + "CamelMilvusKeyValue": { "index": 7, "kind": "header", "displayName": "", "group": "producer", "label": "", "required": false, "javaType": "String", "deprecated": false, "autowired": false, "secret": false, "description": "The value of the primary key, in the InsertParam or UpsertParam that the milvus:embeddings transformer builds. If not set, the transformer adds no key field, as for a collection whose primary key has autoID enabled.", "constantName": "org.apache.camel.component.mil [...] }, "bodyTypes": { "producerIn": { "carriers": [ "pojo" ], "byOption": [ { "option": "action", "value": "CREATE_COLLECTION", "carriers": [ "pojo" ], "javaType": "io.milvus.param.collection.CreateCollectionParam" }, { "option": "action", "value": "CREATE_INDEX", "carriers": [ "pojo" ], "javaType": "io.milvus.param.index.CreateIndexParam" }, { "option": "action", "value": "UPSERT", "carriers": [ "pojo" ], "javaType": "io.milvus.param.dml.UpsertParam" }, { "option": "action", "value": "INSERT", "carriers" [...] "producerOut": { "carriers": [ "pojo" ], "byOption": [ { "option": "action", "value": "CREATE_COLLECTION", "carriers": [ "pojo" ], "javaType": "io.milvus.param.RpcStatus" }, { "option": "action", "value": "CREATE_INDEX", "carriers": [ "pojo" ], "javaType": "io.milvus.param.RpcStatus" }, { "option": "action", "value": "UPSERT", "carriers": [ "pojo" ], "javaType": "io.milvus.grpc.MutationResult" }, { "option": "action", "value": "INSERT", "carriers": [ "pojo" ], "javaType": "io.milvus. [...] }, "properties": { - "collection": { "index": 0, "kind": "path", "displayName": "Collection", "group": "producer", "label": "", "required": true, "type": "string", "javaType": "java.lang.String", "deprecated": false, "autowired": false, "secret": false, "description": "The collection Name" }, + "collection": { "index": 0, "kind": "path", "displayName": "Collection", "group": "producer", "label": "", "required": true, "type": "string", "javaType": "java.lang.String", "deprecated": false, "autowired": false, "secret": false, "description": "The name of the collection that the producer loads into memory before SEARCH, QUERY and DELETE. The request in the message body names the collection that the action works on, so it must name the same collection." }, "action": { "index": 1, "kind": "parameter", "displayName": "Action", "group": "producer", "label": "", "required": false, "type": "enum", "javaType": "org.apache.camel.component.milvus.MilvusAction", "enum": [ "CREATE_COLLECTION", "CREATE_INDEX", "UPSERT", "INSERT", "SEARCH", "QUERY", "DELETE" ], "deprecated": false, "autowired": false, "secret": false, "configurationClass": "org.apache.camel.component.milvus.MilvusConfiguration", "configurationField": "configuration", "description" [...] - "host": { "index": 2, "kind": "parameter", "displayName": "Host", "group": "producer", "label": "", "required": false, "type": "string", "javaType": "java.lang.String", "deprecated": false, "autowired": false, "secret": false, "defaultValue": "localhost", "configurationClass": "org.apache.camel.component.milvus.MilvusConfiguration", "configurationField": "configuration", "description": "The host to connect to." }, - "port": { "index": 3, "kind": "parameter", "displayName": "Port", "group": "producer", "label": "", "required": false, "type": "integer", "javaType": "int", "deprecated": false, "autowired": false, "secret": false, "defaultValue": 19530, "configurationClass": "org.apache.camel.component.milvus.MilvusConfiguration", "configurationField": "configuration", "description": "The port to connect to." }, - "timeout": { "index": 4, "kind": "parameter", "displayName": "Timeout", "group": "producer", "label": "", "required": false, "type": "integer", "javaType": "long", "deprecated": false, "autowired": false, "secret": false, "configurationClass": "org.apache.camel.component.milvus.MilvusConfiguration", "configurationField": "configuration", "description": "Sets a default timeout for all requests" }, - "token": { "index": 5, "kind": "parameter", "displayName": "Token", "group": "producer", "label": "", "required": false, "type": "string", "javaType": "java.lang.String", "deprecated": false, "autowired": false, "secret": true, "security": "secret", "configurationClass": "org.apache.camel.component.milvus.MilvusConfiguration", "configurationField": "configuration", "description": "Sets the API key to use for authentication" }, + "host": { "index": 2, "kind": "parameter", "displayName": "Host", "group": "producer", "label": "", "required": false, "type": "string", "javaType": "java.lang.String", "deprecated": false, "autowired": false, "secret": false, "defaultValue": "localhost", "configurationClass": "org.apache.camel.component.milvus.MilvusConfiguration", "configurationField": "configuration", "description": "The host name or IP address of the Milvus server. Not used when a MilvusClient is set with MilvusC [...] + "port": { "index": 3, "kind": "parameter", "displayName": "Port", "group": "producer", "label": "", "required": false, "type": "integer", "javaType": "int", "deprecated": false, "autowired": false, "secret": false, "defaultValue": 19530, "configurationClass": "org.apache.camel.component.milvus.MilvusConfiguration", "configurationField": "configuration", "description": "The gRPC port of the Milvus server. Not used when a MilvusClient is set with MilvusConfiguration.setClient()." }, + "timeout": { "index": 4, "kind": "parameter", "displayName": "Timeout", "group": "producer", "label": "", "required": false, "type": "integer", "javaType": "long", "deprecated": false, "autowired": false, "secret": false, "configurationClass": "org.apache.camel.component.milvus.MilvusConfiguration", "configurationField": "configuration", "description": "The timeout in milliseconds for connecting to the Milvus server, 10000 if not set. The value must be greater than 0. It is not a tim [...] + "token": { "index": 5, "kind": "parameter", "displayName": "Token", "group": "producer", "label": "", "required": false, "type": "string", "javaType": "java.lang.String", "deprecated": false, "autowired": false, "secret": true, "security": "secret", "configurationClass": "org.apache.camel.component.milvus.MilvusConfiguration", "configurationField": "configuration", "description": "The token that the client sends to authenticate with Milvus: a user name and password joined by a colon, [...] "lazyStartProducer": { "index": 6, "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/camel-ai/camel-milvus/src/main/docs/milvus-component.adoc b/components/camel-ai/camel-milvus/src/main/docs/milvus-component.adoc index a23419152a22..19d863dcfa39 100644 --- a/components/camel-ai/camel-milvus/src/main/docs/milvus-component.adoc +++ b/components/camel-ai/camel-milvus/src/main/docs/milvus-component.adoc @@ -2,7 +2,7 @@ :doctitle: Milvus :shortname: milvus :artifactid: camel-milvus -:description: Perform operations on the Milvus Vector Database. +:description: Create collections and indexes, and insert, upsert, delete, search and query entities in the Milvus vector database. :since: 4.5 :supportlevel: Stable :tabs-sync-option: @@ -274,5 +274,3 @@ This is particularly important when you design your Milvus database. The transformer only supports insert/upsert objects, so the only operation you can set via header are INSERT and UPSERT, otherwise the transformer will fail with an error log. The transformer runs before the endpoint, so it reads the `CamelMilvusAction` header only, not the `action` option of the endpoint. - - diff --git a/components/camel-ai/camel-milvus/src/main/java/org/apache/camel/component/milvus/MilvusComponent.java b/components/camel-ai/camel-milvus/src/main/java/org/apache/camel/component/milvus/MilvusComponent.java index 878a543b81b1..39c0720397c3 100644 --- a/components/camel-ai/camel-milvus/src/main/java/org/apache/camel/component/milvus/MilvusComponent.java +++ b/components/camel-ai/camel-milvus/src/main/java/org/apache/camel/component/milvus/MilvusComponent.java @@ -30,7 +30,9 @@ import org.slf4j.LoggerFactory; public class MilvusComponent extends DefaultComponent { private static final Logger LOGGER = LoggerFactory.getLogger(MilvusComponent.class); - @Metadata + @Metadata(description = "The configuration that the endpoints start from. Each endpoint gets a copy, and its options" + + " replace the values of the copy. It also holds the MilvusClient that MilvusConfiguration.setClient()" + + " sets, which the endpoints share.") private MilvusConfiguration configuration; public MilvusComponent() { @@ -47,9 +49,6 @@ public class MilvusComponent extends DefaultComponent { return configuration; } - /** - * The configuration; - */ public void setConfiguration(MilvusConfiguration configuration) { this.configuration = configuration; } diff --git a/components/camel-ai/camel-milvus/src/main/java/org/apache/camel/component/milvus/MilvusConfiguration.java b/components/camel-ai/camel-milvus/src/main/java/org/apache/camel/component/milvus/MilvusConfiguration.java index c40a9d5dc923..e83bac2e52cb 100644 --- a/components/camel-ai/camel-milvus/src/main/java/org/apache/camel/component/milvus/MilvusConfiguration.java +++ b/components/camel-ai/camel-milvus/src/main/java/org/apache/camel/component/milvus/MilvusConfiguration.java @@ -27,22 +27,29 @@ import org.apache.camel.spi.UriParams; @UriParams public class MilvusConfiguration implements Cloneable { - @UriParam + @UriParam(description = "The action to perform. The CamelMilvusAction header, when set, wins over this option.") private MilvusAction action; @Metadata(defaultValue = "localhost") - @UriParam + @UriParam(description = "The host name or IP address of the Milvus server." + + " Not used when a MilvusClient is set with MilvusConfiguration.setClient().") private String host = "localhost"; @Metadata(defaultValue = "19530") - @UriParam + @UriParam(description = "The gRPC port of the Milvus server." + + " Not used when a MilvusClient is set with MilvusConfiguration.setClient().") private int port = 19530; @Metadata(security = "secret") - @UriParam + @UriParam(description = "The token that the client sends to authenticate with Milvus: a user name and password joined" + + " by a colon, or an API key of Zilliz Cloud. If not set, the client sends" + + " no credentials." + + " Not used when a MilvusClient is set with MilvusConfiguration.setClient().") private String token; - @UriParam + @UriParam(description = "The timeout in milliseconds for connecting to the Milvus server, 10000 if not set. The value" + + " must be greater than 0. It is not a timeout of each request: the requests have no deadline." + + " Not used when a MilvusClient is set with MilvusConfiguration.setClient().") private long timeout = 10000L; @Metadata(autowired = true) @@ -52,9 +59,6 @@ public class MilvusConfiguration implements Cloneable { return action; } - /** - * The action to perform. The CamelMilvusAction header, when set, wins over this option. - */ public void setAction(MilvusAction action) { this.action = action; } @@ -63,9 +67,6 @@ public class MilvusConfiguration implements Cloneable { return host; } - /** - * The host to connect to. - */ public void setHost(String host) { this.host = host; } @@ -74,9 +75,6 @@ public class MilvusConfiguration implements Cloneable { return port; } - /** - * The port to connect to. - */ public void setPort(int port) { this.port = port; } @@ -85,9 +83,6 @@ public class MilvusConfiguration implements Cloneable { return token; } - /** - * Sets the API key to use for authentication - */ public void setToken(String token) { this.token = token; } @@ -96,9 +91,6 @@ public class MilvusConfiguration implements Cloneable { return timeout; } - /** - * Sets a default timeout for all requests - */ public void setTimeout(long timeout) { this.timeout = timeout; } diff --git a/components/camel-ai/camel-milvus/src/main/java/org/apache/camel/component/milvus/MilvusEndpoint.java b/components/camel-ai/camel-milvus/src/main/java/org/apache/camel/component/milvus/MilvusEndpoint.java index ac27f94c80e1..70363a91d7fc 100644 --- a/components/camel-ai/camel-milvus/src/main/java/org/apache/camel/component/milvus/MilvusEndpoint.java +++ b/components/camel-ai/camel-milvus/src/main/java/org/apache/camel/component/milvus/MilvusEndpoint.java @@ -37,7 +37,7 @@ import org.apache.camel.spi.UriPath; import org.apache.camel.support.DefaultEndpoint; /** - * Perform operations on the Milvus Vector Database. + * Create collections and indexes, and insert, upsert, delete, search and query entities in the Milvus vector database. */ @UriEndpoint( firstVersion = "4.5.0", @@ -96,7 +96,9 @@ import org.apache.camel.support.DefaultEndpoint; public class MilvusEndpoint extends DefaultEndpoint implements EndpointServiceLocation { @Metadata(required = true) - @UriPath(description = "The collection Name") + @UriPath(description = "The name of the collection that the producer loads into memory before SEARCH, QUERY and DELETE." + + " The request in the message body names the collection that the action works on, so it must" + + " name the same collection.") private final String collection; @UriParam diff --git a/components/camel-ai/camel-milvus/src/main/java/org/apache/camel/component/milvus/MilvusHeaders.java b/components/camel-ai/camel-milvus/src/main/java/org/apache/camel/component/milvus/MilvusHeaders.java index 9903a4168514..02819c7134e0 100644 --- a/components/camel-ai/camel-milvus/src/main/java/org/apache/camel/component/milvus/MilvusHeaders.java +++ b/components/camel-ai/camel-milvus/src/main/java/org/apache/camel/component/milvus/MilvusHeaders.java @@ -19,28 +19,47 @@ package org.apache.camel.component.milvus; import org.apache.camel.spi.Metadata; public class MilvusHeaders { - @Metadata(description = "The action to be performed.", javaType = "String", + @Metadata(description = "The action that the producer performs. It wins over the action option. The milvus:embeddings" + + " transformer reads it too, and accepts only INSERT and UPSERT.", + javaType = "String", enums = "CREATE_COLLECTION,CREATE_INDEX,UPSERT,INSERT,SEARCH,QUERY,DELETE") public static final String ACTION = "CamelMilvusAction"; - @Metadata(description = "Operation Status.", javaType = "String") + @Metadata(description = "The status code of the response of Milvus. The producer sets it only after an action that" + + " succeeded, so it is always 0. When Milvus returns another code, the producer fails the exchange.", + javaType = "String") public static final String OPERATION_STATUS = "CamelMilvusOperationStatus"; - @Metadata(description = "Operation Status Value.", javaType = "int") + @Metadata(description = "The status code of the response of Milvus as an int, the same value as the" + + " CamelMilvusOperationStatus header.", + javaType = "int") public static final String OPERATION_STATUS_VALUE = "CamelMilvusOperationStatusValue"; - @Metadata(description = "Text Field Name for Insert/Upsert operation", javaType = "String") + @Metadata(description = "The name of the field for the text of the TextSegment, in the InsertParam or UpsertParam" + + " that the milvus:embeddings transformer builds. The default is text.", + javaType = "String") public static final String TEXT_FIELD_NAME = "CamelMilvusTextFieldName"; - @Metadata(description = "Vector Field Name for Insert/Upsert operation", javaType = "String") + @Metadata(description = "The name of the field for the embedding vector, in the InsertParam or UpsertParam that the" + + " milvus:embeddings transformer builds. The default is vector.", + javaType = "String") public static final String VECTOR_FIELD_NAME = "CamelMilvusVectorFieldName"; - @Metadata(description = "Collection Name for Insert/Upsert operation", javaType = "String") + @Metadata(description = "The name of the collection, in the InsertParam or UpsertParam that the milvus:embeddings" + + " transformer builds. The default is embeddings: the transformer does not use the collection of" + + " the endpoint.", + javaType = "String") public static final String COLLECTION_NAME = "CamelMilvusCollectionName"; - @Metadata(description = "Key Name for Insert/Upsert operation", javaType = "String") + @Metadata(description = "The name of the primary key field, in the InsertParam or UpsertParam that the" + + " milvus:embeddings transformer builds. The default is id. The transformer adds the key field only" + + " when the CamelMilvusKeyValue header is set.", + javaType = "String") public static final String KEY_NAME = "CamelMilvusKeyName"; - @Metadata(description = "Key Value for Insert/Upsert operation", javaType = "String") + @Metadata(description = "The value of the primary key, in the InsertParam or UpsertParam that the milvus:embeddings" + + " transformer builds. If not set, the transformer adds no key field, as for a collection whose" + + " primary key has autoID enabled.", + javaType = "String") public static final String KEY_VALUE = "CamelMilvusKeyValue"; } diff --git a/dsl/camel-componentdsl/src/generated/java/org/apache/camel/builder/component/ComponentsBuilderFactory.java b/dsl/camel-componentdsl/src/generated/java/org/apache/camel/builder/component/ComponentsBuilderFactory.java index 0cb8e66c224b..c64d99d28493 100644 --- a/dsl/camel-componentdsl/src/generated/java/org/apache/camel/builder/component/ComponentsBuilderFactory.java +++ b/dsl/camel-componentdsl/src/generated/java/org/apache/camel/builder/component/ComponentsBuilderFactory.java @@ -3725,7 +3725,8 @@ public interface ComponentsBuilderFactory { } /** * Milvus (camel-milvus) - * Perform operations on the Milvus Vector Database. + * Create collections and indexes, and insert, upsert, delete, search and + * query entities in the Milvus vector database. * * Category: database,ai * Since: 4.5 diff --git a/dsl/camel-componentdsl/src/generated/java/org/apache/camel/builder/component/dsl/MilvusComponentBuilderFactory.java b/dsl/camel-componentdsl/src/generated/java/org/apache/camel/builder/component/dsl/MilvusComponentBuilderFactory.java index 18fe2ad3e225..8f2035a4a0ec 100644 --- a/dsl/camel-componentdsl/src/generated/java/org/apache/camel/builder/component/dsl/MilvusComponentBuilderFactory.java +++ b/dsl/camel-componentdsl/src/generated/java/org/apache/camel/builder/component/dsl/MilvusComponentBuilderFactory.java @@ -24,7 +24,8 @@ import org.apache.camel.builder.component.ComponentBuilder; import org.apache.camel.component.milvus.MilvusComponent; /** - * Perform operations on the Milvus Vector Database. + * Create collections and indexes, and insert, upsert, delete, search and query + * entities in the Milvus vector database. * * Generated by camel build tools - do NOT edit this file! */ @@ -33,7 +34,8 @@ public interface MilvusComponentBuilderFactory { /** * Milvus (camel-milvus) - * Perform operations on the Milvus Vector Database. + * Create collections and indexes, and insert, upsert, delete, search and + * query entities in the Milvus vector database. * * Category: database,ai * Since: 4.5 @@ -68,7 +70,10 @@ public interface MilvusComponentBuilderFactory { } /** - * The configuration;. + * The configuration that the endpoints start from. Each endpoint gets a + * copy, and its options replace the values of the copy. It also holds + * the MilvusClient that MilvusConfiguration.setClient() sets, which the + * endpoints share. * * The option is a: * <code>org.apache.camel.component.milvus.MilvusConfiguration</code> type. @@ -85,7 +90,8 @@ public interface MilvusComponentBuilderFactory { /** - * The host to connect to. + * The host name or IP address of the Milvus server. Not used when a + * MilvusClient is set with MilvusConfiguration.setClient(). * * The option is a: <code>java.lang.String</code> type. * @@ -127,7 +133,8 @@ public interface MilvusComponentBuilderFactory { /** - * The port to connect to. + * The gRPC port of the Milvus server. Not used when a MilvusClient is + * set with MilvusConfiguration.setClient(). * * The option is a: <code>int</code> type. * @@ -143,7 +150,10 @@ public interface MilvusComponentBuilderFactory { } /** - * Sets a default timeout for all requests. + * The timeout in milliseconds for connecting to the Milvus server, + * 10000 if not set. The value must be greater than 0. It is not a + * timeout of each request: the requests have no deadline. Not used when + * a MilvusClient is set with MilvusConfiguration.setClient(). * * The option is a: <code>long</code> type. * @@ -158,7 +168,10 @@ public interface MilvusComponentBuilderFactory { } /** - * Sets the API key to use for authentication. + * The token that the client sends to authenticate with Milvus: a user + * name and password joined by a colon, or an API key of Zilliz Cloud. + * If not set, the client sends no credentials. Not used when a + * MilvusClient is set with MilvusConfiguration.setClient(). * * The option is a: <code>java.lang.String</code> type. * diff --git a/dsl/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/EndpointHeaderBuilders.java b/dsl/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/EndpointHeaderBuilders.java index a8e44c60f62c..0e1c49e552ae 100644 --- a/dsl/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/EndpointHeaderBuilders.java +++ b/dsl/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/EndpointHeaderBuilders.java @@ -2964,7 +2964,8 @@ public class EndpointHeaderBuilders { } /** * Milvus (camel-milvus) - * Perform operations on the Milvus Vector Database. + * Create collections and indexes, and insert, upsert, delete, search and + * query entities in the Milvus vector database. * * Category: database,ai * Since: 4.5 diff --git a/dsl/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/StaticEndpointBuilders.java b/dsl/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/StaticEndpointBuilders.java index 1a1d1f00b57d..3c0a214206e7 100644 --- a/dsl/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/StaticEndpointBuilders.java +++ b/dsl/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/StaticEndpointBuilders.java @@ -12516,7 +12516,8 @@ public class StaticEndpointBuilders { } /** * Milvus (camel-milvus) - * Perform operations on the Milvus Vector Database. + * Create collections and indexes, and insert, upsert, delete, search and + * query entities in the Milvus vector database. * * Category: database,ai * Since: 4.5 @@ -12525,7 +12526,9 @@ public class StaticEndpointBuilders { * Syntax: <code>milvus:collection</code> * * Path parameter: collection (required) - * The collection Name + * The name of the collection that the producer loads into memory before + * SEARCH, QUERY and DELETE. The request in the message body names the + * collection that the action works on, so it must name the same collection. * * @param path collection * @return the dsl builder @@ -12535,7 +12538,8 @@ public class StaticEndpointBuilders { } /** * Milvus (camel-milvus) - * Perform operations on the Milvus Vector Database. + * Create collections and indexes, and insert, upsert, delete, search and + * query entities in the Milvus vector database. * * Category: database,ai * Since: 4.5 @@ -12544,7 +12548,9 @@ public class StaticEndpointBuilders { * Syntax: <code>milvus:collection</code> * * Path parameter: collection (required) - * The collection Name + * The name of the collection that the producer loads into memory before + * SEARCH, QUERY and DELETE. The request in the message body names the + * collection that the action works on, so it must name the same collection. * * @param componentName to use a custom component name for the endpoint * instead of the default name diff --git a/dsl/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/dsl/MilvusEndpointBuilderFactory.java b/dsl/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/dsl/MilvusEndpointBuilderFactory.java index 993372b9c0cb..fc2370553d19 100644 --- a/dsl/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/dsl/MilvusEndpointBuilderFactory.java +++ b/dsl/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/dsl/MilvusEndpointBuilderFactory.java @@ -27,7 +27,8 @@ import org.apache.camel.builder.EndpointProducerBuilder; import org.apache.camel.builder.endpoint.AbstractEndpointBuilder; /** - * Perform operations on the Milvus Vector Database. + * Create collections and indexes, and insert, upsert, delete, search and query + * entities in the Milvus vector database. * * Generated by camel build tools - do NOT edit this file! */ @@ -77,7 +78,8 @@ public interface MilvusEndpointBuilderFactory { return this; } /** - * The host to connect to. + * The host name or IP address of the Milvus server. Not used when a + * MilvusClient is set with MilvusConfiguration.setClient(). * * The option is a: <code>java.lang.String</code> type. * @@ -92,7 +94,8 @@ public interface MilvusEndpointBuilderFactory { return this; } /** - * The port to connect to. + * The gRPC port of the Milvus server. Not used when a MilvusClient is + * set with MilvusConfiguration.setClient(). * * The option is a: <code>int</code> type. * @@ -107,7 +110,8 @@ public interface MilvusEndpointBuilderFactory { return this; } /** - * The port to connect to. + * The gRPC port of the Milvus server. Not used when a MilvusClient is + * set with MilvusConfiguration.setClient(). * * The option will be converted to a <code>int</code> type. * @@ -122,7 +126,10 @@ public interface MilvusEndpointBuilderFactory { return this; } /** - * Sets a default timeout for all requests. + * The timeout in milliseconds for connecting to the Milvus server, + * 10000 if not set. The value must be greater than 0. It is not a + * timeout of each request: the requests have no deadline. Not used when + * a MilvusClient is set with MilvusConfiguration.setClient(). * * The option is a: <code>long</code> type. * @@ -136,7 +143,10 @@ public interface MilvusEndpointBuilderFactory { return this; } /** - * Sets a default timeout for all requests. + * The timeout in milliseconds for connecting to the Milvus server, + * 10000 if not set. The value must be greater than 0. It is not a + * timeout of each request: the requests have no deadline. Not used when + * a MilvusClient is set with MilvusConfiguration.setClient(). * * The option will be converted to a <code>long</code> type. * @@ -150,7 +160,10 @@ public interface MilvusEndpointBuilderFactory { return this; } /** - * Sets the API key to use for authentication. + * The token that the client sends to authenticate with Milvus: a user + * name and password joined by a colon, or an API key of Zilliz Cloud. + * If not set, the client sends no credentials. Not used when a + * MilvusClient is set with MilvusConfiguration.setClient(). * * The option is a: <code>java.lang.String</code> type. * @@ -226,7 +239,8 @@ public interface MilvusEndpointBuilderFactory { public interface MilvusBuilders { /** * Milvus (camel-milvus) - * Perform operations on the Milvus Vector Database. + * Create collections and indexes, and insert, upsert, delete, search + * and query entities in the Milvus vector database. * * Category: database,ai * Since: 4.5 @@ -239,7 +253,8 @@ public interface MilvusEndpointBuilderFactory { } /** * Milvus (camel-milvus) - * Perform operations on the Milvus Vector Database. + * Create collections and indexes, and insert, upsert, delete, search + * and query entities in the Milvus vector database. * * Category: database,ai * Since: 4.5 @@ -248,7 +263,10 @@ public interface MilvusEndpointBuilderFactory { * Syntax: <code>milvus:collection</code> * * Path parameter: collection (required) - * The collection Name + * The name of the collection that the producer loads into memory before + * SEARCH, QUERY and DELETE. The request in the message body names the + * collection that the action works on, so it must name the same + * collection. * * @param path collection * @return the dsl builder @@ -258,7 +276,8 @@ public interface MilvusEndpointBuilderFactory { } /** * Milvus (camel-milvus) - * Perform operations on the Milvus Vector Database. + * Create collections and indexes, and insert, upsert, delete, search + * and query entities in the Milvus vector database. * * Category: database,ai * Since: 4.5 @@ -267,7 +286,10 @@ public interface MilvusEndpointBuilderFactory { * Syntax: <code>milvus:collection</code> * * Path parameter: collection (required) - * The collection Name + * The name of the collection that the producer loads into memory before + * SEARCH, QUERY and DELETE. The request in the message body names the + * collection that the action works on, so it must name the same + * collection. * * @param componentName to use a custom component name for the endpoint * instead of the default name @@ -290,7 +312,9 @@ public interface MilvusEndpointBuilderFactory { public static final MilvusHeaderNameBuilder INSTANCE = new MilvusHeaderNameBuilder(); /** - * The action to be performed. + * The action that the producer performs. It wins over the action + * option. The milvus:embeddings transformer reads it too, and accepts + * only INSERT and UPSERT. * * The option is a: {@code String} type. * @@ -302,7 +326,9 @@ public interface MilvusEndpointBuilderFactory { return "CamelMilvusAction"; } /** - * Operation Status. + * The status code of the response of Milvus. The producer sets it only + * after an action that succeeded, so it is always 0. When Milvus + * returns another code, the producer fails the exchange. * * The option is a: {@code String} type. * @@ -314,7 +340,8 @@ public interface MilvusEndpointBuilderFactory { return "CamelMilvusOperationStatus"; } /** - * Operation Status Value. + * The status code of the response of Milvus as an int, the same value + * as the CamelMilvusOperationStatus header. * * The option is a: {@code int} type. * @@ -326,7 +353,9 @@ public interface MilvusEndpointBuilderFactory { return "CamelMilvusOperationStatusValue"; } /** - * Text Field Name for Insert/Upsert operation. + * The name of the field for the text of the TextSegment, in the + * InsertParam or UpsertParam that the milvus:embeddings transformer + * builds. The default is text. * * The option is a: {@code String} type. * @@ -338,7 +367,9 @@ public interface MilvusEndpointBuilderFactory { return "CamelMilvusTextFieldName"; } /** - * Vector Field Name for Insert/Upsert operation. + * The name of the field for the embedding vector, in the InsertParam or + * UpsertParam that the milvus:embeddings transformer builds. The + * default is vector. * * The option is a: {@code String} type. * @@ -350,7 +381,9 @@ public interface MilvusEndpointBuilderFactory { return "CamelMilvusVectorFieldName"; } /** - * Collection Name for Insert/Upsert operation. + * The name of the collection, in the InsertParam or UpsertParam that + * the milvus:embeddings transformer builds. The default is embeddings: + * the transformer does not use the collection of the endpoint. * * The option is a: {@code String} type. * @@ -362,7 +395,10 @@ public interface MilvusEndpointBuilderFactory { return "CamelMilvusCollectionName"; } /** - * Key Name for Insert/Upsert operation. + * The name of the primary key field, in the InsertParam or UpsertParam + * that the milvus:embeddings transformer builds. The default is id. The + * transformer adds the key field only when the CamelMilvusKeyValue + * header is set. * * The option is a: {@code String} type. * @@ -374,7 +410,10 @@ public interface MilvusEndpointBuilderFactory { return "CamelMilvusKeyName"; } /** - * Key Value for Insert/Upsert operation. + * The value of the primary key, in the InsertParam or UpsertParam that + * the milvus:embeddings transformer builds. If not set, the transformer + * adds no key field, as for a collection whose primary key has autoID + * enabled. * * The option is a: {@code String} type. * diff --git a/tasks/component-descriptions.md b/tasks/component-descriptions.md index 41795a8f5374..36fc190d66e2 100644 --- a/tasks/component-descriptions.md +++ b/tasks/component-descriptions.md @@ -270,7 +270,7 @@ or removes its row. | camel-metrics | metrics | yes | | camel-micrometer | micrometer | | | camel-milo | milo-browse, milo-client, milo-server | | -| camel-milvus | milvus | | +| camel-milvus | milvus | yes | | camel-mina | mina | | | camel-mina-sftp | mina-sftp | | | camel-minio | minio (deprecated) | |
