Andrea Cosentino created CAMEL-27098:
----------------------------------------

             Summary: camel-pinecone - the pinecone:embeddings transformer sets 
the index name header to embeddings, which overrides the indexName option
                 Key: CAMEL-27098
                 URL: https://issues.apache.org/jira/browse/CAMEL-27098
             Project: Camel
          Issue Type: Bug
          Components: camel-pinecone
            Reporter: Andrea Cosentino


Follow-up of CAMEL-26300 ([PR 
#29213|https://github.com/apache/camel/pull/29213]), which documented the 
behaviour without changing it.

Without a {{CamelPineconeIndexName}} header, 
{{PineconeEmbeddingsDataTypeTransformer}} (main 73fe55b4f931, lines 66-68) sets 
the header to {{embeddings}}. {{PineconeVectorDbProducer}} takes the header 
over the endpoint's {{indexName}} option in each action on an index (for 
example {{upsert}}, lines 217-218). So when the transformer runs before a 
producer whose endpoint sets {{indexName}}, and the route does not set the 
header, the producer works on the index {{embeddings}}.

Proposed: leave the header unset when the route does not set it, so that the 
producer uses its {{indexName}}, and update the component page, which documents 
the {{embeddings}} default (pinecone-component.adoc, line 81). A route that 
relied on the index {{embeddings}} would then have to set it, so the change 
needs an upgrade guide entry.

_Claude Code on behalf of Andrea Cosentino (oscerd)_



--
This message was sent by Atlassian Jira
(v10.3.26#10030026)

Reply via email to