diff --git a/component.json b/component.json new file mode 100644 index 0000000..f7eca48 --- /dev/null +++ b/component.json @@ -0,0 +1,288 @@ +{ + "component": { + "kind": "component", + "name": "langchain4j-embeddings", + "title": "LangChain4j Embeddings", + "description": "LangChain4j Embeddings", + "deprecated": false, + "firstVersion": "3.10.0", + "label": "ai", + "javaType": "org.apache.camel.component.langchain4j.embeddings.LangChain4jEmbeddingsComponent", + "supportLevel": "Stable", + "nativeSupported": true, + "metadata": { + "quarkusVersion": "3.36.0", + "camelArtifact": "org.apache.camel:camel-langchain4j-embeddings", + "camelVersion": "4.20.0" + }, + "groupId": "org.apache.camel.quarkus", + "artifactId": "camel-quarkus-langchain4j-embeddings", + "version": "4.20.0 (CEQ 3.36.0)", + "scheme": "langchain4j-embeddings", + "extendsScheme": "", + "syntax": "langchain4j-embeddings:embeddingId", + "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.langchain4j.embeddings.LangChain4jEmbeddingsConfiguration", + "deprecated": false, + "autowired": false, + "secret": false, + "description": "The configuration." + }, + "embeddingModel": { + "index": 1, + "kind": "property", + "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": "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 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." + }, + "autowiredEnabled": { + "index": 3, + "kind": "property", + "displayName": "Autowired Enabled", + "group": "advanced", + "label": "advanced", + "required": false, + "type": "boolean", + "javaType": "boolean", + "deprecated": false, + "autowired": false, + "secret": false, + "defaultValue": true, + "description": "Whether autowiring is enabled. This is used for automatic autowiring options (the option must be marked as autowired) by looking up in the registry to find if there is a single instance of matching type, which then gets configured on the component. This can be used for automatic configuring JDBC data sources, JMS connection factories, AWS Clients, etc." + } + }, + "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.LangChain4jEmbeddingsHeaders#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.LangChain4jEmbeddingsHeaders#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.LangChain4jEmbeddingsHeaders#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.LangChain4jEmbeddingsHeaders#TOTAL_TOKEN_COUNT" + }, + "CamelLangChain4jEmbeddingsEmbedding": { + "index": 4, + "kind": "header", + "displayName": "", + "group": "producer", + "label": "", + "required": false, + "javaType": "dev.langchain4j.data.embedding.Embedding", + "deprecated": false, + "deprecationNote": "", + "autowired": false, + "secret": false, + "description": "Embedding representation of a text", + "constantName": "org.apache.camel.component.langchain4j.embeddings.LangChain4jEmbeddingsHeaders#EMBEDDING" + }, + "CamelLangChain4jEmbeddingsVector": { + "index": 5, + "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.LangChain4jEmbeddingsHeaders#VECTOR" + }, + "CamelLangChain4jEmbeddingsTextSegment": { + "index": 6, + "kind": "header", + "displayName": "", + "group": "producer", + "label": "", + "required": false, + "javaType": " dev.langchain4j.data.segment.TextSegment", + "deprecated": false, + "deprecationNote": "", + "autowired": false, + "secret": false, + "description": "A TextSegment representation of the vector embedding input text", + "constantName": "org.apache.camel.component.langchain4j.embeddings.LangChain4jEmbeddingsHeaders#TEXT_SEGMENT" + } + }, + "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." + } + }, + "propertiesSchema": { + "properties": { + "embeddingId": { + "title": "Embedding Id", + "description": "The id", + "type": "string", + "$comment": "group:producer" + }, + "embeddingModel": { + "title": "Embedding Model", + "description": "The EmbeddingModel engine to use.", + "type": "string", + "$comment": "group:producer", + "format": "bean:dev.langchain4j.model.embedding.EmbeddingModel" + }, + "lazyStartProducer": { + "title": "Lazy Start Producer", + "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.", + "type": "boolean", + "$comment": "group:producer (advanced)", + "default": false + } + }, + "$schema": "http://json-schema.org/draft-07/schema#", + "type": "object", + "required": [ + "embeddingId", + "embeddingModel" + ] + } +} \ No newline at end of file