Skip to content

CAMEL-24533: camel-weaviate - store the document text in the object properties on CREATE/UPDATE (backport to camel-4.18.x) - #25997

Merged
Croway merged 1 commit into
apache:camel-4.18.xfrom
oscerd:backport/camel-ai2-4.18.x
Sep 1, 2026
Merged

CAMEL-24533: camel-weaviate - store the document text in the object properties on CREATE/UPDATE (backport to camel-4.18.x)#25997
Croway merged 1 commit into
apache:camel-4.18.xfrom
oscerd:backport/camel-ai2-4.18.x

Conversation

@oscerd

@oscerd oscerd commented Sep 1, 2026

Copy link
Copy Markdown
Contributor

Straight cherry-pick backport to camel-4.18.x of CAMEL-24533 (#25900), already reviewed and merged on main:

camel-weaviate: the embeddings data-type transformer stored only the vector (and optional id) on CREATE/UPDATE and silently dropped the document text, so a RAG pipeline could not return the source passage. The text is now written under textFieldName, merged into any existing PROPERTIES header.

Clean cherry-pick of the merged main commit (no manual conflict resolution). The affected code is present on camel-4.18.x, and the added test compiles and passes on this branch.

The related camel-huggingface backports (CAMEL-24527, CAMEL-24540) are not included here because the camel-huggingface module does not exist on camel-4.18.x.

Claude Code on behalf of oscerd

…roperties on CREATE/UPDATE

WeaviateEmbeddingsDataTypeTransformer set the message body to the
embedding vector and only wrote the optional id into the Weaviate
object properties; the embedded text (the TextSegment body) was never
written under textFieldName, so the source passage was silently lost.
For a RAG pipeline this means the store cannot return the text that
produced a match. The Milvus sibling transformer already stores the
text correctly.

Write the text under textFieldName into the properties for CREATE and
UPDATE_BY_ID via a shared setProperties helper, merging into any
PROPERTIES header the caller already set rather than replacing it.
Also correct the default-branch error message, which claimed only
create and updatebyid were supported although query is handled too.

Co-authored-by: Claude Opus 4.8 <noreply@anthropic.com>

Closes apache#25900

(cherry picked from commit b4c20cb)
@oscerd oscerd added the bug Something isn't working label Sep 1, 2026
@oscerd oscerd added this to the 4.18.5 milestone Sep 1, 2026

@gnodet gnodet left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Verified straight cherry-pick backport of #25900 (CAMEL-24533) to camel-4.18.x — diff is identical to the original, which was already reviewed and approved on main. CI is green.

This review was generated by an AI agent and may contain inaccuracies. Please verify all suggestions before applying.

Claude Code on behalf of Guillaume Nodet

@Croway
Croway merged commit 35973b0 into apache:camel-4.18.x Sep 1, 2026
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants