[
https://issues.apache.org/jira/browse/CAMEL-27860?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Claus Ibsen updated CAMEL-27860:
--------------------------------
Description:
Found while improving the option descriptions of camel-pinecone for CAMEL-23832
(commit
https://github.com/apache/camel/commit/87cb1d00f3100684280f706391ed79b732999e11,
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_
was:
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_
> 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
> Priority: Minor
> Fix For: 4.25.0
>
>
> Found while improving the option descriptions of camel-pinecone for
> CAMEL-23832 (commit
> https://github.com/apache/camel/commit/87cb1d00f3100684280f706391ed79b732999e11,
> 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)