Claus Ibsen created CAMEL-27860:
-----------------------------------
Summary: camel-pinecone: FETCH and DELETE_BY_ID ignore the
namespace, an upper-case metric fails for a pod index
Key: CAMEL-27860
URL: https://issues.apache.org/jira/browse/CAMEL-27860
Project: Camel
Issue Type: Bug
Components: camel-pinecone
Reporter: Claus Ibsen
Fix For: 4.25.0
Found while improving the option descriptions of camel-pinecone for CAMEL-23832
(pull request https://github.com/apache/camel/pull/31145).
These are separate problems of the component; the descriptions change only
documents the current behavior.
h4. 1. FETCH and DELETE_BY_ID ignore the namespace
{{PineconeVectorDbProducer.fetch()}} and {{deleteByIds()}} call
index.fetch(ids) / index.deleteByIds(ids) without the namespace, so a vector
upserted with CamelPineconeNamespace cannot be fetched or deleted.
Proposed change: pass the CamelPineconeNamespace header.
h4. 2. An upper-case metric fails for a pod index
createPodIndex() passes the metric as given to the case-sensitive
MetricEnum.fromValue, so "COSINE" fails, while createServerlessIndex
lower-cases it.
Proposed change: lower-case it with Locale.ROOT.
_Claude Code on behalf of davsclaus_
--
This message was sent by Atlassian Jira
(v10.3.26#10030026)