The Problem:
Enterprise search and Retrieval-Augmented Generation (RAG) systems operate in text-only silos, blind to unstructured media like financial invoices, investor decks, system flowcharts, video keyframes, and audio. Text-only LLMs hallucinate when queried on non-text assets, while legacy OCR discards spatial geometry and layout hierarchies. Furthermore, traditional search cannot perform cross-modal (any-to-any) retrieval or decouple objective textual attributes from subjective visual styles in recommendation workflows.
The Approach:
Engineered an end-to-end multimodal architecture combining contrastive representation learning, vector databases, and Large Multimodal Models (LMMs). Implemented a PyTorch Siamese convolutional network trained with a contrastive loss function to minimize cosine distance between matched pairs, creating modality-independent embeddings verified via PCA and UMAP. Integrated Weaviate vector database using multi2vec-bind and multimodal-embedding-001 (1,400 dimensions) with Base64 ingestion pipelines. Configured named vector spaces (text_vector and poster_vector) to decouple search from recommendation. Implemented two-stage Multimodal RAG (MM-RAG) linking vector search to Gemini Pro Vision via visual instruction tuning.
The Results:
Unified text, images, video (>=4s), and audio into a shared coordinate space, enabling seamless text-to-any and any-to-any retrieval without manual tagging. Eliminated generative hallucinations by grounding LMM inference in retrieved visual context. Automated production tasks: parsed invoices into structured JSON, extracted Markdown tables from financial slides with verified arithmetic, translated flowcharts into executable Python code, and deployed personalized recommendations across dual vector spaces.