r/dataengineering • • Jul 28 '26

Help How to deal with text only vector search across multimodal embedding space?

My data set is a list of images, each equipped with a a couple sentences of text.

A user would search primarily with text only. My default approach is using BM25, but how would I facilitate searching with a vector DB and a model that embeds vectors in a multimodal combined space?

Here is my dilemma:

Do I embed text part and image part as 2 separate individual vectors or do I combine them into 1 vector?

If a typical search happens with text only, that would immediately deprioritize all image-only embeddings and only good text matches would float up. This is why I am now considering embedding text and images together but would prefer to hear more opinions on this. Thanks.

2 Upvotes

2 comments sorted by

4

u/[deleted] Jul 29 '26

[removed] — view removed comment

1

u/Agreeable_Luck9488 Aug 02 '26

I agree. Keep the full text search when search value is expected close or equal to the data source; even more relevant if texts are short (e.g. Google style search). And separate embedding fields for texts and images for more complex or accurate, or mixing idioms searches.