Joshi defines an AI agent as a system where an LLM plans and carries out steps with tools. She contrasts agents with prompting and RAG: agents can handle complex, multi-step tasks and adapt to tool results, but they add cost and latency. She recommends using them when workflows are hard to predict and non-deterministic responses are acceptable.
Building Multimodal AI Agents From Scratch
Speaker
Apoorva Joshi, an AI-focused developer advocate at MongoDB, leads an AI Engineer workshop on building multimodal agents from scratch with her team.
Joshi describes four components: perception, planning and reasoning, tools, and memory. Inputs can include text, images, voice, or video; the workshop focuses on text and images. For planning with feedback, she introduces ReAct, in which the LLM proposes an action, observes the tool result, and decides what to do next.
The workshop’s agent will answer questions about documents and explain charts or diagrams. Joshi says chunking text while separately extracting or summarizing images and tables can lose context and add processing steps. She proposes embedding screenshots of document pages with a vision-language model, which uses a shared encoder for text and images and can preserve their relationships.
The lab converts each PDF page into a screenshot, stores the images locally, and saves their references and embeddings in MongoDB Vector Search. It uses Voyage AI’s multimodal embedding model for retrieval and Gemini 2.0 Flash Experimental to interpret retrieved pages. The agent can also answer questions about an image directly, and it stores conversation turns by session ID for short-term memory.
Joshi directs attendees to a GitHub lab with about 45 minutes for hands-on work and estimates setup will take around 10 minutes. Participants can fill in code in `lab.ipynb` or use the completed `solutions.ipynb` to follow how the agent works. Joshi and her team are available to help.
Takeaways
- Use an agent when a task needs multiple adaptive steps; simpler prompting or RAG may be cheaper and faster.
- In ReAct, feed tool outcomes back to the model so it can revise its next action.
- For documents with interleaved text, tables, and images, page screenshots can preserve context that small text chunks lose.
- Store image files separately from vector records and keep references in metadata so retrieved pages can be fetched for the LLM.
- Track user queries and model responses by session ID to support coherent multi-turn conversations.
Mentioned in this talk
Search inside this talk
What was claimed 9
- works atApoorva Joshi works at
MongoDB
developer advocate“currently at MongoDB”
0:02inAI System Design: From Idea to ProductionYouTube Verified5 sources· Talk, Web· archived
- featureReAct loop: Iterates through reasoning, action, and observation until the model determines it has a final answer
“After each action, you ask the LLM to make an observation”
YouTube Unverified1 source· Talk
- featureCLIP: Text and images pass through separate networks to generate embeddings
“text and images pass through separate networks to generate embeddings”
YouTube Unverified1 source· Talk
- featurevision language model architecture: Text and visual features are vectorized using the same encoder
“both modalities are vectorized using the same encoder”
YouTube Unverified1 source· Talk
- uses
“we'll use MongoDB as a vector database”
YouTube Unverified1 source· Talk
- usesmultimodal embedding model for the lab
“we'll use the latest multimodal embedding model from Voyage AI”
YouTube Unverified1 source· Talk
- built
Voyage AI built
Voyage Multimodal
“You talked about Voyage Multimodal 3.”
YouTube Verified1 source· Talk
- built
Voyage AI built
voyage-multimodal-3
“You talked about Voyage Multimodal 3.”
YouTube Unverified1 source· Talk
- usesmultimodal LLM for the agent
“We’re going to use Gemini 2.0 Flash Experimental.”
YouTube Unverified1 source· Talk













