JiriOndrusek opened a new pull request, #25387: URL: https://github.com/apache/camel/pull/25387
## Summary - Adds an optional `embeddingModel` property (autowired) to the `langchain4j-embeddingstore` component - When configured, ADD and SEARCH operations accept plain text in the message body instead of requiring a pre-computed `Embedding` header - The existing `CamelLangChain4jEmbeddingsEmbedding` header always takes precedence when present, preserving backward compatibility ## Changes - `LangChain4jEmbeddingStoreConfiguration` — new `embeddingModel` field with `@UriParam` and `@Metadata(autowired = true)` - `LangChain4jEmbeddingStoreProducer` — extracted shared `resolveEmbedding()` helper used by both `add()` and `search()`, with null-body guard and TextSegment header preservation - `LangChain4jEmbeddingStoreAutoEmbedTest` — 6 tests covering auto-embed ADD/SEARCH, header precedence, null body error, TextSegment preservation, and no-model fallback - Generated configurers, DSL builders, and catalog metadata regenerated ## Test plan - [x] Auto-embed ADD with plain text body - [x] Auto-embed SEARCH with plain text body - [x] Explicit embedding header takes precedence over auto-embed - [x] Null body with auto-embed throws descriptive error - [x] TextSegment header preserved when provided without embedding header - [x] Missing model and header throws NoSuchHeaderException -- 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]
