From 7bcfd0f4bd14101843ed61d1de5af82a5f2b917a Mon Sep 17 00:00:00 2001 From: gitea_admin Date: Wed, 11 Mar 2026 14:31:35 +0000 Subject: [PATCH] Add component definition: langchain4j-embeddings --- component.json | 159 +++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 159 insertions(+) create mode 100644 component.json diff --git a/component.json b/component.json new file mode 100644 index 0000000..7524340 --- /dev/null +++ b/component.json @@ -0,0 +1,159 @@ +{ + "component": { + "kind": "component", + "name": "langchain4j-embeddings", + "title": "LangChain4j Embeddings", + "description": "LangChain4j Embeddings", + "deprecated": false, + "firstVersion": "4.5.0", + "label": "ai", + "javaType": "org.apache.camel.component.langchain4j.embeddings.LangChain4jEmbeddingsComponent", + "supportLevel": "Stable", + "groupId": "org.apache.camel", + "artifactId": "camel-langchain4j-embeddings", + "version": "4.10.2", + "scheme": "langchain4j-embeddings", + "extendsScheme": "", + "syntax": "langchain4j-embeddings:embeddingId", + "async": false, + "api": false, + "consumerOnly": false, + "producerOnly": true, + "lenientProperties": false, + "browsable": false, + "remote": true + }, + "headers": { + "CamelLangChain4jEmbeddingsFinishReason": { + "index": 0, + "kind": "header", + "displayName": "", + "group": "producer", + "label": "", + "required": false, + "javaType": "dev.langchain4j.model.output.FinishReason", + "enum": [ + "STOP", + "LENGTH", + "TOOL_EXECUTION", + "CONTENT_FILTER", + "OTHER" + ], + "deprecated": false, + "deprecationNote": "", + "autowired": false, + "secret": false, + "description": "The Finish Reason.", + "constantName": "org.apache.camel.component.langchain4j.embeddings.LangChain4jEmbeddings$Headers#FINISH_REASON" + }, + "CamelLangChain4jEmbeddingsInputTokenCount": { + "index": 1, + "kind": "header", + "displayName": "", + "group": "producer", + "label": "", + "required": false, + "javaType": "int", + "deprecated": false, + "deprecationNote": "", + "autowired": false, + "secret": false, + "description": "The Input Token Count.", + "constantName": "org.apache.camel.component.langchain4j.embeddings.LangChain4jEmbeddings$Headers#INPUT_TOKEN_COUNT" + }, + "CamelLangChain4jEmbeddingsOutputTokenCount": { + "index": 2, + "kind": "header", + "displayName": "", + "group": "producer", + "label": "", + "required": false, + "javaType": "int", + "deprecated": false, + "deprecationNote": "", + "autowired": false, + "secret": false, + "description": "The Output Token Count.", + "constantName": "org.apache.camel.component.langchain4j.embeddings.LangChain4jEmbeddings$Headers#OUTPUT_TOKEN_COUNT" + }, + "CamelLangChain4jEmbeddingsTotalTokenCount": { + "index": 3, + "kind": "header", + "displayName": "", + "group": "producer", + "label": "", + "required": false, + "javaType": "int", + "deprecated": false, + "deprecationNote": "", + "autowired": false, + "secret": false, + "description": "The Total Token Count.", + "constantName": "org.apache.camel.component.langchain4j.embeddings.LangChain4jEmbeddings$Headers#TOTAL_TOKEN_COUNT" + }, + "CamelLangChain4jEmbeddingsVector": { + "index": 4, + "kind": "header", + "displayName": "", + "group": "producer", + "label": "", + "required": false, + "javaType": "float[]", + "deprecated": false, + "deprecationNote": "", + "autowired": false, + "secret": false, + "description": "A dense vector embedding of a text", + "constantName": "org.apache.camel.component.langchain4j.embeddings.LangChain4jEmbeddings$Headers#VECTOR" + } + }, + "properties": { + "embeddingId": { + "index": 0, + "kind": "path", + "displayName": "Embedding Id", + "group": "producer", + "label": "", + "required": true, + "type": "string", + "javaType": "java.lang.String", + "deprecated": false, + "deprecationNote": "", + "autowired": false, + "secret": false, + "description": "The id" + }, + "embeddingModel": { + "index": 1, + "kind": "parameter", + "displayName": "Embedding Model", + "group": "producer", + "label": "", + "required": true, + "type": "object", + "javaType": "dev.langchain4j.model.embedding.EmbeddingModel", + "deprecated": false, + "deprecationNote": "", + "autowired": true, + "secret": false, + "configurationClass": "org.apache.camel.component.langchain4j.embeddings.LangChain4jEmbeddingsConfiguration", + "configurationField": "configuration", + "description": "The EmbeddingModel engine to use." + }, + "lazyStartProducer": { + "index": 2, + "kind": "parameter", + "displayName": "Lazy Start Producer", + "group": "producer (advanced)", + "label": "producer,advanced", + "required": false, + "type": "boolean", + "javaType": "boolean", + "deprecated": false, + "autowired": false, + "secret": false, + "defaultValue": false, + "description": "Whether the producer should be started lazy (on the first message). By starting lazy you can use this to allow CamelContext and routes to startup in situations where a 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." + } + } +} \ No newline at end of file