[
https://issues.apache.org/jira/browse/CAMEL-23953?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Guillaume Nodet reassigned CAMEL-23953:
---------------------------------------
Assignee: Guillaume Nodet
> camel-langchain4j-embeddings/embeddingstore: batch operations (embedAll,
> addAll, removeAll by ids/filter)
> ---------------------------------------------------------------------------------------------------------
>
> Key: CAMEL-23953
> URL: https://issues.apache.org/jira/browse/CAMEL-23953
> Project: Camel
> Issue Type: Improvement
> Components: camel-langchain4j-embeddings
> Reporter: Federico Mariani
> Assignee: Guillaume Nodet
> Priority: Major
>
> The embeddings and embeddingstore components only support single-item
> operations, which makes RAG ingestion pipelines needlessly slow and chatty:
> *camel-langchain4j-embeddings*:
> * only {{EmbeddingModel.embed(TextSegment)}} is used;
> {{embedAll(List<TextSegment>)}} is not reachable — no batch path for a
> {{List<TextSegment>}} body.
> *camel-langchain4j-embeddingstore*:
> * ADD only calls {{add(embedding)}} / {{add(embedding, text)}} — no
> {{addAll(...)}} batch variants, no caller-supplied ids;
> * REMOVE only accepts a single String id body — no
> {{removeAll(Collection<String>)}}, no {{removeAll(Filter)}} (notable because
> the {{FILTER}} header infrastructure already exists for SEARCH), no
> clear-store {{removeAll()}}.
> *Proposal*: accept list bodies on the existing actions (or add ADD_ALL /
> REMOVE_ALL actions), and support {{removeAll(Filter)}} via the existing
> {{CamelLangChain4jEmbeddingStoreFilter}} header.
> Related: CAMEL-21587, CAMEL-21696 (adjacent, no overlap).
> _This issue was drafted by Claude Code on behalf of Federico Mariani._
--
This message was sent by Atlassian Jira
(v8.20.10#820010)