You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by ac...@apache.org on 2026/01/23 11:37:04 UTC
(camel) branch main updated: 22895 (#20997)
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 6bc0fd879f35 22895 (#20997)
6bc0fd879f35 is described below
commit 6bc0fd879f350c8f7dde6bbaad6431e032e00b8d
Author: Andrea Cosentino <an...@gmail.com>
AuthorDate: Fri Jan 23 12:36:59 2026 +0100
22895 (#20997)
* CAMEL-22895 - Camel-Chroma: Remove the component
Signed-off-by: Andrea Cosentino <an...@gmail.com>
* CAMEL-22895 - Camel-Chroma: Remove the component
Signed-off-by: Andrea Cosentino <an...@gmail.com>
---------
Signed-off-by: Andrea Cosentino <an...@gmail.com>
---
bom/camel-bom/pom.xml | 5 -
camel-sbom/camel-sbom.json | 106 -----
camel-sbom/camel-sbom.xml | 79 ----
catalog/camel-allcomponents/pom.xml | 23 --
.../org/apache/camel/catalog/components.properties | 1 -
.../apache/camel/catalog/components/chroma.json | 53 ---
components/camel-ai/camel-chroma/pom.xml | 85 ----
.../chroma/ChromaComponentConfigurer.java | 76 ----
.../chroma/ChromaConfigurationConfigurer.java | 63 ---
.../component/chroma/ChromaEndpointConfigurer.java | 60 ---
.../component/chroma/ChromaEndpointUriFactory.java | 73 ----
.../org/apache/camel/component/chroma/chroma.json | 53 ---
.../services/org/apache/camel/component.properties | 7 -
.../services/org/apache/camel/component/chroma | 2 -
.../org/apache/camel/configurer/chroma-component | 2 -
.../org/apache/camel/configurer/chroma-endpoint | 2 -
...ache.camel.component.chroma.ChromaConfiguration | 2 -
.../org/apache/camel/urifactory/chroma-endpoint | 2 -
.../src/main/docs/chroma-component.adoc | 456 ---------------------
.../org/apache/camel/component/chroma/Chroma.java | 24 --
.../camel/component/chroma/ChromaAction.java | 29 --
.../camel/component/chroma/ChromaComponent.java | 68 ---
.../component/chroma/ChromaConfiguration.java | 101 -----
.../camel/component/chroma/ChromaEndpoint.java | 131 ------
.../camel/component/chroma/ChromaHeaders.java | 62 ---
.../camel/component/chroma/ChromaProducer.java | 275 -------------
.../camel/component/chroma/ChromaTestSupport.java | 88 ----
.../component/chroma/it/ChromaContainerIT.java | 181 --------
.../src/test/resources/log4j2.properties | 30 --
components/camel-ai/pom.xml | 20 -
.../org/apache/camel/main/components.properties | 1 -
.../modules/ROOT/examples/json/chroma.json | 1 -
docs/components/modules/ROOT/nav.adoc | 1 -
.../modules/ROOT/pages/chroma-component.adoc | 1 -
.../component/ComponentsBuilderFactory.java | 13 -
.../dsl/ChromaComponentBuilderFactory.java | 177 --------
.../builder/endpoint/EndpointBuilderFactory.java | 1 -
.../camel/builder/endpoint/EndpointBuilders.java | 1 -
.../builder/endpoint/StaticEndpointBuilders.java | 40 --
.../endpoint/dsl/ChromaEndpointBuilderFactory.java | 372 -----------------
.../camel-component-known-dependencies.properties | 1 -
parent/pom.xml | 6 -
test-infra/camel-test-infra-chroma/pom.xml | 63 ---
.../test/infra/chroma/common/ChromaProperties.java | 27 --
.../infra/chroma/services/ChromaInfraService.java | 30 --
.../services/ChromaLocalContainerInfraService.java | 109 -----
.../chroma/services/ChromaRemoteInfraService.java | 47 ---
.../src/main/resources/META-INF/MANIFEST.MF | 1 -
.../infra/chroma/services/container.properties | 17 -
.../test/infra/chroma/services/ChromaService.java | 26 --
.../chroma/services/ChromaServiceFactory.java | 72 ----
test-infra/pom.xml | 1 -
.../apache/camel/maven/packaging/MojoHelper.java | 2 +-
53 files changed, 1 insertion(+), 3168 deletions(-)
diff --git a/bom/camel-bom/pom.xml b/bom/camel-bom/pom.xml
index df7c5c4ef8c7..2c4a3edcd3c8 100644
--- a/bom/camel-bom/pom.xml
+++ b/bom/camel-bom/pom.xml
@@ -451,11 +451,6 @@
<artifactId>camel-chatscript</artifactId>
<version>4.18.0-SNAPSHOT</version>
</dependency>
- <dependency>
- <groupId>org.apache.camel</groupId>
- <artifactId>camel-chroma</artifactId>
- <version>4.18.0-SNAPSHOT</version>
- </dependency>
<dependency>
<groupId>org.apache.camel</groupId>
<artifactId>camel-chunk</artifactId>
diff --git a/camel-sbom/camel-sbom.json b/camel-sbom/camel-sbom.json
index ca923db8ed30..814952215a5a 100644
--- a/camel-sbom/camel-sbom.json
+++ b/camel-sbom/camel-sbom.json
@@ -34121,46 +34121,6 @@
}
]
},
- {
- "type" : "library",
- "bom-ref" : "pkg:maven/org.apache.camel/camel-test-infra-chroma@4.18.0-SNAPSHOT?type=jar",
- "publisher" : "The Apache Software Foundation",
- "group" : "org.apache.camel",
- "name" : "camel-test-infra-chroma",
- "version" : "4.18.0-SNAPSHOT",
- "description" : "Chroma test infrastructure for Camel",
- "licenses" : [
- {
- "license" : {
- "id" : "Apache-2.0",
- "url" : "https://www.apache.org/licenses/LICENSE-2.0"
- }
- }
- ],
- "purl" : "pkg:maven/org.apache.camel/camel-test-infra-chroma@4.18.0-SNAPSHOT?type=jar",
- "externalReferences" : [
- {
- "type" : "website",
- "url" : "https://camel.apache.org/camel-parent/test-infra/camel-test-infra-parent/camel-test-infra-chroma"
- },
- {
- "type" : "distribution-intake",
- "url" : "https://repository.apache.org/service/local/staging/deploy/maven2"
- },
- {
- "type" : "issue-tracker",
- "url" : "https://issues.apache.org/jira/browse/CAMEL"
- },
- {
- "type" : "mailing-list",
- "url" : "dev-subscribe@camel.apache.org"
- },
- {
- "type" : "vcs",
- "url" : "https://gitbox.apache.org/repos/asf?p=camel.git;a=summary/camel-parent/test-infra/camel-test-infra-parent/camel-test-infra-chroma"
- }
- ]
- },
{
"type" : "library",
"bom-ref" : "pkg:maven/org.testcontainers/testcontainers-chromadb@2.0.3?type=jar",
@@ -56387,46 +56347,6 @@
}
]
},
- {
- "type" : "library",
- "bom-ref" : "pkg:maven/org.apache.camel/camel-chroma@4.18.0-SNAPSHOT?type=jar",
- "publisher" : "The Apache Software Foundation",
- "group" : "org.apache.camel",
- "name" : "camel-chroma",
- "version" : "4.18.0-SNAPSHOT",
- "description" : "Camel Chroma DB support",
- "licenses" : [
- {
- "license" : {
- "id" : "Apache-2.0",
- "url" : "https://www.apache.org/licenses/LICENSE-2.0"
- }
- }
- ],
- "purl" : "pkg:maven/org.apache.camel/camel-chroma@4.18.0-SNAPSHOT?type=jar",
- "externalReferences" : [
- {
- "type" : "website",
- "url" : "https://camel.apache.org/camel-parent/components/camel-ai-parent/camel-chroma"
- },
- {
- "type" : "distribution-intake",
- "url" : "https://repository.apache.org/service/local/staging/deploy/maven2"
- },
- {
- "type" : "issue-tracker",
- "url" : "https://issues.apache.org/jira/browse/CAMEL"
- },
- {
- "type" : "mailing-list",
- "url" : "dev-subscribe@camel.apache.org"
- },
- {
- "type" : "vcs",
- "url" : "https://gitbox.apache.org/repos/asf?p=camel.git;a=summary/camel-parent/components/camel-ai-parent/camel-chroma"
- }
- ]
- },
{
"type" : "library",
"bom-ref" : "pkg:maven/dev.langchain4j/langchain4j-core@1.10.0?type=jar",
@@ -215695,7 +215615,6 @@
"pkg:maven/org.apache.camel/camel-test-infra-fhir@4.18.0-SNAPSHOT?type=jar",
"pkg:maven/org.apache.camel/camel-test-infra-mosquitto@4.18.0-SNAPSHOT?type=jar",
"pkg:maven/org.apache.camel/camel-test-infra-chatscript@4.18.0-SNAPSHOT?type=jar",
- "pkg:maven/org.apache.camel/camel-test-infra-chroma@4.18.0-SNAPSHOT?type=jar",
"pkg:maven/org.apache.camel/camel-test-infra-openai-mock@4.18.0-SNAPSHOT?type=jar",
"pkg:maven/org.apache.camel/camel-test-infra-openldap@4.18.0-SNAPSHOT?type=jar",
"pkg:maven/org.apache.camel/camel-test-infra-ignite@4.18.0-SNAPSHOT?type=jar",
@@ -218382,22 +218301,6 @@
"pkg:maven/org.apache.camel/spi-annotations@4.18.0-SNAPSHOT?type=jar"
]
},
- {
- "ref" : "pkg:maven/org.apache.camel/camel-test-infra-chroma@4.18.0-SNAPSHOT?type=jar",
- "dependsOn" : [
- "pkg:maven/org.apache.camel/camel-test-infra-common@4.18.0-SNAPSHOT?classifier=tests&type=test-jar",
- "pkg:maven/org.testcontainers/testcontainers@2.0.3?type=jar",
- "pkg:maven/org.testcontainers/testcontainers-chromadb@2.0.3?type=jar",
- "pkg:maven/org.apache.camel/camel-util@4.18.0-SNAPSHOT?type=jar",
- "pkg:maven/org.apache.camel/spi-annotations@4.18.0-SNAPSHOT?type=jar"
- ]
- },
- {
- "ref" : "pkg:maven/org.testcontainers/testcontainers-chromadb@2.0.3?type=jar",
- "dependsOn" : [
- "pkg:maven/org.testcontainers/testcontainers@2.0.3?type=jar"
- ]
- },
{
"ref" : "pkg:maven/org.apache.camel/camel-test-infra-openai-mock@4.18.0-SNAPSHOT?type=jar",
"dependsOn" : [
@@ -221125,7 +221028,6 @@
"ref" : "pkg:maven/org.apache.camel/camel-ai-parent@4.18.0-SNAPSHOT?type=pom",
"dependsOn" : [
"pkg:maven/org.apache.camel/camel-chatscript@4.18.0-SNAPSHOT?type=jar",
- "pkg:maven/org.apache.camel/camel-chroma@4.18.0-SNAPSHOT?type=jar",
"pkg:maven/org.apache.camel/camel-djl@4.18.0-SNAPSHOT?type=jar",
"pkg:maven/org.apache.camel/camel-docling@4.18.0-SNAPSHOT?type=jar",
"pkg:maven/org.apache.camel/camel-kserve@4.18.0-SNAPSHOT?type=jar",
@@ -221156,14 +221058,6 @@
"pkg:maven/com.fasterxml.jackson.core/jackson-databind@2.19.4?type=jar"
]
},
- {
- "ref" : "pkg:maven/org.apache.camel/camel-chroma@4.18.0-SNAPSHOT?type=jar",
- "dependsOn" : [
- "pkg:maven/org.apache.camel/camel-support@4.18.0-SNAPSHOT?type=jar",
- "pkg:maven/dev.langchain4j/langchain4j-core@1.10.0?type=jar",
- "pkg:maven/io.github.amikos-tech/chromadb-java-client@0.1.7?type=jar"
- ]
- },
{
"ref" : "pkg:maven/dev.langchain4j/langchain4j-core@1.10.0?type=jar",
"dependsOn" : [
diff --git a/camel-sbom/camel-sbom.xml b/camel-sbom/camel-sbom.xml
index c04e6641ae3e..f06c84721aff 100644
--- a/camel-sbom/camel-sbom.xml
+++ b/camel-sbom/camel-sbom.xml
@@ -20042,37 +20042,6 @@ Guava (https://github.com/google/guava) types (currently mostly just collection
</reference>
</externalReferences>
</component>
- <component type="library" bom-ref="pkg:maven/org.apache.camel/camel-test-infra-chroma@4.18.0-SNAPSHOT?type=jar">
- <publisher>The Apache Software Foundation</publisher>
- <group>org.apache.camel</group>
- <name>camel-test-infra-chroma</name>
- <version>4.18.0-SNAPSHOT</version>
- <description>Chroma test infrastructure for Camel</description>
- <licenses>
- <license>
- <id>Apache-2.0</id>
- <url>https://www.apache.org/licenses/LICENSE-2.0</url>
- </license>
- </licenses>
- <purl>pkg:maven/org.apache.camel/camel-test-infra-chroma@4.18.0-SNAPSHOT?type=jar</purl>
- <externalReferences>
- <reference type="website">
- <url>https://camel.apache.org/camel-parent/test-infra/camel-test-infra-parent/camel-test-infra-chroma</url>
- </reference>
- <reference type="distribution-intake">
- <url>https://repository.apache.org/service/local/staging/deploy/maven2</url>
- </reference>
- <reference type="issue-tracker">
- <url>https://issues.apache.org/jira/browse/CAMEL</url>
- </reference>
- <reference type="mailing-list">
- <url>dev-subscribe@camel.apache.org</url>
- </reference>
- <reference type="vcs">
- <url>https://gitbox.apache.org/repos/asf?p=camel.git;a=summary/camel-parent/test-infra/camel-test-infra-parent/camel-test-infra-chroma</url>
- </reference>
- </externalReferences>
- </component>
<component type="library" bom-ref="pkg:maven/org.testcontainers/testcontainers-chromadb@2.0.3?type=jar">
<group>org.testcontainers</group>
<name>testcontainers-chromadb</name>
@@ -32805,37 +32774,6 @@ Supported protocols include Echo, Finger, FTP, NNTP, NTP, POP3(S), SMTP(S), Teln
</reference>
</externalReferences>
</component>
- <component type="library" bom-ref="pkg:maven/org.apache.camel/camel-chroma@4.18.0-SNAPSHOT?type=jar">
- <publisher>The Apache Software Foundation</publisher>
- <group>org.apache.camel</group>
- <name>camel-chroma</name>
- <version>4.18.0-SNAPSHOT</version>
- <description>Camel Chroma DB support</description>
- <licenses>
- <license>
- <id>Apache-2.0</id>
- <url>https://www.apache.org/licenses/LICENSE-2.0</url>
- </license>
- </licenses>
- <purl>pkg:maven/org.apache.camel/camel-chroma@4.18.0-SNAPSHOT?type=jar</purl>
- <externalReferences>
- <reference type="website">
- <url>https://camel.apache.org/camel-parent/components/camel-ai-parent/camel-chroma</url>
- </reference>
- <reference type="distribution-intake">
- <url>https://repository.apache.org/service/local/staging/deploy/maven2</url>
- </reference>
- <reference type="issue-tracker">
- <url>https://issues.apache.org/jira/browse/CAMEL</url>
- </reference>
- <reference type="mailing-list">
- <url>dev-subscribe@camel.apache.org</url>
- </reference>
- <reference type="vcs">
- <url>https://gitbox.apache.org/repos/asf?p=camel.git;a=summary/camel-parent/components/camel-ai-parent/camel-chroma</url>
- </reference>
- </externalReferences>
- </component>
<component type="library" bom-ref="pkg:maven/dev.langchain4j/langchain4j-core@1.10.0?type=jar">
<group>dev.langchain4j</group>
<name>langchain4j-core</name>
@@ -123408,7 +123346,6 @@ Roster, Chat and other functionality.</description>
<dependency ref="pkg:maven/org.apache.camel/camel-test-infra-fhir@4.18.0-SNAPSHOT?type=jar"/>
<dependency ref="pkg:maven/org.apache.camel/camel-test-infra-mosquitto@4.18.0-SNAPSHOT?type=jar"/>
<dependency ref="pkg:maven/org.apache.camel/camel-test-infra-chatscript@4.18.0-SNAPSHOT?type=jar"/>
- <dependency ref="pkg:maven/org.apache.camel/camel-test-infra-chroma@4.18.0-SNAPSHOT?type=jar"/>
<dependency ref="pkg:maven/org.apache.camel/camel-test-infra-openai-mock@4.18.0-SNAPSHOT?type=jar"/>
<dependency ref="pkg:maven/org.apache.camel/camel-test-infra-openldap@4.18.0-SNAPSHOT?type=jar"/>
<dependency ref="pkg:maven/org.apache.camel/camel-test-infra-ignite@4.18.0-SNAPSHOT?type=jar"/>
@@ -125221,16 +125158,6 @@ Roster, Chat and other functionality.</description>
<dependency ref="pkg:maven/org.testcontainers/testcontainers@2.0.3?type=jar"/>
<dependency ref="pkg:maven/org.apache.camel/spi-annotations@4.18.0-SNAPSHOT?type=jar"/>
</dependency>
- <dependency ref="pkg:maven/org.apache.camel/camel-test-infra-chroma@4.18.0-SNAPSHOT?type=jar">
- <dependency ref="pkg:maven/org.apache.camel/camel-test-infra-common@4.18.0-SNAPSHOT?classifier=tests&type=test-jar"/>
- <dependency ref="pkg:maven/org.testcontainers/testcontainers@2.0.3?type=jar"/>
- <dependency ref="pkg:maven/org.testcontainers/testcontainers-chromadb@2.0.3?type=jar"/>
- <dependency ref="pkg:maven/org.apache.camel/camel-util@4.18.0-SNAPSHOT?type=jar"/>
- <dependency ref="pkg:maven/org.apache.camel/spi-annotations@4.18.0-SNAPSHOT?type=jar"/>
- </dependency>
- <dependency ref="pkg:maven/org.testcontainers/testcontainers-chromadb@2.0.3?type=jar">
- <dependency ref="pkg:maven/org.testcontainers/testcontainers@2.0.3?type=jar"/>
- </dependency>
<dependency ref="pkg:maven/org.apache.camel/camel-test-infra-openai-mock@4.18.0-SNAPSHOT?type=jar">
<dependency ref="pkg:maven/org.apache.camel/camel-test-infra-common@4.18.0-SNAPSHOT?classifier=tests&type=test-jar"/>
<dependency ref="pkg:maven/org.junit.jupiter/junit-jupiter-api@5.13.4?type=jar"/>
@@ -126927,7 +126854,6 @@ Roster, Chat and other functionality.</description>
</dependency>
<dependency ref="pkg:maven/org.apache.camel/camel-ai-parent@4.18.0-SNAPSHOT?type=pom">
<dependency ref="pkg:maven/org.apache.camel/camel-chatscript@4.18.0-SNAPSHOT?type=jar"/>
- <dependency ref="pkg:maven/org.apache.camel/camel-chroma@4.18.0-SNAPSHOT?type=jar"/>
<dependency ref="pkg:maven/org.apache.camel/camel-djl@4.18.0-SNAPSHOT?type=jar"/>
<dependency ref="pkg:maven/org.apache.camel/camel-docling@4.18.0-SNAPSHOT?type=jar"/>
<dependency ref="pkg:maven/org.apache.camel/camel-kserve@4.18.0-SNAPSHOT?type=jar"/>
@@ -126954,11 +126880,6 @@ Roster, Chat and other functionality.</description>
<dependency ref="pkg:maven/org.apache.camel/camel-support@4.18.0-SNAPSHOT?type=jar"/>
<dependency ref="pkg:maven/com.fasterxml.jackson.core/jackson-databind@2.19.4?type=jar"/>
</dependency>
- <dependency ref="pkg:maven/org.apache.camel/camel-chroma@4.18.0-SNAPSHOT?type=jar">
- <dependency ref="pkg:maven/org.apache.camel/camel-support@4.18.0-SNAPSHOT?type=jar"/>
- <dependency ref="pkg:maven/dev.langchain4j/langchain4j-core@1.10.0?type=jar"/>
- <dependency ref="pkg:maven/io.github.amikos-tech/chromadb-java-client@0.1.7?type=jar"/>
- </dependency>
<dependency ref="pkg:maven/dev.langchain4j/langchain4j-core@1.10.0?type=jar">
<dependency ref="pkg:maven/com.fasterxml.jackson.core/jackson-annotations@2.19.4?type=jar"/>
<dependency ref="pkg:maven/com.fasterxml.jackson.core/jackson-core@2.19.4?type=jar"/>
diff --git a/catalog/camel-allcomponents/pom.xml b/catalog/camel-allcomponents/pom.xml
index 35cc174b10b6..d9ec4ccebf98 100644
--- a/catalog/camel-allcomponents/pom.xml
+++ b/catalog/camel-allcomponents/pom.xml
@@ -2270,27 +2270,4 @@
<!-- CODEGEN SUPPORTED ARCHITECTURES DEPENDENCIES END -->
</dependencies>
- <profiles>
- <!--
- IMPORTANT: this is used to detect unsupported modules which cannot be compiled for certain architectures.
- -->
- <profile>
- <id>unsupported-arch</id>
- <activation>
- <property>
- <name>!unsupported-arch</name>
- </property>
- </activation>
- <dependencies>
- <!-- CODEGEN UNSUPPORTED ARCHITECTURES DEPENDENCIES START -->
- <dependency>
- <groupId>org.apache.camel</groupId>
- <artifactId>camel-chroma</artifactId>
- <version>${project.version}</version>
- </dependency>
- <!-- CODEGEN UNSUPPORTED ARCHITECTURES DEPENDENCIES END -->
- </dependencies>
- </profile>
- </profiles>
-
</project>
diff --git a/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/components.properties b/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/components.properties
index 161df3a11d39..e2637d25c772 100644
--- a/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/components.properties
+++ b/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/components.properties
@@ -58,7 +58,6 @@ browse
caffeine-cache
caffeine-loadcache
chatscript
-chroma
chunk
class
clickup
diff --git a/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/components/chroma.json b/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/components/chroma.json
deleted file mode 100644
index 26aa318aaf51..000000000000
--- a/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/components/chroma.json
+++ /dev/null
@@ -1,53 +0,0 @@
-{
- "component": {
- "kind": "component",
- "name": "chroma",
- "title": "Chroma",
- "description": "Perform operations on the Chroma Vector Database.",
- "deprecated": false,
- "firstVersion": "4.17.0",
- "label": "database,ai",
- "javaType": "org.apache.camel.component.chroma.ChromaComponent",
- "supportLevel": "Preview",
- "groupId": "org.apache.camel",
- "artifactId": "camel-chroma",
- "version": "4.18.0-SNAPSHOT",
- "scheme": "chroma",
- "extendsScheme": "",
- "syntax": "chroma:collection",
- "async": false,
- "api": false,
- "consumerOnly": false,
- "producerOnly": true,
- "lenientProperties": false,
- "browsable": false,
- "remote": true
- },
- "componentProperties": {
- "configuration": { "index": 0, "kind": "property", "displayName": "Configuration", "group": "producer", "label": "", "required": false, "type": "object", "javaType": "org.apache.camel.component.chroma.ChromaConfiguration", "deprecated": false, "autowired": false, "secret": false, "description": "The configuration;" },
- "host": { "index": 1, "kind": "property", "displayName": "Host", "group": "producer", "label": "", "required": false, "type": "string", "javaType": "java.lang.String", "deprecated": false, "autowired": false, "secret": false, "configurationClass": "org.apache.camel.component.chroma.ChromaConfiguration", "configurationField": "configuration", "description": "The Chroma server host URL." },
- "lazyStartProducer": { "index": 2, "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 [...]
- "maxResults": { "index": 3, "kind": "property", "displayName": "Max Results", "group": "producer", "label": "", "required": false, "type": "integer", "javaType": "int", "deprecated": false, "autowired": false, "secret": false, "defaultValue": 10, "configurationClass": "org.apache.camel.component.chroma.ChromaConfiguration", "configurationField": "configuration", "description": "Max results for similarity search." },
- "autowiredEnabled": { "index": 4, "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": {
- "CamelChromaAction": { "index": 0, "kind": "header", "displayName": "", "group": "producer", "label": "", "required": false, "javaType": "String", "enum": [ "CREATE_COLLECTION", "DELETE_COLLECTION", "GET_COLLECTION", "ADD", "QUERY", "GET", "UPDATE", "UPSERT", "DELETE" ], "deprecated": false, "deprecationNote": "", "autowired": false, "secret": false, "description": "The action to be performed.", "constantName": "org.apache.camel.component.chroma.ChromaHeaders#ACTION" },
- "CamelChromaCollectionName": { "index": 1, "kind": "header", "displayName": "", "group": "producer", "label": "", "required": false, "javaType": "String", "deprecated": false, "deprecationNote": "", "autowired": false, "secret": false, "description": "The collection name.", "constantName": "org.apache.camel.component.chroma.ChromaHeaders#COLLECTION_NAME" },
- "CamelChromaIds": { "index": 2, "kind": "header", "displayName": "", "group": "producer", "label": "", "required": false, "javaType": "java.util.List<String>", "deprecated": false, "deprecationNote": "", "autowired": false, "secret": false, "description": "The embedding IDs.", "constantName": "org.apache.camel.component.chroma.ChromaHeaders#IDS" },
- "CamelChromaEmbeddings": { "index": 3, "kind": "header", "displayName": "", "group": "producer", "label": "", "required": false, "javaType": "java.util.List<java.util.List<Float>>", "deprecated": false, "deprecationNote": "", "autowired": false, "secret": false, "description": "The embeddings.", "constantName": "org.apache.camel.component.chroma.ChromaHeaders#EMBEDDINGS" },
- "CamelChromaMetadatas": { "index": 4, "kind": "header", "displayName": "", "group": "producer", "label": "", "required": false, "javaType": "java.util.List<java.util.Map<String, String>>", "deprecated": false, "deprecationNote": "", "autowired": false, "secret": false, "description": "The metadata for embeddings.", "constantName": "org.apache.camel.component.chroma.ChromaHeaders#METADATAS" },
- "CamelChromaDocuments": { "index": 5, "kind": "header", "displayName": "", "group": "producer", "label": "", "required": false, "javaType": "java.util.List<String>", "deprecated": false, "deprecationNote": "", "autowired": false, "secret": false, "description": "The documents for embeddings.", "constantName": "org.apache.camel.component.chroma.ChromaHeaders#DOCUMENTS" },
- "CamelChromaQueryEmbeddings": { "index": 6, "kind": "header", "displayName": "", "group": "producer", "label": "", "required": false, "javaType": "java.util.List<java.util.List<Float>>", "deprecated": false, "deprecationNote": "", "autowired": false, "secret": false, "description": "The query embeddings for similarity search.", "constantName": "org.apache.camel.component.chroma.ChromaHeaders#QUERY_EMBEDDINGS" },
- "CamelChromaNResults": { "index": 7, "kind": "header", "displayName": "", "group": "producer", "label": "", "required": false, "javaType": "Integer", "deprecated": false, "deprecationNote": "", "autowired": false, "secret": false, "defaultValue": "10", "description": "The number of results to return.", "constantName": "org.apache.camel.component.chroma.ChromaHeaders#N_RESULTS" },
- "CamelChromaWhere": { "index": 8, "kind": "header", "displayName": "", "group": "producer", "label": "", "required": false, "javaType": "java.util.Map<String, Object>", "deprecated": false, "deprecationNote": "", "autowired": false, "secret": false, "description": "Chroma where filter.", "constantName": "org.apache.camel.component.chroma.ChromaHeaders#WHERE" },
- "CamelChromaWhereDocument": { "index": 9, "kind": "header", "displayName": "", "group": "producer", "label": "", "required": false, "javaType": "java.util.Map<String, Object>", "deprecated": false, "deprecationNote": "", "autowired": false, "secret": false, "description": "Chroma where document filter.", "constantName": "org.apache.camel.component.chroma.ChromaHeaders#WHERE_DOCUMENT" },
- "CamelChromaInclude": { "index": 10, "kind": "header", "displayName": "", "group": "producer", "label": "", "required": false, "javaType": "java.util.List<String>", "deprecated": false, "deprecationNote": "", "autowired": false, "secret": false, "description": "The fields to include in the result.", "constantName": "org.apache.camel.component.chroma.ChromaHeaders#INCLUDE" },
- "CamelChromaOperationStatus": { "index": 11, "kind": "header", "displayName": "", "group": "producer", "label": "", "required": false, "javaType": "String", "deprecated": false, "deprecationNote": "", "autowired": false, "secret": false, "description": "The operation status.", "constantName": "org.apache.camel.component.chroma.ChromaHeaders#OPERATION_STATUS" }
- },
- "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" },
- "host": { "index": 1, "kind": "parameter", "displayName": "Host", "group": "producer", "label": "", "required": false, "type": "string", "javaType": "java.lang.String", "deprecated": false, "autowired": false, "secret": false, "configurationClass": "org.apache.camel.component.chroma.ChromaConfiguration", "configurationField": "configuration", "description": "The Chroma server host URL." },
- "maxResults": { "index": 2, "kind": "parameter", "displayName": "Max Results", "group": "producer", "label": "", "required": false, "type": "integer", "javaType": "int", "deprecated": false, "autowired": false, "secret": false, "defaultValue": 10, "configurationClass": "org.apache.camel.component.chroma.ChromaConfiguration", "configurationField": "configuration", "description": "Max results for similarity search." },
- "lazyStartProducer": { "index": 3, "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-chroma/pom.xml b/components/camel-ai/camel-chroma/pom.xml
deleted file mode 100644
index 1c0cb1668645..000000000000
--- a/components/camel-ai/camel-chroma/pom.xml
+++ /dev/null
@@ -1,85 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!--
-
- Licensed to the Apache Software Foundation (ASF) under one or more
- contributor license agreements. See the NOTICE file distributed with
- this work for additional information regarding copyright ownership.
- The ASF licenses this file to You under the Apache License, Version 2.0
- (the "License"); you may not use this file except in compliance with
- the License. You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
- Unless required by applicable law or agreed to in writing, software
- distributed under the License is distributed on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- See the License for the specific language governing permissions and
- limitations under the License.
-
--->
-<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
- <modelVersion>4.0.0</modelVersion>
-
- <parent>
- <artifactId>camel-ai-parent</artifactId>
- <groupId>org.apache.camel</groupId>
- <version>4.18.0-SNAPSHOT</version>
- </parent>
-
- <artifactId>camel-chroma</artifactId>
- <packaging>jar</packaging>
- <name>Camel :: AI :: Chroma</name>
- <description>Camel Chroma DB support</description>
-
- <properties>
- <camel.surefire.parallel>true</camel.surefire.parallel>
- <camel.surefire.parallel.factor>4</camel.surefire.parallel.factor>
- <camel.unsupported.arch>true</camel.unsupported.arch>
- </properties>
-
- <dependencies>
- <dependency>
- <groupId>org.apache.camel</groupId>
- <artifactId>camel-support</artifactId>
- </dependency>
-
- <dependency>
- <groupId>dev.langchain4j</groupId>
- <artifactId>langchain4j-core</artifactId>
- <version>${langchain4j-version}</version>
- </dependency>
-
- <dependency>
- <groupId>io.github.amikos-tech</groupId>
- <artifactId>chromadb-java-client</artifactId>
- <version>${chromadb-client-version}</version>
- </dependency>
-
- <!-- test dependencies -->
- <dependency>
- <groupId>org.apache.camel</groupId>
- <artifactId>camel-test-junit5</artifactId>
- <scope>test</scope>
- </dependency>
- <dependency>
- <groupId>org.junit.jupiter</groupId>
- <artifactId>junit-jupiter</artifactId>
- <scope>test</scope>
- </dependency>
-
- <dependency>
- <groupId>org.assertj</groupId>
- <artifactId>assertj-core</artifactId>
- <scope>test</scope>
- </dependency>
-
- <dependency>
- <groupId>org.apache.camel</groupId>
- <artifactId>camel-test-infra-chroma</artifactId>
- <version>${project.version}</version>
- <type>test-jar</type>
- <scope>test</scope>
- </dependency>
- </dependencies>
-
-</project>
diff --git a/components/camel-ai/camel-chroma/src/generated/java/org/apache/camel/component/chroma/ChromaComponentConfigurer.java b/components/camel-ai/camel-chroma/src/generated/java/org/apache/camel/component/chroma/ChromaComponentConfigurer.java
deleted file mode 100644
index dd9c99f1fc2d..000000000000
--- a/components/camel-ai/camel-chroma/src/generated/java/org/apache/camel/component/chroma/ChromaComponentConfigurer.java
+++ /dev/null
@@ -1,76 +0,0 @@
-/* Generated by camel build tools - do NOT edit this file! */
-package org.apache.camel.component.chroma;
-
-import javax.annotation.processing.Generated;
-import java.util.Map;
-
-import org.apache.camel.CamelContext;
-import org.apache.camel.spi.ExtendedPropertyConfigurerGetter;
-import org.apache.camel.spi.PropertyConfigurerGetter;
-import org.apache.camel.spi.ConfigurerStrategy;
-import org.apache.camel.spi.GeneratedPropertyConfigurer;
-import org.apache.camel.util.CaseInsensitiveMap;
-import org.apache.camel.support.component.PropertyConfigurerSupport;
-
-/**
- * Generated by camel build tools - do NOT edit this file!
- */
-@Generated("org.apache.camel.maven.packaging.EndpointSchemaGeneratorMojo")
-@SuppressWarnings("unchecked")
-public class ChromaComponentConfigurer extends PropertyConfigurerSupport implements GeneratedPropertyConfigurer, PropertyConfigurerGetter {
-
- private org.apache.camel.component.chroma.ChromaConfiguration getOrCreateConfiguration(ChromaComponent target) {
- if (target.getConfiguration() == null) {
- target.setConfiguration(new org.apache.camel.component.chroma.ChromaConfiguration());
- }
- return target.getConfiguration();
- }
-
- @Override
- public boolean configure(CamelContext camelContext, Object obj, String name, Object value, boolean ignoreCase) {
- ChromaComponent target = (ChromaComponent) obj;
- switch (ignoreCase ? name.toLowerCase() : name) {
- case "autowiredenabled":
- case "autowiredEnabled": target.setAutowiredEnabled(property(camelContext, boolean.class, value)); return true;
- case "configuration": target.setConfiguration(property(camelContext, org.apache.camel.component.chroma.ChromaConfiguration.class, value)); return true;
- case "host": getOrCreateConfiguration(target).setHost(property(camelContext, java.lang.String.class, value)); return true;
- case "lazystartproducer":
- case "lazyStartProducer": target.setLazyStartProducer(property(camelContext, boolean.class, value)); return true;
- case "maxresults":
- case "maxResults": getOrCreateConfiguration(target).setMaxResults(property(camelContext, int.class, value)); return true;
- default: return false;
- }
- }
-
- @Override
- public Class<?> getOptionType(String name, boolean ignoreCase) {
- switch (ignoreCase ? name.toLowerCase() : name) {
- case "autowiredenabled":
- case "autowiredEnabled": return boolean.class;
- case "configuration": return org.apache.camel.component.chroma.ChromaConfiguration.class;
- case "host": return java.lang.String.class;
- case "lazystartproducer":
- case "lazyStartProducer": return boolean.class;
- case "maxresults":
- case "maxResults": return int.class;
- default: return null;
- }
- }
-
- @Override
- public Object getOptionValue(Object obj, String name, boolean ignoreCase) {
- ChromaComponent target = (ChromaComponent) obj;
- switch (ignoreCase ? name.toLowerCase() : name) {
- case "autowiredenabled":
- case "autowiredEnabled": return target.isAutowiredEnabled();
- case "configuration": return target.getConfiguration();
- case "host": return getOrCreateConfiguration(target).getHost();
- case "lazystartproducer":
- case "lazyStartProducer": return target.isLazyStartProducer();
- case "maxresults":
- case "maxResults": return getOrCreateConfiguration(target).getMaxResults();
- default: return null;
- }
- }
-}
-
diff --git a/components/camel-ai/camel-chroma/src/generated/java/org/apache/camel/component/chroma/ChromaConfigurationConfigurer.java b/components/camel-ai/camel-chroma/src/generated/java/org/apache/camel/component/chroma/ChromaConfigurationConfigurer.java
deleted file mode 100644
index 61768e3dd6c2..000000000000
--- a/components/camel-ai/camel-chroma/src/generated/java/org/apache/camel/component/chroma/ChromaConfigurationConfigurer.java
+++ /dev/null
@@ -1,63 +0,0 @@
-/* Generated by camel build tools - do NOT edit this file! */
-package org.apache.camel.component.chroma;
-
-import javax.annotation.processing.Generated;
-import java.util.Map;
-
-import org.apache.camel.CamelContext;
-import org.apache.camel.spi.ExtendedPropertyConfigurerGetter;
-import org.apache.camel.spi.PropertyConfigurerGetter;
-import org.apache.camel.spi.ConfigurerStrategy;
-import org.apache.camel.spi.GeneratedPropertyConfigurer;
-import org.apache.camel.util.CaseInsensitiveMap;
-import org.apache.camel.component.chroma.ChromaConfiguration;
-
-/**
- * Generated by camel build tools - do NOT edit this file!
- */
-@Generated("org.apache.camel.maven.packaging.GenerateConfigurerMojo")
-@SuppressWarnings("unchecked")
-public class ChromaConfigurationConfigurer extends org.apache.camel.support.component.PropertyConfigurerSupport implements GeneratedPropertyConfigurer, PropertyConfigurerGetter {
-
- @Override
- public boolean configure(CamelContext camelContext, Object obj, String name, Object value, boolean ignoreCase) {
- org.apache.camel.component.chroma.ChromaConfiguration target = (org.apache.camel.component.chroma.ChromaConfiguration) obj;
- switch (ignoreCase ? name.toLowerCase() : name) {
- case "client": target.setClient(property(camelContext, tech.amikos.chromadb.Client.class, value)); return true;
- case "embeddingfunction":
- case "embeddingFunction": target.setEmbeddingFunction(property(camelContext, tech.amikos.chromadb.embeddings.EmbeddingFunction.class, value)); return true;
- case "host": target.setHost(property(camelContext, java.lang.String.class, value)); return true;
- case "maxresults":
- case "maxResults": target.setMaxResults(property(camelContext, int.class, value)); return true;
- default: return false;
- }
- }
-
- @Override
- public Class<?> getOptionType(String name, boolean ignoreCase) {
- switch (ignoreCase ? name.toLowerCase() : name) {
- case "client": return tech.amikos.chromadb.Client.class;
- case "embeddingfunction":
- case "embeddingFunction": return tech.amikos.chromadb.embeddings.EmbeddingFunction.class;
- case "host": return java.lang.String.class;
- case "maxresults":
- case "maxResults": return int.class;
- default: return null;
- }
- }
-
- @Override
- public Object getOptionValue(Object obj, String name, boolean ignoreCase) {
- org.apache.camel.component.chroma.ChromaConfiguration target = (org.apache.camel.component.chroma.ChromaConfiguration) obj;
- switch (ignoreCase ? name.toLowerCase() : name) {
- case "client": return target.getClient();
- case "embeddingfunction":
- case "embeddingFunction": return target.getEmbeddingFunction();
- case "host": return target.getHost();
- case "maxresults":
- case "maxResults": return target.getMaxResults();
- default: return null;
- }
- }
-}
-
diff --git a/components/camel-ai/camel-chroma/src/generated/java/org/apache/camel/component/chroma/ChromaEndpointConfigurer.java b/components/camel-ai/camel-chroma/src/generated/java/org/apache/camel/component/chroma/ChromaEndpointConfigurer.java
deleted file mode 100644
index 95a1c9e561fd..000000000000
--- a/components/camel-ai/camel-chroma/src/generated/java/org/apache/camel/component/chroma/ChromaEndpointConfigurer.java
+++ /dev/null
@@ -1,60 +0,0 @@
-/* Generated by camel build tools - do NOT edit this file! */
-package org.apache.camel.component.chroma;
-
-import javax.annotation.processing.Generated;
-import java.util.Map;
-
-import org.apache.camel.CamelContext;
-import org.apache.camel.spi.ExtendedPropertyConfigurerGetter;
-import org.apache.camel.spi.PropertyConfigurerGetter;
-import org.apache.camel.spi.ConfigurerStrategy;
-import org.apache.camel.spi.GeneratedPropertyConfigurer;
-import org.apache.camel.util.CaseInsensitiveMap;
-import org.apache.camel.support.component.PropertyConfigurerSupport;
-
-/**
- * Generated by camel build tools - do NOT edit this file!
- */
-@Generated("org.apache.camel.maven.packaging.EndpointSchemaGeneratorMojo")
-@SuppressWarnings("unchecked")
-public class ChromaEndpointConfigurer extends PropertyConfigurerSupport implements GeneratedPropertyConfigurer, PropertyConfigurerGetter {
-
- @Override
- public boolean configure(CamelContext camelContext, Object obj, String name, Object value, boolean ignoreCase) {
- ChromaEndpoint target = (ChromaEndpoint) obj;
- switch (ignoreCase ? name.toLowerCase() : name) {
- case "host": target.getConfiguration().setHost(property(camelContext, java.lang.String.class, value)); return true;
- case "lazystartproducer":
- case "lazyStartProducer": target.setLazyStartProducer(property(camelContext, boolean.class, value)); return true;
- case "maxresults":
- case "maxResults": target.getConfiguration().setMaxResults(property(camelContext, int.class, value)); return true;
- default: return false;
- }
- }
-
- @Override
- public Class<?> getOptionType(String name, boolean ignoreCase) {
- switch (ignoreCase ? name.toLowerCase() : name) {
- case "host": return java.lang.String.class;
- case "lazystartproducer":
- case "lazyStartProducer": return boolean.class;
- case "maxresults":
- case "maxResults": return int.class;
- default: return null;
- }
- }
-
- @Override
- public Object getOptionValue(Object obj, String name, boolean ignoreCase) {
- ChromaEndpoint target = (ChromaEndpoint) obj;
- switch (ignoreCase ? name.toLowerCase() : name) {
- case "host": return target.getConfiguration().getHost();
- case "lazystartproducer":
- case "lazyStartProducer": return target.isLazyStartProducer();
- case "maxresults":
- case "maxResults": return target.getConfiguration().getMaxResults();
- default: return null;
- }
- }
-}
-
diff --git a/components/camel-ai/camel-chroma/src/generated/java/org/apache/camel/component/chroma/ChromaEndpointUriFactory.java b/components/camel-ai/camel-chroma/src/generated/java/org/apache/camel/component/chroma/ChromaEndpointUriFactory.java
deleted file mode 100644
index 52abce6b7cc9..000000000000
--- a/components/camel-ai/camel-chroma/src/generated/java/org/apache/camel/component/chroma/ChromaEndpointUriFactory.java
+++ /dev/null
@@ -1,73 +0,0 @@
-/* Generated by camel build tools - do NOT edit this file! */
-package org.apache.camel.component.chroma;
-
-import javax.annotation.processing.Generated;
-import java.net.URISyntaxException;
-import java.util.Collections;
-import java.util.HashMap;
-import java.util.HashSet;
-import java.util.Map;
-import java.util.Set;
-
-import org.apache.camel.spi.EndpointUriFactory;
-
-/**
- * Generated by camel build tools - do NOT edit this file!
- */
-@Generated("org.apache.camel.maven.packaging.GenerateEndpointUriFactoryMojo")
-public class ChromaEndpointUriFactory extends org.apache.camel.support.component.EndpointUriFactorySupport implements EndpointUriFactory {
-
- private static final String BASE = ":collection";
-
- private static final Set<String> PROPERTY_NAMES;
- private static final Set<String> SECRET_PROPERTY_NAMES;
- private static final Map<String, String> MULTI_VALUE_PREFIXES;
- static {
- Set<String> props = new HashSet<>(4);
- props.add("collection");
- props.add("host");
- props.add("lazyStartProducer");
- props.add("maxResults");
- PROPERTY_NAMES = Collections.unmodifiableSet(props);
- SECRET_PROPERTY_NAMES = Collections.emptySet();
- MULTI_VALUE_PREFIXES = Collections.emptyMap();
- }
-
- @Override
- public boolean isEnabled(String scheme) {
- return "chroma".equals(scheme);
- }
-
- @Override
- public String buildUri(String scheme, Map<String, Object> properties, boolean encode) throws URISyntaxException {
- String syntax = scheme + BASE;
- String uri = syntax;
-
- Map<String, Object> copy = new HashMap<>(properties);
-
- uri = buildPathParameter(syntax, uri, "collection", null, true, copy);
- uri = buildQueryParameters(uri, copy, encode);
- return uri;
- }
-
- @Override
- public Set<String> propertyNames() {
- return PROPERTY_NAMES;
- }
-
- @Override
- public Set<String> secretPropertyNames() {
- return SECRET_PROPERTY_NAMES;
- }
-
- @Override
- public Map<String, String> multiValuePrefixes() {
- return MULTI_VALUE_PREFIXES;
- }
-
- @Override
- public boolean isLenientProperties() {
- return false;
- }
-}
-
diff --git a/components/camel-ai/camel-chroma/src/generated/resources/META-INF/org/apache/camel/component/chroma/chroma.json b/components/camel-ai/camel-chroma/src/generated/resources/META-INF/org/apache/camel/component/chroma/chroma.json
deleted file mode 100644
index 26aa318aaf51..000000000000
--- a/components/camel-ai/camel-chroma/src/generated/resources/META-INF/org/apache/camel/component/chroma/chroma.json
+++ /dev/null
@@ -1,53 +0,0 @@
-{
- "component": {
- "kind": "component",
- "name": "chroma",
- "title": "Chroma",
- "description": "Perform operations on the Chroma Vector Database.",
- "deprecated": false,
- "firstVersion": "4.17.0",
- "label": "database,ai",
- "javaType": "org.apache.camel.component.chroma.ChromaComponent",
- "supportLevel": "Preview",
- "groupId": "org.apache.camel",
- "artifactId": "camel-chroma",
- "version": "4.18.0-SNAPSHOT",
- "scheme": "chroma",
- "extendsScheme": "",
- "syntax": "chroma:collection",
- "async": false,
- "api": false,
- "consumerOnly": false,
- "producerOnly": true,
- "lenientProperties": false,
- "browsable": false,
- "remote": true
- },
- "componentProperties": {
- "configuration": { "index": 0, "kind": "property", "displayName": "Configuration", "group": "producer", "label": "", "required": false, "type": "object", "javaType": "org.apache.camel.component.chroma.ChromaConfiguration", "deprecated": false, "autowired": false, "secret": false, "description": "The configuration;" },
- "host": { "index": 1, "kind": "property", "displayName": "Host", "group": "producer", "label": "", "required": false, "type": "string", "javaType": "java.lang.String", "deprecated": false, "autowired": false, "secret": false, "configurationClass": "org.apache.camel.component.chroma.ChromaConfiguration", "configurationField": "configuration", "description": "The Chroma server host URL." },
- "lazyStartProducer": { "index": 2, "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 [...]
- "maxResults": { "index": 3, "kind": "property", "displayName": "Max Results", "group": "producer", "label": "", "required": false, "type": "integer", "javaType": "int", "deprecated": false, "autowired": false, "secret": false, "defaultValue": 10, "configurationClass": "org.apache.camel.component.chroma.ChromaConfiguration", "configurationField": "configuration", "description": "Max results for similarity search." },
- "autowiredEnabled": { "index": 4, "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": {
- "CamelChromaAction": { "index": 0, "kind": "header", "displayName": "", "group": "producer", "label": "", "required": false, "javaType": "String", "enum": [ "CREATE_COLLECTION", "DELETE_COLLECTION", "GET_COLLECTION", "ADD", "QUERY", "GET", "UPDATE", "UPSERT", "DELETE" ], "deprecated": false, "deprecationNote": "", "autowired": false, "secret": false, "description": "The action to be performed.", "constantName": "org.apache.camel.component.chroma.ChromaHeaders#ACTION" },
- "CamelChromaCollectionName": { "index": 1, "kind": "header", "displayName": "", "group": "producer", "label": "", "required": false, "javaType": "String", "deprecated": false, "deprecationNote": "", "autowired": false, "secret": false, "description": "The collection name.", "constantName": "org.apache.camel.component.chroma.ChromaHeaders#COLLECTION_NAME" },
- "CamelChromaIds": { "index": 2, "kind": "header", "displayName": "", "group": "producer", "label": "", "required": false, "javaType": "java.util.List<String>", "deprecated": false, "deprecationNote": "", "autowired": false, "secret": false, "description": "The embedding IDs.", "constantName": "org.apache.camel.component.chroma.ChromaHeaders#IDS" },
- "CamelChromaEmbeddings": { "index": 3, "kind": "header", "displayName": "", "group": "producer", "label": "", "required": false, "javaType": "java.util.List<java.util.List<Float>>", "deprecated": false, "deprecationNote": "", "autowired": false, "secret": false, "description": "The embeddings.", "constantName": "org.apache.camel.component.chroma.ChromaHeaders#EMBEDDINGS" },
- "CamelChromaMetadatas": { "index": 4, "kind": "header", "displayName": "", "group": "producer", "label": "", "required": false, "javaType": "java.util.List<java.util.Map<String, String>>", "deprecated": false, "deprecationNote": "", "autowired": false, "secret": false, "description": "The metadata for embeddings.", "constantName": "org.apache.camel.component.chroma.ChromaHeaders#METADATAS" },
- "CamelChromaDocuments": { "index": 5, "kind": "header", "displayName": "", "group": "producer", "label": "", "required": false, "javaType": "java.util.List<String>", "deprecated": false, "deprecationNote": "", "autowired": false, "secret": false, "description": "The documents for embeddings.", "constantName": "org.apache.camel.component.chroma.ChromaHeaders#DOCUMENTS" },
- "CamelChromaQueryEmbeddings": { "index": 6, "kind": "header", "displayName": "", "group": "producer", "label": "", "required": false, "javaType": "java.util.List<java.util.List<Float>>", "deprecated": false, "deprecationNote": "", "autowired": false, "secret": false, "description": "The query embeddings for similarity search.", "constantName": "org.apache.camel.component.chroma.ChromaHeaders#QUERY_EMBEDDINGS" },
- "CamelChromaNResults": { "index": 7, "kind": "header", "displayName": "", "group": "producer", "label": "", "required": false, "javaType": "Integer", "deprecated": false, "deprecationNote": "", "autowired": false, "secret": false, "defaultValue": "10", "description": "The number of results to return.", "constantName": "org.apache.camel.component.chroma.ChromaHeaders#N_RESULTS" },
- "CamelChromaWhere": { "index": 8, "kind": "header", "displayName": "", "group": "producer", "label": "", "required": false, "javaType": "java.util.Map<String, Object>", "deprecated": false, "deprecationNote": "", "autowired": false, "secret": false, "description": "Chroma where filter.", "constantName": "org.apache.camel.component.chroma.ChromaHeaders#WHERE" },
- "CamelChromaWhereDocument": { "index": 9, "kind": "header", "displayName": "", "group": "producer", "label": "", "required": false, "javaType": "java.util.Map<String, Object>", "deprecated": false, "deprecationNote": "", "autowired": false, "secret": false, "description": "Chroma where document filter.", "constantName": "org.apache.camel.component.chroma.ChromaHeaders#WHERE_DOCUMENT" },
- "CamelChromaInclude": { "index": 10, "kind": "header", "displayName": "", "group": "producer", "label": "", "required": false, "javaType": "java.util.List<String>", "deprecated": false, "deprecationNote": "", "autowired": false, "secret": false, "description": "The fields to include in the result.", "constantName": "org.apache.camel.component.chroma.ChromaHeaders#INCLUDE" },
- "CamelChromaOperationStatus": { "index": 11, "kind": "header", "displayName": "", "group": "producer", "label": "", "required": false, "javaType": "String", "deprecated": false, "deprecationNote": "", "autowired": false, "secret": false, "description": "The operation status.", "constantName": "org.apache.camel.component.chroma.ChromaHeaders#OPERATION_STATUS" }
- },
- "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" },
- "host": { "index": 1, "kind": "parameter", "displayName": "Host", "group": "producer", "label": "", "required": false, "type": "string", "javaType": "java.lang.String", "deprecated": false, "autowired": false, "secret": false, "configurationClass": "org.apache.camel.component.chroma.ChromaConfiguration", "configurationField": "configuration", "description": "The Chroma server host URL." },
- "maxResults": { "index": 2, "kind": "parameter", "displayName": "Max Results", "group": "producer", "label": "", "required": false, "type": "integer", "javaType": "int", "deprecated": false, "autowired": false, "secret": false, "defaultValue": 10, "configurationClass": "org.apache.camel.component.chroma.ChromaConfiguration", "configurationField": "configuration", "description": "Max results for similarity search." },
- "lazyStartProducer": { "index": 3, "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-chroma/src/generated/resources/META-INF/services/org/apache/camel/component.properties b/components/camel-ai/camel-chroma/src/generated/resources/META-INF/services/org/apache/camel/component.properties
deleted file mode 100644
index 31cc538ba24a..000000000000
--- a/components/camel-ai/camel-chroma/src/generated/resources/META-INF/services/org/apache/camel/component.properties
+++ /dev/null
@@ -1,7 +0,0 @@
-# Generated by camel build tools - do NOT edit this file!
-components=chroma
-groupId=org.apache.camel
-artifactId=camel-chroma
-version=4.18.0-SNAPSHOT
-projectName=Camel :: AI :: Chroma
-projectDescription=Camel Chroma DB support
diff --git a/components/camel-ai/camel-chroma/src/generated/resources/META-INF/services/org/apache/camel/component/chroma b/components/camel-ai/camel-chroma/src/generated/resources/META-INF/services/org/apache/camel/component/chroma
deleted file mode 100644
index 98cb2695f5b1..000000000000
--- a/components/camel-ai/camel-chroma/src/generated/resources/META-INF/services/org/apache/camel/component/chroma
+++ /dev/null
@@ -1,2 +0,0 @@
-# Generated by camel build tools - do NOT edit this file!
-class=org.apache.camel.component.chroma.ChromaComponent
diff --git a/components/camel-ai/camel-chroma/src/generated/resources/META-INF/services/org/apache/camel/configurer/chroma-component b/components/camel-ai/camel-chroma/src/generated/resources/META-INF/services/org/apache/camel/configurer/chroma-component
deleted file mode 100644
index 2e8d365dd337..000000000000
--- a/components/camel-ai/camel-chroma/src/generated/resources/META-INF/services/org/apache/camel/configurer/chroma-component
+++ /dev/null
@@ -1,2 +0,0 @@
-# Generated by camel build tools - do NOT edit this file!
-class=org.apache.camel.component.chroma.ChromaComponentConfigurer
diff --git a/components/camel-ai/camel-chroma/src/generated/resources/META-INF/services/org/apache/camel/configurer/chroma-endpoint b/components/camel-ai/camel-chroma/src/generated/resources/META-INF/services/org/apache/camel/configurer/chroma-endpoint
deleted file mode 100644
index 27b2c3f952a8..000000000000
--- a/components/camel-ai/camel-chroma/src/generated/resources/META-INF/services/org/apache/camel/configurer/chroma-endpoint
+++ /dev/null
@@ -1,2 +0,0 @@
-# Generated by camel build tools - do NOT edit this file!
-class=org.apache.camel.component.chroma.ChromaEndpointConfigurer
diff --git a/components/camel-ai/camel-chroma/src/generated/resources/META-INF/services/org/apache/camel/configurer/org.apache.camel.component.chroma.ChromaConfiguration b/components/camel-ai/camel-chroma/src/generated/resources/META-INF/services/org/apache/camel/configurer/org.apache.camel.component.chroma.ChromaConfiguration
deleted file mode 100644
index 3597dd3ec757..000000000000
--- a/components/camel-ai/camel-chroma/src/generated/resources/META-INF/services/org/apache/camel/configurer/org.apache.camel.component.chroma.ChromaConfiguration
+++ /dev/null
@@ -1,2 +0,0 @@
-# Generated by camel build tools - do NOT edit this file!
-class=org.apache.camel.component.chroma.ChromaConfigurationConfigurer
diff --git a/components/camel-ai/camel-chroma/src/generated/resources/META-INF/services/org/apache/camel/urifactory/chroma-endpoint b/components/camel-ai/camel-chroma/src/generated/resources/META-INF/services/org/apache/camel/urifactory/chroma-endpoint
deleted file mode 100644
index 9b17f11ee8dc..000000000000
--- a/components/camel-ai/camel-chroma/src/generated/resources/META-INF/services/org/apache/camel/urifactory/chroma-endpoint
+++ /dev/null
@@ -1,2 +0,0 @@
-# Generated by camel build tools - do NOT edit this file!
-class=org.apache.camel.component.chroma.ChromaEndpointUriFactory
diff --git a/components/camel-ai/camel-chroma/src/main/docs/chroma-component.adoc b/components/camel-ai/camel-chroma/src/main/docs/chroma-component.adoc
deleted file mode 100644
index 1f7abf9bed8b..000000000000
--- a/components/camel-ai/camel-chroma/src/main/docs/chroma-component.adoc
+++ /dev/null
@@ -1,456 +0,0 @@
-= Chroma Component
-:doctitle: Chroma
-:shortname: chroma
-:artifactid: camel-chroma
-:description: Perform operations on the Chroma Vector Database.
-:since: 4.17
-:supportlevel: Preview
-:tabs-sync-option:
-:component-header: Only producer is supported
-//Manually maintained attributes
-:group: AI
-:camel-spring-boot-name: chroma
-
-*Since Camel {since}*
-
-*{component-header}*
-
-The Chroma Component provides support for interacting with the https://www.trychroma.com/[Chroma Vector Database].
-
-Chroma is an open-source embedding database designed for AI applications. It allows you to store, search, and retrieve embeddings along with their associated metadata and documents.
-
-== URI format
-
-----
-chroma:collection[?options]
-----
-
-Where *collection* represents a named collection in your Chroma database.
-
-
-// component options: START
-include::partial$component-configure-options.adoc[]
-include::partial$component-endpoint-options.adoc[]
-include::partial$component-endpoint-headers.adoc[]
-// component options: END
-
-== Embedding Function
-
-Chroma requires an `EmbeddingFunction` to convert documents into vector embeddings. You must configure an embedding function for the component to work properly.
-
-The chromadb-java-client provides several embedding function implementations:
-
-* `DefaultEmbeddingFunction` - Uses ONNX runtime for local embeddings
-* `OpenAIEmbeddingFunction` - Uses OpenAI API
-* `CohereEmbeddingFunction` - Uses Cohere API
-* `OllamaEmbeddingFunction` - Uses Ollama for local embeddings
-* `HuggingFaceEmbeddingFunction` - Uses Hugging Face API
-
-You can also implement your own `EmbeddingFunction` interface.
-
-=== Configuring Embedding Function
-
-[tabs]
-====
-Java::
-+
-[source,java]
-----
-// Using OpenAI embeddings
-OpenAIEmbeddingFunction embeddingFunction = new OpenAIEmbeddingFunction(
- System.getenv("OPENAI_API_KEY"),
- "text-embedding-ada-002"
-);
-
-ChromaComponent component = context.getComponent("chroma", ChromaComponent.class);
-component.getConfiguration().setHost("http://localhost:8000");
-component.getConfiguration().setEmbeddingFunction(embeddingFunction);
-----
-====
-
-== Examples
-
-=== Collection Examples
-
-==== Create Collection
-
-In the route below, we use the chroma component to create a collection named _myCollection_:
-
-[tabs]
-====
-Java::
-+
-[source,java]
-----
-from("direct:in")
- .setHeader(ChromaHeaders.ACTION)
- .constant(ChromaAction.CREATE_COLLECTION)
- .to("chroma:myCollection");
-----
-====
-
-==== Get Collection
-
-In the route below, we use the chroma component to get information about a collection named _myCollection_:
-
-[tabs]
-====
-Java::
-+
-[source,java]
-----
-from("direct:in")
- .setHeader(ChromaHeaders.ACTION)
- .constant(ChromaAction.GET_COLLECTION)
- .to("chroma:myCollection")
- .process(exchange -> {
- Collection collection = exchange.getMessage().getBody(Collection.class);
- log.info("Collection name: {}", collection.getName());
- });
-----
-====
-
-==== Delete Collection
-
-In the route below, we use the chroma component to delete a collection named _myCollection_:
-
-[tabs]
-====
-Java::
-+
-[source,java]
-----
-from("direct:in")
- .setHeader(ChromaHeaders.ACTION)
- .constant(ChromaAction.DELETE_COLLECTION)
- .to("chroma:myCollection");
-----
-====
-
-=== Document Examples
-
-==== Add Documents
-
-In the route below, we use the chroma component to add documents to a collection. The embedding function will automatically generate embeddings for the documents:
-
-[tabs]
-====
-Java::
-+
-[source,java]
-----
-from("direct:in")
- .setHeader(ChromaHeaders.ACTION)
- .constant(ChromaAction.ADD)
- .setHeader(ChromaHeaders.IDS)
- .constant(Arrays.asList("doc1", "doc2", "doc3"))
- .setBody()
- .constant(Arrays.asList(
- "Camel is an open source integration framework",
- "Chroma is a vector database for AI applications",
- "Apache Camel supports many components"
- ))
- .to("chroma:myCollection");
-----
-====
-
-==== Add Documents with Metadata
-
-You can also add metadata to documents for filtering during queries:
-
-[tabs]
-====
-Java::
-+
-[source,java]
-----
-from("direct:in")
- .setHeader(ChromaHeaders.ACTION)
- .constant(ChromaAction.ADD)
- .setHeader(ChromaHeaders.IDS)
- .constant(Arrays.asList("doc1", "doc2"))
- .setHeader(ChromaHeaders.METADATAS)
- .constant(Arrays.asList(
- Map.of("source", "wiki", "category", "integration"),
- Map.of("source", "docs", "category", "database")
- ))
- .setBody()
- .constant(Arrays.asList(
- "Camel is an open source integration framework",
- "Chroma is a vector database"
- ))
- .to("chroma:myCollection");
-----
-====
-
-==== Add Documents with Pre-computed Embeddings
-
-If you have pre-computed embeddings, you can pass them directly via headers:
-
-[tabs]
-====
-Java::
-+
-[source,java]
-----
-from("direct:in")
- .setHeader(ChromaHeaders.ACTION)
- .constant(ChromaAction.ADD)
- .setHeader(ChromaHeaders.IDS)
- .constant(Arrays.asList("doc1"))
- .setHeader(ChromaHeaders.EMBEDDINGS)
- .constant(Arrays.asList(
- Arrays.asList(0.1f, 0.2f, 0.3f, 0.4f) // Your embedding vector
- ))
- .setBody()
- .constant(Arrays.asList("Document text"))
- .to("chroma:myCollection");
-----
-====
-
-=== Query Examples
-
-==== Query Documents
-
-In the route below, we use the chroma component to perform a semantic search query:
-
-[tabs]
-====
-Java::
-+
-[source,java]
-----
-from("direct:in")
- .setHeader(ChromaHeaders.ACTION)
- .constant(ChromaAction.QUERY)
- .setHeader(ChromaHeaders.N_RESULTS)
- .constant(5)
- .setBody()
- .constant(Collections.singletonList("integration framework"))
- .to("chroma:myCollection")
- .process(exchange -> {
- Collection.QueryResponse response = exchange.getMessage()
- .getBody(Collection.QueryResponse.class);
- // Process query results
- });
-----
-====
-
-==== Query with Metadata Filter
-
-You can filter query results using metadata:
-
-[tabs]
-====
-Java::
-+
-[source,java]
-----
-from("direct:in")
- .setHeader(ChromaHeaders.ACTION)
- .constant(ChromaAction.QUERY)
- .setHeader(ChromaHeaders.N_RESULTS)
- .constant(10)
- .setHeader(ChromaHeaders.WHERE)
- .constant(Map.of("category", "integration"))
- .setBody()
- .constant(Collections.singletonList("apache camel"))
- .to("chroma:myCollection");
-----
-====
-
-==== Query with Include Options
-
-You can specify which fields to include in the response:
-
-[tabs]
-====
-Java::
-+
-[source,java]
-----
-from("direct:in")
- .setHeader(ChromaHeaders.ACTION)
- .constant(ChromaAction.QUERY)
- .setHeader(ChromaHeaders.N_RESULTS)
- .constant(5)
- .setHeader(ChromaHeaders.INCLUDE)
- .constant(Arrays.asList("documents", "metadatas", "distances"))
- .setBody()
- .constant(Collections.singletonList("search query"))
- .to("chroma:myCollection");
-----
-====
-
-=== Get Examples
-
-==== Get Documents by IDs
-
-In the route below, we retrieve specific documents by their IDs:
-
-[tabs]
-====
-Java::
-+
-[source,java]
-----
-from("direct:in")
- .setHeader(ChromaHeaders.ACTION)
- .constant(ChromaAction.GET)
- .setHeader(ChromaHeaders.IDS)
- .constant(Arrays.asList("doc1", "doc2"))
- .to("chroma:myCollection")
- .process(exchange -> {
- Collection.GetResult result = exchange.getMessage()
- .getBody(Collection.GetResult.class);
- List<String> documents = result.getDocuments();
- List<String> ids = result.getIds();
- });
-----
-====
-
-==== Get Documents with Filter
-
-You can filter documents using metadata:
-
-[tabs]
-====
-Java::
-+
-[source,java]
-----
-from("direct:in")
- .setHeader(ChromaHeaders.ACTION)
- .constant(ChromaAction.GET)
- .setHeader(ChromaHeaders.WHERE)
- .constant(Map.of("source", "wiki"))
- .to("chroma:myCollection");
-----
-====
-
-=== Update Examples
-
-==== Update Documents
-
-In the route below, we update existing documents:
-
-[tabs]
-====
-Java::
-+
-[source,java]
-----
-from("direct:in")
- .setHeader(ChromaHeaders.ACTION)
- .constant(ChromaAction.UPDATE)
- .setHeader(ChromaHeaders.IDS)
- .constant(Arrays.asList("doc1"))
- .setHeader(ChromaHeaders.METADATAS)
- .constant(Arrays.asList(
- Map.of("source", "wiki", "updated", "true")
- ))
- .setBody()
- .constant(Arrays.asList("Updated document content"))
- .to("chroma:myCollection");
-----
-====
-
-=== Upsert Examples
-
-==== Upsert Documents
-
-Upsert will insert new documents or update existing ones:
-
-[tabs]
-====
-Java::
-+
-[source,java]
-----
-from("direct:in")
- .setHeader(ChromaHeaders.ACTION)
- .constant(ChromaAction.UPSERT)
- .setHeader(ChromaHeaders.IDS)
- .constant(Arrays.asList("doc1", "doc4"))
- .setBody()
- .constant(Arrays.asList(
- "Updated content for doc1",
- "New document doc4"
- ))
- .to("chroma:myCollection");
-----
-====
-
-=== Delete Examples
-
-==== Delete Documents by IDs
-
-In the route below, we delete specific documents by their IDs:
-
-[tabs]
-====
-Java::
-+
-[source,java]
-----
-from("direct:in")
- .setHeader(ChromaHeaders.ACTION)
- .constant(ChromaAction.DELETE)
- .setHeader(ChromaHeaders.IDS)
- .constant(Arrays.asList("doc1", "doc2"))
- .to("chroma:myCollection");
-----
-====
-
-==== Delete Documents with Filter
-
-You can delete documents matching a metadata filter:
-
-[tabs]
-====
-Java::
-+
-[source,java]
-----
-from("direct:in")
- .setHeader(ChromaHeaders.ACTION)
- .constant(ChromaAction.DELETE)
- .setHeader(ChromaHeaders.WHERE)
- .constant(Map.of("source", "temporary"))
- .to("chroma:myCollection");
-----
-====
-
-== RAG (Retrieval-Augmented Generation) Example
-
-Here's an example of using Chroma for RAG with a language model:
-
-[tabs]
-====
-Java::
-+
-[source,java]
-----
-from("direct:ask")
- // First, query Chroma for relevant documents
- .setHeader(ChromaHeaders.ACTION)
- .constant(ChromaAction.QUERY)
- .setHeader(ChromaHeaders.N_RESULTS)
- .constant(3)
- .to("chroma:knowledgeBase")
- // Build context from retrieved documents
- .process(exchange -> {
- Collection.QueryResponse response = exchange.getMessage()
- .getBody(Collection.QueryResponse.class);
- String context = String.join("\n", response.getDocuments().get(0));
- String question = exchange.getProperty("question", String.class);
- String prompt = "Context:\n" + context + "\n\nQuestion: " + question;
- exchange.getMessage().setBody(prompt);
- })
- // Send to LLM for answer generation
- .to("langchain4j-chat:myModel");
-----
-====
-
-
-include::spring-boot:partial$starter.adoc[]
diff --git a/components/camel-ai/camel-chroma/src/main/java/org/apache/camel/component/chroma/Chroma.java b/components/camel-ai/camel-chroma/src/main/java/org/apache/camel/component/chroma/Chroma.java
deleted file mode 100644
index 29fc38a049da..000000000000
--- a/components/camel-ai/camel-chroma/src/main/java/org/apache/camel/component/chroma/Chroma.java
+++ /dev/null
@@ -1,24 +0,0 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed with
- * this work for additional information regarding copyright ownership.
- * The ASF licenses this file to You under the Apache License, Version 2.0
- * (the "License"); you may not use this file except in compliance with
- * the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-package org.apache.camel.component.chroma;
-
-public final class Chroma {
- public static final String SCHEME = "chroma";
-
- private Chroma() {
- }
-}
diff --git a/components/camel-ai/camel-chroma/src/main/java/org/apache/camel/component/chroma/ChromaAction.java b/components/camel-ai/camel-chroma/src/main/java/org/apache/camel/component/chroma/ChromaAction.java
deleted file mode 100644
index f176617676d2..000000000000
--- a/components/camel-ai/camel-chroma/src/main/java/org/apache/camel/component/chroma/ChromaAction.java
+++ /dev/null
@@ -1,29 +0,0 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed with
- * this work for additional information regarding copyright ownership.
- * The ASF licenses this file to You under the Apache License, Version 2.0
- * (the "License"); you may not use this file except in compliance with
- * the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-package org.apache.camel.component.chroma;
-
-public enum ChromaAction {
- CREATE_COLLECTION,
- DELETE_COLLECTION,
- GET_COLLECTION,
- ADD,
- QUERY,
- GET,
- UPDATE,
- UPSERT,
- DELETE
-}
diff --git a/components/camel-ai/camel-chroma/src/main/java/org/apache/camel/component/chroma/ChromaComponent.java b/components/camel-ai/camel-chroma/src/main/java/org/apache/camel/component/chroma/ChromaComponent.java
deleted file mode 100644
index eaef65bdd306..000000000000
--- a/components/camel-ai/camel-chroma/src/main/java/org/apache/camel/component/chroma/ChromaComponent.java
+++ /dev/null
@@ -1,68 +0,0 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed with
- * this work for additional information regarding copyright ownership.
- * The ASF licenses this file to You under the Apache License, Version 2.0
- * (the "License"); you may not use this file except in compliance with
- * the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-package org.apache.camel.component.chroma;
-
-import java.util.Map;
-
-import org.apache.camel.CamelContext;
-import org.apache.camel.Endpoint;
-import org.apache.camel.spi.Metadata;
-import org.apache.camel.spi.annotations.Component;
-import org.apache.camel.support.DefaultComponent;
-
-@Component(Chroma.SCHEME)
-public class ChromaComponent extends DefaultComponent {
-
- @Metadata
- private ChromaConfiguration configuration;
-
- public ChromaComponent() {
- this(null);
- }
-
- public ChromaComponent(CamelContext context) {
- super(context);
-
- this.configuration = new ChromaConfiguration();
- }
-
- public ChromaConfiguration getConfiguration() {
- return configuration;
- }
-
- /**
- * The configuration;
- */
- public void setConfiguration(ChromaConfiguration configuration) {
- this.configuration = configuration;
- }
-
- @Override
- protected Endpoint createEndpoint(
- String uri,
- String remaining,
- Map<String, Object> parameters)
- throws Exception {
-
- ChromaConfiguration configuration = this.configuration.copy();
-
- ChromaEndpoint endpoint = new ChromaEndpoint(uri, this, remaining, configuration);
- setProperties(endpoint, parameters);
-
- return endpoint;
- }
-}
diff --git a/components/camel-ai/camel-chroma/src/main/java/org/apache/camel/component/chroma/ChromaConfiguration.java b/components/camel-ai/camel-chroma/src/main/java/org/apache/camel/component/chroma/ChromaConfiguration.java
deleted file mode 100644
index b48133a5bda6..000000000000
--- a/components/camel-ai/camel-chroma/src/main/java/org/apache/camel/component/chroma/ChromaConfiguration.java
+++ /dev/null
@@ -1,101 +0,0 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed with
- * this work for additional information regarding copyright ownership.
- * The ASF licenses this file to You under the Apache License, Version 2.0
- * (the "License"); you may not use this file except in compliance with
- * the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-package org.apache.camel.component.chroma;
-
-import org.apache.camel.RuntimeCamelException;
-import org.apache.camel.spi.Configurer;
-import org.apache.camel.spi.Metadata;
-import org.apache.camel.spi.UriParam;
-import org.apache.camel.spi.UriParams;
-import tech.amikos.chromadb.Client;
-import tech.amikos.chromadb.embeddings.EmbeddingFunction;
-
-@Configurer
-@UriParams
-public class ChromaConfiguration implements Cloneable {
-
- @UriParam
- private String host;
-
- @UriParam(defaultValue = "10")
- private int maxResults = 10;
-
- @Metadata(autowired = true)
- private Client client;
-
- @Metadata(autowired = true)
- private EmbeddingFunction embeddingFunction;
-
- public String getHost() {
- return host;
- }
-
- /**
- * The Chroma server host URL.
- */
- public void setHost(String host) {
- this.host = host;
- }
-
- public int getMaxResults() {
- return maxResults;
- }
-
- /**
- * Max results for similarity search.
- */
- public void setMaxResults(int maxResults) {
- this.maxResults = maxResults;
- }
-
- public Client getClient() {
- return client;
- }
-
- /**
- * Reference to a `tech.amikos.chromadb.Client`.
- */
- public void setClient(Client client) {
- this.client = client;
- }
-
- public EmbeddingFunction getEmbeddingFunction() {
- return embeddingFunction;
- }
-
- /**
- * Reference to a `tech.amikos.chromadb.embeddings.EmbeddingFunction`. Used to generate embeddings from documents.
- * If not provided, embeddings must be passed directly via headers.
- */
- public void setEmbeddingFunction(EmbeddingFunction embeddingFunction) {
- this.embeddingFunction = embeddingFunction;
- }
-
- // ************************
- //
- // Clone
- //
- // ************************
-
- public ChromaConfiguration copy() {
- try {
- return (ChromaConfiguration) super.clone();
- } catch (CloneNotSupportedException e) {
- throw new RuntimeCamelException(e);
- }
- }
-}
diff --git a/components/camel-ai/camel-chroma/src/main/java/org/apache/camel/component/chroma/ChromaEndpoint.java b/components/camel-ai/camel-chroma/src/main/java/org/apache/camel/component/chroma/ChromaEndpoint.java
deleted file mode 100644
index 7f975990e142..000000000000
--- a/components/camel-ai/camel-chroma/src/main/java/org/apache/camel/component/chroma/ChromaEndpoint.java
+++ /dev/null
@@ -1,131 +0,0 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed with
- * this work for additional information regarding copyright ownership.
- * The ASF licenses this file to You under the Apache License, Version 2.0
- * (the "License"); you may not use this file except in compliance with
- * the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-package org.apache.camel.component.chroma;
-
-import org.apache.camel.Category;
-import org.apache.camel.Component;
-import org.apache.camel.Consumer;
-import org.apache.camel.Processor;
-import org.apache.camel.Producer;
-import org.apache.camel.spi.EndpointServiceLocation;
-import org.apache.camel.spi.Metadata;
-import org.apache.camel.spi.UriEndpoint;
-import org.apache.camel.spi.UriParam;
-import org.apache.camel.spi.UriPath;
-import org.apache.camel.support.DefaultEndpoint;
-import tech.amikos.chromadb.Client;
-
-/**
- * Perform operations on the Chroma Vector Database.
- */
-@UriEndpoint(
- firstVersion = "4.17.0",
- scheme = Chroma.SCHEME,
- title = "Chroma",
- syntax = "chroma:collection",
- producerOnly = true,
- category = {
- Category.DATABASE,
- Category.AI
- },
- headersClass = ChromaHeaders.class)
-public class ChromaEndpoint extends DefaultEndpoint implements EndpointServiceLocation {
-
- @Metadata(required = true)
- @UriPath(description = "The collection name")
- private final String collection;
-
- @UriParam
- private ChromaConfiguration configuration;
-
- private volatile Client client;
-
- public ChromaEndpoint(
- String endpointUri,
- Component component,
- String collection,
- ChromaConfiguration configuration) {
-
- super(endpointUri, component);
-
- this.collection = collection;
- this.configuration = configuration;
- }
-
- @Override
- public String getServiceUrl() {
- return configuration.getHost();
- }
-
- @Override
- public String getServiceProtocol() {
- return "http";
- }
-
- public ChromaConfiguration getConfiguration() {
- return configuration;
- }
-
- public String getCollection() {
- return collection;
- }
-
- public Client getClient() {
- if (this.client == null) {
- lock.lock();
- try {
- if (this.client == null) {
- this.client = this.configuration.getClient();
-
- if (this.client == null) {
- this.client = createClient();
- }
- }
- } finally {
- lock.unlock();
- }
- }
-
- return this.client;
- }
-
- @Override
- public Producer createProducer() throws Exception {
- return new ChromaProducer(this);
- }
-
- @Override
- public Consumer createConsumer(Processor processor) throws Exception {
- throw new UnsupportedOperationException("Consumer is not implemented for this component");
- }
-
- @Override
- public void doStart() throws Exception {
- super.doStart();
- }
-
- @Override
- public void doStop() throws Exception {
- super.doStop();
-
- this.client = null;
- }
-
- private Client createClient() {
- return new Client(configuration.getHost());
- }
-}
diff --git a/components/camel-ai/camel-chroma/src/main/java/org/apache/camel/component/chroma/ChromaHeaders.java b/components/camel-ai/camel-chroma/src/main/java/org/apache/camel/component/chroma/ChromaHeaders.java
deleted file mode 100644
index 2979d2d3101f..000000000000
--- a/components/camel-ai/camel-chroma/src/main/java/org/apache/camel/component/chroma/ChromaHeaders.java
+++ /dev/null
@@ -1,62 +0,0 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed with
- * this work for additional information regarding copyright ownership.
- * The ASF licenses this file to You under the Apache License, Version 2.0
- * (the "License"); you may not use this file except in compliance with
- * the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-package org.apache.camel.component.chroma;
-
-import org.apache.camel.spi.Metadata;
-
-public final class ChromaHeaders {
-
- @Metadata(description = "The action to be performed.", javaType = "String",
- enums = "CREATE_COLLECTION,DELETE_COLLECTION,GET_COLLECTION,ADD,QUERY,GET,UPDATE,UPSERT,DELETE")
- public static final String ACTION = "CamelChromaAction";
-
- @Metadata(description = "The collection name.", javaType = "String")
- public static final String COLLECTION_NAME = "CamelChromaCollectionName";
-
- @Metadata(description = "The embedding IDs.", javaType = "java.util.List<String>")
- public static final String IDS = "CamelChromaIds";
-
- @Metadata(description = "The embeddings.", javaType = "java.util.List<java.util.List<Float>>")
- public static final String EMBEDDINGS = "CamelChromaEmbeddings";
-
- @Metadata(description = "The metadata for embeddings.", javaType = "java.util.List<java.util.Map<String, String>>")
- public static final String METADATAS = "CamelChromaMetadatas";
-
- @Metadata(description = "The documents for embeddings.", javaType = "java.util.List<String>")
- public static final String DOCUMENTS = "CamelChromaDocuments";
-
- @Metadata(description = "The query embeddings for similarity search.", javaType = "java.util.List<java.util.List<Float>>")
- public static final String QUERY_EMBEDDINGS = "CamelChromaQueryEmbeddings";
-
- @Metadata(description = "The number of results to return.", javaType = "Integer", defaultValue = "10")
- public static final String N_RESULTS = "CamelChromaNResults";
-
- @Metadata(description = "Chroma where filter.", javaType = "java.util.Map<String, Object>")
- public static final String WHERE = "CamelChromaWhere";
-
- @Metadata(description = "Chroma where document filter.", javaType = "java.util.Map<String, Object>")
- public static final String WHERE_DOCUMENT = "CamelChromaWhereDocument";
-
- @Metadata(description = "The fields to include in the result.", javaType = "java.util.List<String>")
- public static final String INCLUDE = "CamelChromaInclude";
-
- @Metadata(description = "The operation status.", javaType = "String")
- public static final String OPERATION_STATUS = "CamelChromaOperationStatus";
-
- private ChromaHeaders() {
- }
-}
diff --git a/components/camel-ai/camel-chroma/src/main/java/org/apache/camel/component/chroma/ChromaProducer.java b/components/camel-ai/camel-chroma/src/main/java/org/apache/camel/component/chroma/ChromaProducer.java
deleted file mode 100644
index adcce33f55f5..000000000000
--- a/components/camel-ai/camel-chroma/src/main/java/org/apache/camel/component/chroma/ChromaProducer.java
+++ /dev/null
@@ -1,275 +0,0 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed with
- * this work for additional information regarding copyright ownership.
- * The ASF licenses this file to You under the Apache License, Version 2.0
- * (the "License"); you may not use this file except in compliance with
- * the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-package org.apache.camel.component.chroma;
-
-import java.util.ArrayList;
-import java.util.List;
-import java.util.Map;
-import java.util.stream.Collectors;
-
-import org.apache.camel.Exchange;
-import org.apache.camel.Message;
-import org.apache.camel.NoSuchHeaderException;
-import org.apache.camel.support.DefaultProducer;
-import tech.amikos.chromadb.Client;
-import tech.amikos.chromadb.Collection;
-import tech.amikos.chromadb.Embedding;
-import tech.amikos.chromadb.embeddings.EmbeddingFunction;
-import tech.amikos.chromadb.model.QueryEmbedding;
-
-public class ChromaProducer extends DefaultProducer {
-
- private Client client;
- private EmbeddingFunction embeddingFunction;
-
- public ChromaProducer(ChromaEndpoint endpoint) {
- super(endpoint);
- }
-
- @Override
- public ChromaEndpoint getEndpoint() {
- return (ChromaEndpoint) super.getEndpoint();
- }
-
- @Override
- public void doStart() throws Exception {
- super.doStart();
-
- this.client = getEndpoint().getClient();
- this.embeddingFunction = getEndpoint().getConfiguration().getEmbeddingFunction();
- }
-
- @Override
- public void process(Exchange exchange) throws Exception {
- final Message in = exchange.getMessage();
- final ChromaAction action = in.getHeader(ChromaHeaders.ACTION, ChromaAction.class);
-
- try {
- if (action == null) {
- throw new NoSuchHeaderException("The action is a required header", exchange, ChromaHeaders.ACTION);
- }
-
- switch (action) {
- case CREATE_COLLECTION:
- createCollection(exchange);
- break;
- case DELETE_COLLECTION:
- deleteCollection(exchange);
- break;
- case GET_COLLECTION:
- getCollection(exchange);
- break;
- case ADD:
- add(exchange);
- break;
- case QUERY:
- query(exchange);
- break;
- case GET:
- get(exchange);
- break;
- case UPDATE:
- update(exchange);
- break;
- case UPSERT:
- upsert(exchange);
- break;
- case DELETE:
- delete(exchange);
- break;
- default:
- throw new UnsupportedOperationException("Unsupported action: " + action.name());
- }
- } catch (Exception e) {
- exchange.setException(e);
- }
- }
-
- // ***************************************
- //
- // Actions
- //
- // ***************************************
-
- private void createCollection(Exchange exchange) throws Exception {
- final Message in = exchange.getMessage();
-
- String collectionName = getCollectionName(in);
-
- Collection collection = this.client.createCollection(collectionName, null, true, embeddingFunction);
- in.setBody(collection);
- in.setHeader(ChromaHeaders.OPERATION_STATUS, "SUCCESS");
- }
-
- private void deleteCollection(Exchange exchange) throws Exception {
- final Message in = exchange.getMessage();
-
- String collectionName = getCollectionName(in);
-
- this.client.deleteCollection(collectionName);
- in.setHeader(ChromaHeaders.OPERATION_STATUS, "SUCCESS");
- }
-
- private void getCollection(Exchange exchange) throws Exception {
- final Message in = exchange.getMessage();
-
- String collectionName = getCollectionName(in);
-
- Collection collection = this.client.getCollection(collectionName, embeddingFunction);
- in.setBody(collection);
- in.setHeader(ChromaHeaders.OPERATION_STATUS, "SUCCESS");
- }
-
- @SuppressWarnings("unchecked")
- private void add(Exchange exchange) throws Exception {
- final Message in = exchange.getMessage();
-
- String collectionName = getCollectionName(in);
- Collection collection = this.client.getCollection(collectionName, embeddingFunction);
-
- List<String> ids = in.getHeader(ChromaHeaders.IDS, List.class);
- List<Embedding> embeddings = getEmbeddings(in);
- List<Map<String, String>> metadatas = in.getHeader(ChromaHeaders.METADATAS, List.class);
- List<String> documents = in.getBody(List.class);
-
- collection.add(embeddings, metadatas, documents, ids);
- in.setHeader(ChromaHeaders.OPERATION_STATUS, "SUCCESS");
- }
-
- @SuppressWarnings("unchecked")
- private void query(Exchange exchange) throws Exception {
- final Message in = exchange.getMessage();
-
- String collectionName = getCollectionName(in);
- Collection collection = this.client.getCollection(collectionName, embeddingFunction);
-
- Integer nResults
- = in.getHeader(ChromaHeaders.N_RESULTS, getEndpoint().getConfiguration().getMaxResults(), Integer.class);
- Map<String, Object> where = in.getHeader(ChromaHeaders.WHERE, Map.class);
- Map<String, Object> whereDocument = in.getHeader(ChromaHeaders.WHERE_DOCUMENT, Map.class);
- List<QueryEmbedding.IncludeEnum> include = getIncludeEnums(in);
-
- // Use text query from body
- List<String> queryTexts = in.getBody(List.class);
- Collection.QueryResponse response = collection.query(queryTexts, nResults, where, whereDocument, include);
-
- in.setBody(response);
- in.setHeader(ChromaHeaders.OPERATION_STATUS, "SUCCESS");
- }
-
- @SuppressWarnings("unchecked")
- private void get(Exchange exchange) throws Exception {
- final Message in = exchange.getMessage();
-
- String collectionName = getCollectionName(in);
- Collection collection = this.client.getCollection(collectionName, embeddingFunction);
-
- List<String> ids = in.getHeader(ChromaHeaders.IDS, List.class);
- Map<String, String> where = in.getHeader(ChromaHeaders.WHERE, Map.class);
- Map<String, Object> whereDocument = in.getHeader(ChromaHeaders.WHERE_DOCUMENT, Map.class);
-
- Collection.GetResult result = collection.get(ids, where, whereDocument);
-
- in.setBody(result);
- in.setHeader(ChromaHeaders.OPERATION_STATUS, "SUCCESS");
- }
-
- @SuppressWarnings("unchecked")
- private void update(Exchange exchange) throws Exception {
- final Message in = exchange.getMessage();
-
- String collectionName = getCollectionName(in);
- Collection collection = this.client.getCollection(collectionName, embeddingFunction);
-
- List<String> ids = in.getHeader(ChromaHeaders.IDS, List.class);
- List<Embedding> embeddings = getEmbeddings(in);
- List<Map<String, String>> metadatas = in.getHeader(ChromaHeaders.METADATAS, List.class);
- List<String> documents = in.getBody(List.class);
-
- collection.updateEmbeddings(embeddings, metadatas, documents, ids);
- in.setHeader(ChromaHeaders.OPERATION_STATUS, "SUCCESS");
- }
-
- @SuppressWarnings("unchecked")
- private void upsert(Exchange exchange) throws Exception {
- final Message in = exchange.getMessage();
-
- String collectionName = getCollectionName(in);
- Collection collection = this.client.getCollection(collectionName, embeddingFunction);
-
- List<String> ids = in.getHeader(ChromaHeaders.IDS, List.class);
- List<Embedding> embeddings = getEmbeddings(in);
- List<Map<String, String>> metadatas = in.getHeader(ChromaHeaders.METADATAS, List.class);
- List<String> documents = in.getBody(List.class);
-
- collection.upsert(embeddings, metadatas, documents, ids);
- in.setHeader(ChromaHeaders.OPERATION_STATUS, "SUCCESS");
- }
-
- @SuppressWarnings("unchecked")
- private void delete(Exchange exchange) throws Exception {
- final Message in = exchange.getMessage();
-
- String collectionName = getCollectionName(in);
- Collection collection = this.client.getCollection(collectionName, embeddingFunction);
-
- List<String> ids = in.getHeader(ChromaHeaders.IDS, List.class);
- Map<String, Object> where = in.getHeader(ChromaHeaders.WHERE, Map.class);
- Map<String, Object> whereDocument = in.getHeader(ChromaHeaders.WHERE_DOCUMENT, Map.class);
-
- collection.delete(ids, where, whereDocument);
- in.setHeader(ChromaHeaders.OPERATION_STATUS, "SUCCESS");
- }
-
- // ***************************************
- //
- // Helpers
- //
- // ***************************************
-
- private String getCollectionName(Message in) {
- String collectionName = in.getHeader(ChromaHeaders.COLLECTION_NAME, String.class);
- if (collectionName == null) {
- collectionName = getEndpoint().getCollection();
- }
- return collectionName;
- }
-
- @SuppressWarnings("unchecked")
- private List<Embedding> getEmbeddings(Message in) {
- List<List<Float>> embeddingsList = in.getHeader(ChromaHeaders.EMBEDDINGS, List.class);
- if (embeddingsList == null) {
- return null;
- }
- return embeddingsList.stream()
- .map(Embedding::fromList)
- .collect(Collectors.toList());
- }
-
- @SuppressWarnings("unchecked")
- private List<QueryEmbedding.IncludeEnum> getIncludeEnums(Message in) {
- List<String> includeStrings = in.getHeader(ChromaHeaders.INCLUDE, List.class);
- if (includeStrings == null) {
- return null;
- }
- List<QueryEmbedding.IncludeEnum> result = new ArrayList<>();
- for (String s : includeStrings) {
- result.add(QueryEmbedding.IncludeEnum.fromValue(s));
- }
- return result;
- }
-}
diff --git a/components/camel-ai/camel-chroma/src/test/java/org/apache/camel/component/chroma/ChromaTestSupport.java b/components/camel-ai/camel-chroma/src/test/java/org/apache/camel/component/chroma/ChromaTestSupport.java
deleted file mode 100644
index 6fbffc68e83a..000000000000
--- a/components/camel-ai/camel-chroma/src/test/java/org/apache/camel/component/chroma/ChromaTestSupport.java
+++ /dev/null
@@ -1,88 +0,0 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed with
- * this work for additional information regarding copyright ownership.
- * The ASF licenses this file to You under the Apache License, Version 2.0
- * (the "License"); you may not use this file except in compliance with
- * the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-package org.apache.camel.component.chroma;
-
-import java.util.ArrayList;
-import java.util.List;
-
-import org.apache.camel.CamelContext;
-import org.apache.camel.test.infra.chroma.services.ChromaService;
-import org.apache.camel.test.infra.chroma.services.ChromaServiceFactory;
-import org.apache.camel.test.junit5.CamelTestSupport;
-import org.junit.jupiter.api.TestInstance;
-import org.junit.jupiter.api.extension.RegisterExtension;
-import tech.amikos.chromadb.Embedding;
-import tech.amikos.chromadb.embeddings.EmbeddingFunction;
-
-@TestInstance(TestInstance.Lifecycle.PER_CLASS)
-public class ChromaTestSupport extends CamelTestSupport {
-
- @RegisterExtension
- static ChromaService CHROMA = ChromaServiceFactory.createSingletonService();
-
- @Override
- protected CamelContext createCamelContext() throws Exception {
- CamelContext context = super.createCamelContext();
-
- ChromaComponent component = context.getComponent("chroma", ChromaComponent.class);
- component.getConfiguration().setHost(CHROMA.getEndpoint());
- component.getConfiguration().setEmbeddingFunction(new TestEmbeddingFunction());
-
- return context;
- }
-
- /**
- * A simple embedding function for testing that generates deterministic embeddings based on the hash of the input
- * text.
- */
- public static class TestEmbeddingFunction implements EmbeddingFunction {
- private static final int EMBEDDING_DIMENSION = 384;
-
- @Override
- public List<Embedding> embedDocuments(List<String> documents) {
- List<Embedding> result = new ArrayList<>();
- for (String doc : documents) {
- result.add(createEmbedding(doc));
- }
- return result;
- }
-
- @Override
- public List<Embedding> embedDocuments(String[] documents) {
- List<Embedding> result = new ArrayList<>();
- for (String doc : documents) {
- result.add(createEmbedding(doc));
- }
- return result;
- }
-
- @Override
- public Embedding embedQuery(String query) {
- return createEmbedding(query);
- }
-
- private Embedding createEmbedding(String text) {
- float[] values = new float[EMBEDDING_DIMENSION];
- int hash = text.hashCode();
- for (int i = 0; i < EMBEDDING_DIMENSION; i++) {
- // Generate deterministic values based on hash
- values[i] = (float) Math.sin(hash + i) * 0.5f;
- }
- return new Embedding(values);
- }
- }
-}
diff --git a/components/camel-ai/camel-chroma/src/test/java/org/apache/camel/component/chroma/it/ChromaContainerIT.java b/components/camel-ai/camel-chroma/src/test/java/org/apache/camel/component/chroma/it/ChromaContainerIT.java
deleted file mode 100644
index a66ba8d21709..000000000000
--- a/components/camel-ai/camel-chroma/src/test/java/org/apache/camel/component/chroma/it/ChromaContainerIT.java
+++ /dev/null
@@ -1,181 +0,0 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed with
- * this work for additional information regarding copyright ownership.
- * The ASF licenses this file to You under the Apache License, Version 2.0
- * (the "License"); you may not use this file except in compliance with
- * the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-package org.apache.camel.component.chroma.it;
-
-import java.util.Arrays;
-import java.util.Collections;
-import java.util.List;
-
-import org.apache.camel.Exchange;
-import org.apache.camel.component.chroma.ChromaAction;
-import org.apache.camel.component.chroma.ChromaHeaders;
-import org.apache.camel.component.chroma.ChromaTestSupport;
-import org.junit.jupiter.api.MethodOrderer;
-import org.junit.jupiter.api.Order;
-import org.junit.jupiter.api.Test;
-import org.junit.jupiter.api.TestMethodOrder;
-import tech.amikos.chromadb.Collection;
-
-import static org.assertj.core.api.Assertions.assertThat;
-
-@TestMethodOrder(MethodOrderer.OrderAnnotation.class)
-public class ChromaContainerIT extends ChromaTestSupport {
- private static final String COLLECTION = "ChromaITCollection";
-
- @Test
- @Order(1)
- public void createCollection() {
- Exchange result = fluentTemplate
- .to("chroma:" + COLLECTION)
- .withHeader(ChromaHeaders.ACTION, ChromaAction.CREATE_COLLECTION)
- .request(Exchange.class);
-
- assertThat(result).isNotNull();
- assertThat(result.getException()).isNull();
- assertThat(result.getMessage().getHeader(ChromaHeaders.OPERATION_STATUS)).isEqualTo("SUCCESS");
-
- Collection collection = result.getMessage().getBody(Collection.class);
- assertThat(collection).isNotNull();
- assertThat(collection.getName()).isEqualTo(COLLECTION);
- }
-
- @Test
- @Order(2)
- public void getCollection() {
- Exchange result = fluentTemplate
- .to("chroma:" + COLLECTION)
- .withHeader(ChromaHeaders.ACTION, ChromaAction.GET_COLLECTION)
- .request(Exchange.class);
-
- assertThat(result).isNotNull();
- assertThat(result.getException()).isNull();
- assertThat(result.getMessage().getHeader(ChromaHeaders.OPERATION_STATUS)).isEqualTo("SUCCESS");
-
- Collection collection = result.getMessage().getBody(Collection.class);
- assertThat(collection).isNotNull();
- assertThat(collection.getName()).isEqualTo(COLLECTION);
- }
-
- @Test
- @Order(3)
- public void addDocuments() {
- List<String> ids = Arrays.asList("id1", "id2", "id3");
- List<String> documents = Arrays.asList(
- "This is a document about cats",
- "This is a document about dogs",
- "This is a document about birds");
-
- Exchange result = fluentTemplate
- .to("chroma:" + COLLECTION)
- .withHeader(ChromaHeaders.ACTION, ChromaAction.ADD)
- .withHeader(ChromaHeaders.IDS, ids)
- .withBody(documents)
- .request(Exchange.class);
-
- assertThat(result).isNotNull();
- assertThat(result.getException()).isNull();
- assertThat(result.getMessage().getHeader(ChromaHeaders.OPERATION_STATUS)).isEqualTo("SUCCESS");
- }
-
- @Test
- @Order(4)
- public void getDocuments() {
- List<String> ids = Arrays.asList("id1", "id2");
-
- Exchange result = fluentTemplate
- .to("chroma:" + COLLECTION)
- .withHeader(ChromaHeaders.ACTION, ChromaAction.GET)
- .withHeader(ChromaHeaders.IDS, ids)
- .request(Exchange.class);
-
- assertThat(result).isNotNull();
- assertThat(result.getException()).isNull();
- assertThat(result.getMessage().getHeader(ChromaHeaders.OPERATION_STATUS)).isEqualTo("SUCCESS");
-
- Collection.GetResult getResult = result.getMessage().getBody(Collection.GetResult.class);
- assertThat(getResult).isNotNull();
- assertThat(getResult.getIds()).containsExactlyInAnyOrder("id1", "id2");
- }
-
- @Test
- @Order(5)
- public void queryDocuments() {
- List<String> queryTexts = Collections.singletonList("cats");
-
- Exchange result = fluentTemplate
- .to("chroma:" + COLLECTION)
- .withHeader(ChromaHeaders.ACTION, ChromaAction.QUERY)
- .withHeader(ChromaHeaders.N_RESULTS, 2)
- .withBody(queryTexts)
- .request(Exchange.class);
-
- assertThat(result).isNotNull();
- assertThat(result.getException()).isNull();
- assertThat(result.getMessage().getHeader(ChromaHeaders.OPERATION_STATUS)).isEqualTo("SUCCESS");
-
- Collection.QueryResponse queryResponse = result.getMessage().getBody(Collection.QueryResponse.class);
- assertThat(queryResponse).isNotNull();
- }
-
- @Test
- @Order(6)
- public void deleteDocuments() {
- List<String> ids = Collections.singletonList("id3");
-
- Exchange result = fluentTemplate
- .to("chroma:" + COLLECTION)
- .withHeader(ChromaHeaders.ACTION, ChromaAction.DELETE)
- .withHeader(ChromaHeaders.IDS, ids)
- .request(Exchange.class);
-
- assertThat(result).isNotNull();
- assertThat(result.getException()).isNull();
- assertThat(result.getMessage().getHeader(ChromaHeaders.OPERATION_STATUS)).isEqualTo("SUCCESS");
- }
-
- @Test
- @Order(7)
- public void verifyDocumentDeleted() {
- List<String> ids = Collections.singletonList("id3");
-
- Exchange result = fluentTemplate
- .to("chroma:" + COLLECTION)
- .withHeader(ChromaHeaders.ACTION, ChromaAction.GET)
- .withHeader(ChromaHeaders.IDS, ids)
- .request(Exchange.class);
-
- assertThat(result).isNotNull();
- assertThat(result.getException()).isNull();
-
- Collection.GetResult getResult = result.getMessage().getBody(Collection.GetResult.class);
- assertThat(getResult).isNotNull();
- assertThat(getResult.getIds()).isEmpty();
- }
-
- @Test
- @Order(10)
- public void deleteCollection() {
- Exchange result = fluentTemplate
- .to("chroma:" + COLLECTION)
- .withHeader(ChromaHeaders.ACTION, ChromaAction.DELETE_COLLECTION)
- .request(Exchange.class);
-
- assertThat(result).isNotNull();
- assertThat(result.getException()).isNull();
- assertThat(result.getMessage().getHeader(ChromaHeaders.OPERATION_STATUS)).isEqualTo("SUCCESS");
- }
-}
diff --git a/components/camel-ai/camel-chroma/src/test/resources/log4j2.properties b/components/camel-ai/camel-chroma/src/test/resources/log4j2.properties
deleted file mode 100644
index 6243ece2755f..000000000000
--- a/components/camel-ai/camel-chroma/src/test/resources/log4j2.properties
+++ /dev/null
@@ -1,30 +0,0 @@
-## ---------------------------------------------------------------------------
-## Licensed to the Apache Software Foundation (ASF) under one or more
-## contributor license agreements. See the NOTICE file distributed with
-## this work for additional information regarding copyright ownership.
-## The ASF licenses this file to You under the Apache License, Version 2.0
-## (the "License"); you may not use this file except in compliance with
-## the License. You may obtain a copy of the License at
-##
-## http://www.apache.org/licenses/LICENSE-2.0
-##
-## Unless required by applicable law or agreed to in writing, software
-## distributed under the License is distributed on an "AS IS" BASIS,
-## WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-## See the License for the specific language governing permissions and
-## limitations under the License.
-## ---------------------------------------------------------------------------
-
-appender.file.type = File
-appender.file.name = file
-appender.file.fileName = target/camel-chroma-test.log
-appender.file.layout.type = PatternLayout
-appender.file.layout.pattern = %d [%-15.15t] %-5p %-30.30c{1} - %m%n
-
-appender.out.type = Console
-appender.out.name = out
-appender.out.layout.type = PatternLayout
-appender.out.layout.pattern = [%30.30t] %-30.30c{1} %-5p %m%n
-
-rootLogger.level = INFO
-rootLogger.appenderRef.file.ref = file
diff --git a/components/camel-ai/pom.xml b/components/camel-ai/pom.xml
index 28f4217354f3..01a712defb0f 100644
--- a/components/camel-ai/pom.xml
+++ b/components/camel-ai/pom.xml
@@ -35,8 +35,6 @@
<modules>
<module>camel-chatscript</module>
- <!-- This is only supported in certain architectures (see profiles) -->
- <!-- module>camel-chroma</module -->
<module>camel-djl</module>
<module>camel-docling</module>
<module>camel-kserve</module>
@@ -60,22 +58,4 @@
<module>camel-weaviate</module>
</modules>
- <profiles>
- <!--
- IMPORTANT: this is used to detect unsupported modules which cannot be compiled for certain architectures.
- It can be eventually extended to include more modules which suffer the same kind of problem.
- -->
- <profile>
- <id>unsupported-arch</id>
- <activation>
- <property>
- <name>!unsupported-arch</name>
- </property>
- </activation>
- <modules>
- <module>camel-chroma</module>
- </modules>
- </profile>
- </profiles>
-
</project>
diff --git a/core/camel-main/src/generated/resources/org/apache/camel/main/components.properties b/core/camel-main/src/generated/resources/org/apache/camel/main/components.properties
index 161df3a11d39..e2637d25c772 100644
--- a/core/camel-main/src/generated/resources/org/apache/camel/main/components.properties
+++ b/core/camel-main/src/generated/resources/org/apache/camel/main/components.properties
@@ -58,7 +58,6 @@ browse
caffeine-cache
caffeine-loadcache
chatscript
-chroma
chunk
class
clickup
diff --git a/docs/components/modules/ROOT/examples/json/chroma.json b/docs/components/modules/ROOT/examples/json/chroma.json
deleted file mode 120000
index 0ca76aad3212..000000000000
--- a/docs/components/modules/ROOT/examples/json/chroma.json
+++ /dev/null
@@ -1 +0,0 @@
-../../../../../../components/camel-ai/camel-chroma/src/generated/resources/META-INF/org/apache/camel/component/chroma/chroma.json
\ No newline at end of file
diff --git a/docs/components/modules/ROOT/nav.adoc b/docs/components/modules/ROOT/nav.adoc
index 35d30a8bc41f..d4b76cb0fb84 100644
--- a/docs/components/modules/ROOT/nav.adoc
+++ b/docs/components/modules/ROOT/nav.adoc
@@ -6,7 +6,6 @@
** xref:activemq6-component.adoc[ActiveMQ 6.x]
** xref:ai-summary.adoc[AI]
*** xref:chatscript-component.adoc[ChatScript]
-*** xref:chroma-component.adoc[Chroma]
*** xref:djl-component.adoc[Deep Java Library]
*** xref:docling-component.adoc[Docling]
*** xref:kserve-component.adoc[KServe]
diff --git a/docs/components/modules/ROOT/pages/chroma-component.adoc b/docs/components/modules/ROOT/pages/chroma-component.adoc
deleted file mode 120000
index c8f23922a8c9..000000000000
--- a/docs/components/modules/ROOT/pages/chroma-component.adoc
+++ /dev/null
@@ -1 +0,0 @@
-../../../../../components/camel-ai/camel-chroma/src/main/docs/chroma-component.adoc
\ No newline at end of file
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 a18d311af681..1eb172908e72 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
@@ -833,19 +833,6 @@ public interface ComponentsBuilderFactory {
static ChatscriptComponentBuilderFactory.ChatscriptComponentBuilder chatscript() {
return ChatscriptComponentBuilderFactory.chatscript();
}
- /**
- * Chroma (camel-chroma)
- * Perform operations on the Chroma Vector Database.
- *
- * Category: database,ai
- * Since: 4.17
- * Maven coordinates: org.apache.camel:camel-chroma
- *
- * @return the dsl builder
- */
- static ChromaComponentBuilderFactory.ChromaComponentBuilder chroma() {
- return ChromaComponentBuilderFactory.chroma();
- }
/**
* Chunk (camel-chunk)
* Transform messages using Chunk templating engine.
diff --git a/dsl/camel-componentdsl/src/generated/java/org/apache/camel/builder/component/dsl/ChromaComponentBuilderFactory.java b/dsl/camel-componentdsl/src/generated/java/org/apache/camel/builder/component/dsl/ChromaComponentBuilderFactory.java
deleted file mode 100644
index 7021851e09d6..000000000000
--- a/dsl/camel-componentdsl/src/generated/java/org/apache/camel/builder/component/dsl/ChromaComponentBuilderFactory.java
+++ /dev/null
@@ -1,177 +0,0 @@
-/* Generated by camel build tools - do NOT edit this file! */
-/*
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed with
- * this work for additional information regarding copyright ownership.
- * The ASF licenses this file to You under the Apache License, Version 2.0
- * (the "License"); you may not use this file except in compliance with
- * the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-package org.apache.camel.builder.component.dsl;
-
-import javax.annotation.processing.Generated;
-import org.apache.camel.Component;
-import org.apache.camel.builder.component.AbstractComponentBuilder;
-import org.apache.camel.builder.component.ComponentBuilder;
-import org.apache.camel.component.chroma.ChromaComponent;
-
-/**
- * Perform operations on the Chroma Vector Database.
- *
- * Generated by camel build tools - do NOT edit this file!
- */
-@Generated("org.apache.camel.maven.packaging.ComponentDslMojo")
-public interface ChromaComponentBuilderFactory {
-
- /**
- * Chroma (camel-chroma)
- * Perform operations on the Chroma Vector Database.
- *
- * Category: database,ai
- * Since: 4.17
- * Maven coordinates: org.apache.camel:camel-chroma
- *
- * @return the dsl builder
- */
- static ChromaComponentBuilder chroma() {
- return new ChromaComponentBuilderImpl();
- }
-
- /**
- * Builder for the Chroma component.
- */
- interface ChromaComponentBuilder extends ComponentBuilder<ChromaComponent> {
-
- /**
- * The configuration;.
- *
- * The option is a:
- * <code>org.apache.camel.component.chroma.ChromaConfiguration</code> type.
- *
- * Group: producer
- *
- * @param configuration the value to set
- * @return the dsl builder
- */
- default ChromaComponentBuilder configuration(org.apache.camel.component.chroma.ChromaConfiguration configuration) {
- doSetProperty("configuration", configuration);
- return this;
- }
-
- /**
- * The Chroma server host URL.
- *
- * The option is a: <code>java.lang.String</code> type.
- *
- * Group: producer
- *
- * @param host the value to set
- * @return the dsl builder
- */
- default ChromaComponentBuilder host(java.lang.String host) {
- doSetProperty("host", host);
- return this;
- }
-
-
- /**
- * 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 during
- * starting and cause the route to fail being started. By deferring this
- * startup to be lazy then the startup failure can be handled during
- * routing messages via Camel's routing error handlers. Beware that when
- * the first message is processed then creating and starting the
- * producer may take a little time and prolong the total processing time
- * of the processing.
- *
- * The option is a: <code>boolean</code> type.
- *
- * Default: false
- * Group: producer
- *
- * @param lazyStartProducer the value to set
- * @return the dsl builder
- */
- default ChromaComponentBuilder lazyStartProducer(boolean lazyStartProducer) {
- doSetProperty("lazyStartProducer", lazyStartProducer);
- return this;
- }
-
-
- /**
- * Max results for similarity search.
- *
- * The option is a: <code>int</code> type.
- *
- * Default: 10
- * Group: producer
- *
- * @param maxResults the value to set
- * @return the dsl builder
- */
- default ChromaComponentBuilder maxResults(int maxResults) {
- doSetProperty("maxResults", maxResults);
- return this;
- }
-
-
- /**
- * 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 type,
- * which then gets configured on the component. This can be used for
- * automatic configuring JDBC data sources, JMS connection factories,
- * AWS Clients, etc.
- *
- * The option is a: <code>boolean</code> type.
- *
- * Default: true
- * Group: advanced
- *
- * @param autowiredEnabled the value to set
- * @return the dsl builder
- */
- default ChromaComponentBuilder autowiredEnabled(boolean autowiredEnabled) {
- doSetProperty("autowiredEnabled", autowiredEnabled);
- return this;
- }
- }
-
- class ChromaComponentBuilderImpl
- extends AbstractComponentBuilder<ChromaComponent>
- implements ChromaComponentBuilder {
- @Override
- protected ChromaComponent buildConcreteComponent() {
- return new ChromaComponent();
- }
- private org.apache.camel.component.chroma.ChromaConfiguration getOrCreateConfiguration(ChromaComponent component) {
- if (component.getConfiguration() == null) {
- component.setConfiguration(new org.apache.camel.component.chroma.ChromaConfiguration());
- }
- return component.getConfiguration();
- }
- @Override
- protected boolean setPropertyOnComponent(
- Component component,
- String name,
- Object value) {
- switch (name) {
- case "configuration": ((ChromaComponent) component).setConfiguration((org.apache.camel.component.chroma.ChromaConfiguration) value); return true;
- case "host": getOrCreateConfiguration((ChromaComponent) component).setHost((java.lang.String) value); return true;
- case "lazyStartProducer": ((ChromaComponent) component).setLazyStartProducer((boolean) value); return true;
- case "maxResults": getOrCreateConfiguration((ChromaComponent) component).setMaxResults((int) value); return true;
- case "autowiredEnabled": ((ChromaComponent) component).setAutowiredEnabled((boolean) value); return true;
- default: return false;
- }
- }
- }
-}
\ No newline at end of file
diff --git a/dsl/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/EndpointBuilderFactory.java b/dsl/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/EndpointBuilderFactory.java
index c1e46b61aed6..64fd20d43a85 100644
--- a/dsl/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/EndpointBuilderFactory.java
+++ b/dsl/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/EndpointBuilderFactory.java
@@ -57,7 +57,6 @@ public interface EndpointBuilderFactory
org.apache.camel.builder.endpoint.dsl.CaffeineLoadCacheEndpointBuilderFactory.CaffeineLoadCacheBuilders,
org.apache.camel.builder.endpoint.dsl.CassandraEndpointBuilderFactory.CassandraBuilders,
org.apache.camel.builder.endpoint.dsl.ChatScriptEndpointBuilderFactory.ChatScriptBuilders,
- org.apache.camel.builder.endpoint.dsl.ChromaEndpointBuilderFactory.ChromaBuilders,
org.apache.camel.builder.endpoint.dsl.ChunkEndpointBuilderFactory.ChunkBuilders,
org.apache.camel.builder.endpoint.dsl.CinderEndpointBuilderFactory.CinderBuilders,
org.apache.camel.builder.endpoint.dsl.ClassEndpointBuilderFactory.ClassBuilders,
diff --git a/dsl/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/EndpointBuilders.java b/dsl/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/EndpointBuilders.java
index 6f181a620c70..7317a8e2fadb 100644
--- a/dsl/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/EndpointBuilders.java
+++ b/dsl/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/EndpointBuilders.java
@@ -54,7 +54,6 @@ public interface EndpointBuilders
org.apache.camel.builder.endpoint.dsl.CaffeineLoadCacheEndpointBuilderFactory,
org.apache.camel.builder.endpoint.dsl.CassandraEndpointBuilderFactory,
org.apache.camel.builder.endpoint.dsl.ChatScriptEndpointBuilderFactory,
- org.apache.camel.builder.endpoint.dsl.ChromaEndpointBuilderFactory,
org.apache.camel.builder.endpoint.dsl.ChunkEndpointBuilderFactory,
org.apache.camel.builder.endpoint.dsl.CinderEndpointBuilderFactory,
org.apache.camel.builder.endpoint.dsl.ClassEndpointBuilderFactory,
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 5150985c15ab..8cf00120c5bb 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
@@ -2634,46 +2634,6 @@ public class StaticEndpointBuilders {
public static ChatScriptEndpointBuilderFactory.ChatScriptEndpointBuilder chatscript(String componentName, String path) {
return ChatScriptEndpointBuilderFactory.endpointBuilder(componentName, path);
}
- /**
- * Chroma (camel-chroma)
- * Perform operations on the Chroma Vector Database.
- *
- * Category: database,ai
- * Since: 4.17
- * Maven coordinates: org.apache.camel:camel-chroma
- *
- * Syntax: <code>chroma:collection</code>
- *
- * Path parameter: collection (required)
- * The collection name
- *
- * @param path collection
- * @return the dsl builder
- */
- public static ChromaEndpointBuilderFactory.ChromaEndpointBuilder chroma(String path) {
- return chroma("chroma", path);
- }
- /**
- * Chroma (camel-chroma)
- * Perform operations on the Chroma Vector Database.
- *
- * Category: database,ai
- * Since: 4.17
- * Maven coordinates: org.apache.camel:camel-chroma
- *
- * Syntax: <code>chroma:collection</code>
- *
- * Path parameter: collection (required)
- * The collection name
- *
- * @param componentName to use a custom component name for the endpoint
- * instead of the default name
- * @param path collection
- * @return the dsl builder
- */
- public static ChromaEndpointBuilderFactory.ChromaEndpointBuilder chroma(String componentName, String path) {
- return ChromaEndpointBuilderFactory.endpointBuilder(componentName, path);
- }
/**
* Chunk (camel-chunk)
* Transform messages using Chunk templating engine.
diff --git a/dsl/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/dsl/ChromaEndpointBuilderFactory.java b/dsl/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/dsl/ChromaEndpointBuilderFactory.java
deleted file mode 100644
index a54f0340b707..000000000000
--- a/dsl/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/dsl/ChromaEndpointBuilderFactory.java
+++ /dev/null
@@ -1,372 +0,0 @@
-/* Generated by camel build tools - do NOT edit this file! */
-/*
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed with
- * this work for additional information regarding copyright ownership.
- * The ASF licenses this file to You under the Apache License, Version 2.0
- * (the "License"); you may not use this file except in compliance with
- * the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-package org.apache.camel.builder.endpoint.dsl;
-
-import java.util.*;
-import java.util.concurrent.*;
-import java.util.function.*;
-import java.util.stream.*;
-import javax.annotation.processing.Generated;
-import org.apache.camel.builder.EndpointConsumerBuilder;
-import org.apache.camel.builder.EndpointProducerBuilder;
-import org.apache.camel.builder.endpoint.AbstractEndpointBuilder;
-
-/**
- * Perform operations on the Chroma Vector Database.
- *
- * Generated by camel build tools - do NOT edit this file!
- */
-@Generated("org.apache.camel.maven.packaging.EndpointDslMojo")
-public interface ChromaEndpointBuilderFactory {
-
- /**
- * Builder for endpoint for the Chroma component.
- */
- public interface ChromaEndpointBuilder
- extends
- EndpointProducerBuilder {
- default AdvancedChromaEndpointBuilder advanced() {
- return (AdvancedChromaEndpointBuilder) this;
- }
-
- /**
- * The Chroma server host URL.
- *
- * The option is a: <code>java.lang.String</code> type.
- *
- * Group: producer
- *
- * @param host the value to set
- * @return the dsl builder
- */
- default ChromaEndpointBuilder host(String host) {
- doSetProperty("host", host);
- return this;
- }
- /**
- * Max results for similarity search.
- *
- * The option is a: <code>int</code> type.
- *
- * Default: 10
- * Group: producer
- *
- * @param maxResults the value to set
- * @return the dsl builder
- */
- default ChromaEndpointBuilder maxResults(int maxResults) {
- doSetProperty("maxResults", maxResults);
- return this;
- }
- /**
- * Max results for similarity search.
- *
- * The option will be converted to a <code>int</code> type.
- *
- * Default: 10
- * Group: producer
- *
- * @param maxResults the value to set
- * @return the dsl builder
- */
- default ChromaEndpointBuilder maxResults(String maxResults) {
- doSetProperty("maxResults", maxResults);
- return this;
- }
- }
-
- /**
- * Advanced builder for endpoint for the Chroma component.
- */
- public interface AdvancedChromaEndpointBuilder
- extends
- EndpointProducerBuilder {
- default ChromaEndpointBuilder basic() {
- return (ChromaEndpointBuilder) this;
- }
-
- /**
- * 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 during
- * starting and cause the route to fail being started. By deferring this
- * startup to be lazy then the startup failure can be handled during
- * routing messages via Camel's routing error handlers. Beware that when
- * the first message is processed then creating and starting the
- * producer may take a little time and prolong the total processing time
- * of the processing.
- *
- * The option is a: <code>boolean</code> type.
- *
- * Default: false
- * Group: producer (advanced)
- *
- * @param lazyStartProducer the value to set
- * @return the dsl builder
- */
- default AdvancedChromaEndpointBuilder lazyStartProducer(boolean lazyStartProducer) {
- doSetProperty("lazyStartProducer", lazyStartProducer);
- return this;
- }
- /**
- * 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 during
- * starting and cause the route to fail being started. By deferring this
- * startup to be lazy then the startup failure can be handled during
- * routing messages via Camel's routing error handlers. Beware that when
- * the first message is processed then creating and starting the
- * producer may take a little time and prolong the total processing time
- * of the processing.
- *
- * The option will be converted to a <code>boolean</code> type.
- *
- * Default: false
- * Group: producer (advanced)
- *
- * @param lazyStartProducer the value to set
- * @return the dsl builder
- */
- default AdvancedChromaEndpointBuilder lazyStartProducer(String lazyStartProducer) {
- doSetProperty("lazyStartProducer", lazyStartProducer);
- return this;
- }
- }
-
- public interface ChromaBuilders {
- /**
- * Chroma (camel-chroma)
- * Perform operations on the Chroma Vector Database.
- *
- * Category: database,ai
- * Since: 4.17
- * Maven coordinates: org.apache.camel:camel-chroma
- *
- * @return the dsl builder for the headers' name.
- */
- default ChromaHeaderNameBuilder chroma() {
- return ChromaHeaderNameBuilder.INSTANCE;
- }
- /**
- * Chroma (camel-chroma)
- * Perform operations on the Chroma Vector Database.
- *
- * Category: database,ai
- * Since: 4.17
- * Maven coordinates: org.apache.camel:camel-chroma
- *
- * Syntax: <code>chroma:collection</code>
- *
- * Path parameter: collection (required)
- * The collection name
- *
- * @param path collection
- * @return the dsl builder
- */
- default ChromaEndpointBuilder chroma(String path) {
- return ChromaEndpointBuilderFactory.endpointBuilder("chroma", path);
- }
- /**
- * Chroma (camel-chroma)
- * Perform operations on the Chroma Vector Database.
- *
- * Category: database,ai
- * Since: 4.17
- * Maven coordinates: org.apache.camel:camel-chroma
- *
- * Syntax: <code>chroma:collection</code>
- *
- * Path parameter: collection (required)
- * The collection name
- *
- * @param componentName to use a custom component name for the endpoint
- * instead of the default name
- * @param path collection
- * @return the dsl builder
- */
- default ChromaEndpointBuilder chroma(String componentName, String path) {
- return ChromaEndpointBuilderFactory.endpointBuilder(componentName, path);
- }
-
- }
- /**
- * The builder of headers' name for the Chroma component.
- */
- public static class ChromaHeaderNameBuilder {
- /**
- * The internal instance of the builder used to access to all the
- * methods representing the name of headers.
- */
- private static final ChromaHeaderNameBuilder INSTANCE = new ChromaHeaderNameBuilder();
-
- /**
- * The action to be performed.
- *
- * The option is a: {@code String} type.
- *
- * Group: producer
- *
- * @return the name of the header {@code ChromaAction}.
- */
- public String chromaAction() {
- return "CamelChromaAction";
- }
- /**
- * The collection name.
- *
- * The option is a: {@code String} type.
- *
- * Group: producer
- *
- * @return the name of the header {@code ChromaCollectionName}.
- */
- public String chromaCollectionName() {
- return "CamelChromaCollectionName";
- }
- /**
- * The embedding IDs.
- *
- * The option is a: {@code java.util.List<String>} type.
- *
- * Group: producer
- *
- * @return the name of the header {@code ChromaIds}.
- */
- public String chromaIds() {
- return "CamelChromaIds";
- }
- /**
- * The embeddings.
- *
- * The option is a: {@code java.util.List<java.util.List<Float>>} type.
- *
- * Group: producer
- *
- * @return the name of the header {@code ChromaEmbeddings}.
- */
- public String chromaEmbeddings() {
- return "CamelChromaEmbeddings";
- }
- /**
- * The metadata for embeddings.
- *
- * The option is a: {@code java.util.List<java.util.Map<String,
- * String>>} type.
- *
- * Group: producer
- *
- * @return the name of the header {@code ChromaMetadatas}.
- */
- public String chromaMetadatas() {
- return "CamelChromaMetadatas";
- }
- /**
- * The documents for embeddings.
- *
- * The option is a: {@code java.util.List<String>} type.
- *
- * Group: producer
- *
- * @return the name of the header {@code ChromaDocuments}.
- */
- public String chromaDocuments() {
- return "CamelChromaDocuments";
- }
- /**
- * The query embeddings for similarity search.
- *
- * The option is a: {@code java.util.List<java.util.List<Float>>} type.
- *
- * Group: producer
- *
- * @return the name of the header {@code ChromaQueryEmbeddings}.
- */
- public String chromaQueryEmbeddings() {
- return "CamelChromaQueryEmbeddings";
- }
- /**
- * The number of results to return.
- *
- * The option is a: {@code Integer} type.
- *
- * Default: 10
- * Group: producer
- *
- * @return the name of the header {@code ChromaNResults}.
- */
- public String chromaNResults() {
- return "CamelChromaNResults";
- }
- /**
- * Chroma where filter.
- *
- * The option is a: {@code java.util.Map<String, Object>} type.
- *
- * Group: producer
- *
- * @return the name of the header {@code ChromaWhere}.
- */
- public String chromaWhere() {
- return "CamelChromaWhere";
- }
- /**
- * Chroma where document filter.
- *
- * The option is a: {@code java.util.Map<String, Object>} type.
- *
- * Group: producer
- *
- * @return the name of the header {@code ChromaWhereDocument}.
- */
- public String chromaWhereDocument() {
- return "CamelChromaWhereDocument";
- }
- /**
- * The fields to include in the result.
- *
- * The option is a: {@code java.util.List<String>} type.
- *
- * Group: producer
- *
- * @return the name of the header {@code ChromaInclude}.
- */
- public String chromaInclude() {
- return "CamelChromaInclude";
- }
- /**
- * The operation status.
- *
- * The option is a: {@code String} type.
- *
- * Group: producer
- *
- * @return the name of the header {@code ChromaOperationStatus}.
- */
- public String chromaOperationStatus() {
- return "CamelChromaOperationStatus";
- }
- }
- static ChromaEndpointBuilder endpointBuilder(String componentName, String path) {
- class ChromaEndpointBuilderImpl extends AbstractEndpointBuilder implements ChromaEndpointBuilder, AdvancedChromaEndpointBuilder {
- public ChromaEndpointBuilderImpl(String path) {
- super(componentName, path);
- }
- }
- return new ChromaEndpointBuilderImpl(path);
- }
-}
\ No newline at end of file
diff --git a/dsl/camel-kamelet-main/src/generated/resources/camel-component-known-dependencies.properties b/dsl/camel-kamelet-main/src/generated/resources/camel-component-known-dependencies.properties
index ae99f3366548..96cb24dc76fb 100644
--- a/dsl/camel-kamelet-main/src/generated/resources/camel-component-known-dependencies.properties
+++ b/dsl/camel-kamelet-main/src/generated/resources/camel-component-known-dependencies.properties
@@ -78,7 +78,6 @@ org.apache.camel.component.caffeine.cache.CaffeineCacheComponent=camel:caffeine
org.apache.camel.component.caffeine.load.CaffeineLoadCacheComponent=camel:caffeine
org.apache.camel.component.cassandra.CassandraComponent=camel:cassandraql
org.apache.camel.component.chatscript.ChatScriptComponent=camel:chatscript
-org.apache.camel.component.chroma.ChromaComponent=camel:chroma
org.apache.camel.component.chunk.ChunkComponent=camel:chunk
org.apache.camel.component.clickup.ClickUpComponent=camel:clickup
org.apache.camel.component.cm.CMComponent=camel:cm-sms
diff --git a/parent/pom.xml b/parent/pom.xml
index 79ba110ea88a..813ea2445fd0 100644
--- a/parent/pom.xml
+++ b/parent/pom.xml
@@ -104,7 +104,6 @@
-->
<checker-framework-version>3.53.0</checker-framework-version>
<chicory-version>1.6.1</chicory-version>
- <chromadb-client-version>0.1.7</chromadb-client-version>
<chunk-templates-version>3.6.2</chunk-templates-version>
<citrus-version>4.9.1</citrus-version>
<classgraph-version>4.8.184</classgraph-version>
@@ -1094,11 +1093,6 @@
<artifactId>camel-chatscript</artifactId>
<version>${project.version}</version>
</dependency>
- <dependency>
- <groupId>org.apache.camel</groupId>
- <artifactId>camel-chroma</artifactId>
- <version>${project.version}</version>
- </dependency>
<dependency>
<groupId>org.apache.camel</groupId>
<artifactId>camel-chunk</artifactId>
diff --git a/test-infra/camel-test-infra-chroma/pom.xml b/test-infra/camel-test-infra-chroma/pom.xml
deleted file mode 100644
index 02a6312c984c..000000000000
--- a/test-infra/camel-test-infra-chroma/pom.xml
+++ /dev/null
@@ -1,63 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!--
-
- Licensed to the Apache Software Foundation (ASF) under one or more
- contributor license agreements. See the NOTICE file distributed with
- this work for additional information regarding copyright ownership.
- The ASF licenses this file to You under the Apache License, Version 2.0
- (the "License"); you may not use this file except in compliance with
- the License. You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
- Unless required by applicable law or agreed to in writing, software
- distributed under the License is distributed on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- See the License for the specific language governing permissions and
- limitations under the License.
-
--->
-<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
- <parent>
- <artifactId>camel-test-infra-parent</artifactId>
- <groupId>org.apache.camel</groupId>
- <relativePath>../camel-test-infra-parent/pom.xml</relativePath>
- <version>4.18.0-SNAPSHOT</version>
- </parent>
-
- <modelVersion>4.0.0</modelVersion>
- <artifactId>camel-test-infra-chroma</artifactId>
-
- <name>Camel :: Test Infra :: Chroma</name>
- <description>Chroma test infrastructure for Camel</description>
-
- <properties>
- <assembly.skipAssembly>false</assembly.skipAssembly>
- </properties>
-
- <dependencies>
- <dependency>
- <groupId>org.apache.camel</groupId>
- <artifactId>camel-test-infra-common</artifactId>
- <version>${project.version}</version>
- <type>test-jar</type>
- </dependency>
-
- <dependency>
- <groupId>org.testcontainers</groupId>
- <artifactId>testcontainers</artifactId>
- <version>${testcontainers-version}</version>
- </dependency>
- <dependency>
- <groupId>org.testcontainers</groupId>
- <artifactId>testcontainers-chromadb</artifactId>
- <version>${testcontainers-version}</version>
- </dependency>
-
- <dependency>
- <groupId>org.apache.camel</groupId>
- <artifactId>camel-util</artifactId>
- </dependency>
-
- </dependencies>
-</project>
diff --git a/test-infra/camel-test-infra-chroma/src/main/java/org/apache/camel/test/infra/chroma/common/ChromaProperties.java b/test-infra/camel-test-infra-chroma/src/main/java/org/apache/camel/test/infra/chroma/common/ChromaProperties.java
deleted file mode 100644
index 3a583bc25934..000000000000
--- a/test-infra/camel-test-infra-chroma/src/main/java/org/apache/camel/test/infra/chroma/common/ChromaProperties.java
+++ /dev/null
@@ -1,27 +0,0 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed with
- * this work for additional information regarding copyright ownership.
- * The ASF licenses this file to You under the Apache License, Version 2.0
- * (the "License"); you may not use this file except in compliance with
- * the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-package org.apache.camel.test.infra.chroma.common;
-
-public final class ChromaProperties {
- public static final String INFRA_TYPE = "chroma";
- public static final String CHROMA_HOST = "chroma.host";
- public static final String CHROMA_PORT = "chroma.port";
- public static final String CHROMA_CONTAINER = "chroma.container";
-
- private ChromaProperties() {
- }
-}
diff --git a/test-infra/camel-test-infra-chroma/src/main/java/org/apache/camel/test/infra/chroma/services/ChromaInfraService.java b/test-infra/camel-test-infra-chroma/src/main/java/org/apache/camel/test/infra/chroma/services/ChromaInfraService.java
deleted file mode 100644
index c87e1a259716..000000000000
--- a/test-infra/camel-test-infra-chroma/src/main/java/org/apache/camel/test/infra/chroma/services/ChromaInfraService.java
+++ /dev/null
@@ -1,30 +0,0 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed with
- * this work for additional information regarding copyright ownership.
- * The ASF licenses this file to You under the Apache License, Version 2.0
- * (the "License"); you may not use this file except in compliance with
- * the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-package org.apache.camel.test.infra.chroma.services;
-
-import org.apache.camel.test.infra.common.services.InfrastructureService;
-
-public interface ChromaInfraService extends InfrastructureService {
-
- String getHost();
-
- int getPort();
-
- default String getEndpoint() {
- return String.format("http://%s:%d", getHost(), getPort());
- }
-}
diff --git a/test-infra/camel-test-infra-chroma/src/main/java/org/apache/camel/test/infra/chroma/services/ChromaLocalContainerInfraService.java b/test-infra/camel-test-infra-chroma/src/main/java/org/apache/camel/test/infra/chroma/services/ChromaLocalContainerInfraService.java
deleted file mode 100644
index b68700960d08..000000000000
--- a/test-infra/camel-test-infra-chroma/src/main/java/org/apache/camel/test/infra/chroma/services/ChromaLocalContainerInfraService.java
+++ /dev/null
@@ -1,109 +0,0 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed with
- * this work for additional information regarding copyright ownership.
- * The ASF licenses this file to You under the Apache License, Version 2.0
- * (the "License"); you may not use this file except in compliance with
- * the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-package org.apache.camel.test.infra.chroma.services;
-
-import org.apache.camel.spi.annotations.InfraService;
-import org.apache.camel.test.infra.chroma.common.ChromaProperties;
-import org.apache.camel.test.infra.common.LocalPropertyResolver;
-import org.apache.camel.test.infra.common.services.ContainerEnvironmentUtil;
-import org.apache.camel.test.infra.common.services.ContainerService;
-import org.slf4j.Logger;
-import org.slf4j.LoggerFactory;
-import org.testcontainers.chromadb.ChromaDBContainer;
-import org.testcontainers.containers.output.Slf4jLogConsumer;
-import org.testcontainers.utility.DockerImageName;
-
-@InfraService(service = ChromaInfraService.class,
- description = "Chroma Vector Database",
- serviceAlias = { "chroma" })
-public class ChromaLocalContainerInfraService implements ChromaInfraService, ContainerService<ChromaDBContainer> {
- public static final int CHROMA_PORT = 8000;
-
- private static final Logger LOG = LoggerFactory.getLogger(ChromaLocalContainerInfraService.class);
-
- private final ChromaDBContainer container;
-
- public ChromaLocalContainerInfraService() {
- this(LocalPropertyResolver.getProperty(ChromaLocalContainerInfraService.class, ChromaProperties.CHROMA_CONTAINER));
- }
-
- public ChromaLocalContainerInfraService(String imageName) {
- this.container = initContainer(imageName, ContainerEnvironmentUtil.isFixedPort(this.getClass()));
- String name = ContainerEnvironmentUtil.containerName(this.getClass());
- if (name != null) {
- container.withCreateContainerCmdModifier(cmd -> cmd.withName(name));
- }
- }
-
- public ChromaLocalContainerInfraService(ChromaDBContainer container) {
- this.container = container;
- }
-
- private ChromaDBContainer initContainer(String imageName, boolean fixedPort) {
- class TestInfraChromaContainer extends ChromaDBContainer {
- public TestInfraChromaContainer() {
- super(DockerImageName.parse(imageName)
- .asCompatibleSubstituteFor("chromadb/chroma"));
-
- if (fixedPort) {
- addFixedExposedPort(CHROMA_PORT, CHROMA_PORT);
- }
- }
- }
-
- return new TestInfraChromaContainer();
- }
-
- @Override
- public void registerProperties() {
- System.setProperty(ChromaProperties.CHROMA_HOST, getHost());
- System.setProperty(ChromaProperties.CHROMA_PORT, String.valueOf(getPort()));
- }
-
- @Override
- public void initialize() {
- LOG.info("Trying to start the Chroma container");
-
- container.withLogConsumer(new Slf4jLogConsumer(LoggerFactory.getLogger(ChromaDBContainer.class)));
- container.start();
-
- registerProperties();
-
- LOG.info("Chroma instance running at {}:{}", getHost(), getPort());
- }
-
- @Override
- public void shutdown() {
- LOG.info("Stopping the Chroma container");
- container.stop();
- }
-
- @Override
- public ChromaDBContainer getContainer() {
- return container;
- }
-
- @Override
- public String getHost() {
- return container.getHost();
- }
-
- @Override
- public int getPort() {
- return container.getMappedPort(CHROMA_PORT);
- }
-}
diff --git a/test-infra/camel-test-infra-chroma/src/main/java/org/apache/camel/test/infra/chroma/services/ChromaRemoteInfraService.java b/test-infra/camel-test-infra-chroma/src/main/java/org/apache/camel/test/infra/chroma/services/ChromaRemoteInfraService.java
deleted file mode 100644
index f2c6b773f289..000000000000
--- a/test-infra/camel-test-infra-chroma/src/main/java/org/apache/camel/test/infra/chroma/services/ChromaRemoteInfraService.java
+++ /dev/null
@@ -1,47 +0,0 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed with
- * this work for additional information regarding copyright ownership.
- * The ASF licenses this file to You under the Apache License, Version 2.0
- * (the "License"); you may not use this file except in compliance with
- * the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-package org.apache.camel.test.infra.chroma.services;
-
-import org.apache.camel.test.infra.chroma.common.ChromaProperties;
-
-public class ChromaRemoteInfraService implements ChromaInfraService {
-
- @Override
- public void registerProperties() {
- // NO-OP
- }
-
- @Override
- public void initialize() {
- registerProperties();
- }
-
- @Override
- public void shutdown() {
- // NO-OP
- }
-
- @Override
- public String getHost() {
- return System.getProperty(ChromaProperties.CHROMA_HOST);
- }
-
- @Override
- public int getPort() {
- return Integer.getInteger(ChromaProperties.CHROMA_PORT);
- }
-}
diff --git a/test-infra/camel-test-infra-chroma/src/main/resources/META-INF/MANIFEST.MF b/test-infra/camel-test-infra-chroma/src/main/resources/META-INF/MANIFEST.MF
deleted file mode 100644
index 9d885be53412..000000000000
--- a/test-infra/camel-test-infra-chroma/src/main/resources/META-INF/MANIFEST.MF
+++ /dev/null
@@ -1 +0,0 @@
-Manifest-Version: 1.0
diff --git a/test-infra/camel-test-infra-chroma/src/main/resources/org/apache/camel/test/infra/chroma/services/container.properties b/test-infra/camel-test-infra-chroma/src/main/resources/org/apache/camel/test/infra/chroma/services/container.properties
deleted file mode 100644
index 73634acdcaef..000000000000
--- a/test-infra/camel-test-infra-chroma/src/main/resources/org/apache/camel/test/infra/chroma/services/container.properties
+++ /dev/null
@@ -1,17 +0,0 @@
-## ---------------------------------------------------------------------------
-## Licensed to the Apache Software Foundation (ASF) under one or more
-## contributor license agreements. See the NOTICE file distributed with
-## this work for additional information regarding copyright ownership.
-## The ASF licenses this file to You under the Apache License, Version 2.0
-## (the "License"); you may not use this file except in compliance with
-## the License. You may obtain a copy of the License at
-##
-## http://www.apache.org/licenses/LICENSE-2.0
-##
-## Unless required by applicable law or agreed to in writing, software
-## distributed under the License is distributed on an "AS IS" BASIS,
-## WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-## See the License for the specific language governing permissions and
-## limitations under the License.
-## ---------------------------------------------------------------------------
-chroma.container=chromadb/chroma:0.5.23
diff --git a/test-infra/camel-test-infra-chroma/src/test/java/org/apache/camel/test/infra/chroma/services/ChromaService.java b/test-infra/camel-test-infra-chroma/src/test/java/org/apache/camel/test/infra/chroma/services/ChromaService.java
deleted file mode 100644
index 33b506d5131f..000000000000
--- a/test-infra/camel-test-infra-chroma/src/test/java/org/apache/camel/test/infra/chroma/services/ChromaService.java
+++ /dev/null
@@ -1,26 +0,0 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed with
- * this work for additional information regarding copyright ownership.
- * The ASF licenses this file to You under the Apache License, Version 2.0
- * (the "License"); you may not use this file except in compliance with
- * the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-package org.apache.camel.test.infra.chroma.services;
-
-import org.apache.camel.test.infra.common.services.ContainerTestService;
-import org.apache.camel.test.infra.common.services.TestService;
-
-/**
- * Test infra service for Chroma
- */
-public interface ChromaService extends TestService, ChromaInfraService, ContainerTestService {
-}
diff --git a/test-infra/camel-test-infra-chroma/src/test/java/org/apache/camel/test/infra/chroma/services/ChromaServiceFactory.java b/test-infra/camel-test-infra-chroma/src/test/java/org/apache/camel/test/infra/chroma/services/ChromaServiceFactory.java
deleted file mode 100644
index 6686b4c7fb91..000000000000
--- a/test-infra/camel-test-infra-chroma/src/test/java/org/apache/camel/test/infra/chroma/services/ChromaServiceFactory.java
+++ /dev/null
@@ -1,72 +0,0 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed with
- * this work for additional information regarding copyright ownership.
- * The ASF licenses this file to You under the Apache License, Version 2.0
- * (the "License"); you may not use this file except in compliance with
- * the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-package org.apache.camel.test.infra.chroma.services;
-
-import org.apache.camel.test.infra.chroma.common.ChromaProperties;
-import org.apache.camel.test.infra.common.services.SimpleTestServiceBuilder;
-import org.apache.camel.test.infra.common.services.SingletonService;
-
-public final class ChromaServiceFactory {
-
- private ChromaServiceFactory() {
- }
-
- public static class SingletonChromaService extends SingletonService<ChromaService> implements ChromaService {
- public SingletonChromaService(ChromaService service, String name) {
- super(service, name);
- }
-
- @Override
- public String getHost() {
- return getService().getHost();
- }
-
- @Override
- public int getPort() {
- return getService().getPort();
- }
-
- @Override
- public String getEndpoint() {
- return getService().getEndpoint();
- }
- }
-
- public static SimpleTestServiceBuilder<ChromaService> builder() {
- return new SimpleTestServiceBuilder<>(ChromaProperties.INFRA_TYPE);
- }
-
- public static ChromaService createService() {
- return builder()
- .addLocalMapping(ChromaLocalContainerService::new)
- .addRemoteMapping(ChromaRemoteService::new)
- .build();
- }
-
- public static ChromaService createSingletonService() {
- return builder()
- .addLocalMapping(
- () -> new SingletonChromaService(new ChromaLocalContainerService(), ChromaProperties.INFRA_TYPE))
- .build();
- }
-
- public static class ChromaLocalContainerService extends ChromaLocalContainerInfraService implements ChromaService {
- }
-
- public static class ChromaRemoteService extends ChromaRemoteInfraService implements ChromaService {
- }
-}
diff --git a/test-infra/pom.xml b/test-infra/pom.xml
index 1ec8134116fa..6d7f98cbd1b8 100644
--- a/test-infra/pom.xml
+++ b/test-infra/pom.xml
@@ -74,7 +74,6 @@
<module>camel-test-infra-fhir</module>
<module>camel-test-infra-mosquitto</module>
<module>camel-test-infra-chatscript</module>
- <module>camel-test-infra-chroma</module>
<module>camel-test-infra-openai-mock</module>
<module>camel-test-infra-openldap</module>
<module>camel-test-infra-ignite</module>
diff --git a/tooling/maven/camel-package-maven-plugin/src/main/java/org/apache/camel/maven/packaging/MojoHelper.java b/tooling/maven/camel-package-maven-plugin/src/main/java/org/apache/camel/maven/packaging/MojoHelper.java
index 950614bef434..8f76e6a6d654 100644
--- a/tooling/maven/camel-package-maven-plugin/src/main/java/org/apache/camel/maven/packaging/MojoHelper.java
+++ b/tooling/maven/camel-package-maven-plugin/src/main/java/org/apache/camel/maven/packaging/MojoHelper.java
@@ -45,7 +45,7 @@ public final class MojoHelper {
dir.resolve("camel-langchain4j-web-search"),
dir.resolve("camel-qdrant"), dir.resolve("camel-milvus"), dir.resolve("camel-neo4j"),
dir.resolve("camel-openai"),
- dir.resolve("camel-pinecone"), dir.resolve("camel-kserve"), dir.resolve("camel-chroma"),
+ dir.resolve("camel-pinecone"), dir.resolve("camel-kserve"),
dir.resolve("camel-torchserve"), dir.resolve("camel-tensorflow-serving"),
dir.resolve("camel-weaviate"), dir.resolve("camel-docling"));
case "camel-as2":