LangChain and Pinecone multimodal RAG tutorial
Build PDF question answering with visual summaries, 384-dimensional embeddings, and routing between text and vision models using Groq.
Player not loading? Watch on YouTube
This tutorial builds a multimodal RAG notebook with LangChain, Pinecone, Groq, and Sentence Transformers embeddings downloaded from Hugging Face. It uses a fictional Novacore FY 2026 company report with text, tables, charts, and diagrams. The speaker explains how paragraph extraction can miss visual evidence and lose relationships between table rows and columns.
The pipeline extracts document content, saves images to a folder, and asks a vision model for searchable text summaries. It embeds those summaries alongside text and table content, then stores the vectors in Pinecone with page numbers, modality tags, and image paths. The demonstrated embedding model produces 384-dimensional vectors. The retriever is configured to return five documents per question.
Answer generation checks the retrieved metadata. Text and table results use a text answer chain with gpt-oss 20B through Groq. When retrieval includes visual evidence, the notebook sends context and original images to a vision model. Examples ask about revenue, a supply chain diagram, support resolution times, and a solar electricity chart. The speaker presents the responses as correct; these examples do not establish accuracy on other documents.
The walkthrough runs in Google Colab and says the notebook can also run on a local machine. A GPU is optional for the embedding model. The demonstrated setup requires Groq and Pinecone API keys, so running the notebook locally does not make the workflow offline.