You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@camel.apache.org by "Claus Ibsen (Jira)" <ji...@apache.org> on 2026/09/03 05:26:00 UTC
[jira] [Commented] (CAMEL-23953) camel-langchain4j-embeddings/embeddingstore: batch operations (embedAll, addAll, removeAll by ids/filter)
[ https://issues.apache.org/jira/browse/CAMEL-23953?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=18110961#comment-18110961 ]
Claus Ibsen commented on CAMEL-23953:
-------------------------------------
Fixed via PR https://github.com/apache/camel/pull/25273 (merged as c72c14faa8cf3541b40c56f12693fa6ece44b1f7 on main, 4.23.0).
> 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
> Fix For: 4.23.0
>
>
> 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)