jiriOndrusek-agent commented on code in PR #9282: URL: https://github.com/apache/camel-quarkus/pull/9282#discussion_r4207080509
########## docs/modules/ROOT/pages/reference/extensions/langchain4j-ingest.adoc: ########## @@ -64,6 +64,16 @@ Each file is read as UTF-8 text — unless a `parser` turns binary formats into Every segment carries `camel_ingest_pipeline` and `camel_ingest_document_id` metadata, so retrieval can cite which document an answer came from (up to 3.39.x the keys were `camel_quarkus_pipeline` and `camel_quarkus_document_id` — see the migration guide). Apart from `enabled` and the `source.*` settings shown here, properties are fixed at build time. A pipeline declared through runtime properties alone — nothing but a `source.directory`, say — is invisible to build-time validation; its checks, including the clash with an equally named `@Ingest` pipeline, report at startup instead. +Each pipeline is composed from the catalog's `langchain4j-ingest-file-source`, parser action and `langchain4j-ingest-sink` Kamelets: its route `langchain4j-ingest-<name>` plus one route per Kamelet it uses, `langchain4j-ingest-<name>-source` (directory pipelines), `-parser` (with a `parser`) and `-sink`. +The pipelines always load these Kamelets from the classpath, whatever `camel.component.kamelet.location` says; shipping an equally named Kamelet replaces internal steps — including the identity capture — and is advanced surgery. +Application-wide `camel.kamelet.<kamelet>.*` properties and `CAMEL_KAMELET_*` environment variables for these four Kamelets reach the pipelines too, for every option the extension leaves unset, so do not set them. +To pause a directory pipeline, stop its `langchain4j-ingest-<name>-source` route, or both routes: with `langchain4j-ingest-<name>` alone stopped, the directory is still polled and each new file fails after the Kamelet's 30 s timeout. + +[TIP] +==== +In native mode the kamelet extension embeds every Kamelet on the classpath by default (`quarkus.camel.kamelet.identifiers=*`) — with the `camel-kamelets` catalog this extension brings, some 260 of them. +This extension embeds its own four Kamelets itself, so list only the application's own Kamelets in `quarkus.camel.kamelet.identifiers` to keep the image small, or set it to `none` (a name matching no Kamelet) when there are none. +==== Review Comment: Done, removed from the docs (including the migration guide) and the itest. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
