gitPratikSingh opened a new pull request, #30452: URL: https://github.com/apache/camel/pull/30452
Fixes CAMEL-27098. `PineconeEmbeddingsDataTypeTransformer` read the `CamelPineconeIndexName` header with a default of `embeddings` and always wrote the header back, so the header was present on every transformed message. The Pinecone producer takes the header over the endpoint `indexName` option in every index action, so the producer worked on the `embeddings` index instead of the configured one. The transformer now reads the header without a default and only writes it back when the route set it, so the endpoint `indexName` option applies when no header is present — the precedence the producer already implements. The component documentation and the 4.24 upgrade guide are updated: routes that relied on the `embeddings` index must now set the header or `indexName=embeddings`. Tests: two new tests in `PineconeEmbeddingsDataTypeTransformerTest` — the header stays unset when the route does not set it, and an explicitly set header is kept. On the unpatched code the new unset test fails with `expected: <null> but was: <embeddings>`; with the fix the class passes (5 run, 0 failures), and the rest of the module suite matches the baseline. `PineconeVectorDbProducerTest` cannot run in my environment (its fake Pinecone server uses loopback connections that are blocked there), so that class — including the RAG test, which no longer sets the header as a workaround — runs on CI. The module builds offline with no generated-file drift. -- 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]
