Agentic RAG Embedding Gemma
This Streamlit app demonstrates an agentic Retrieval-Augmented Generation (RAG) Agent using Google's EmbeddingGemma for embeddings and Llama 3.2 as th…
- Llama
- local
RAG and Knowledge ·Intermediate
This is a multimodal RAG app built with Gemini Embedding 2 and Google ADK. Add text, URLs, PDFs, images, audio, or video; ask a question; and get a grounded answer with clear citations.
GOOGLE_API_KEYLicense Apache-2.0 · content curated and maintained by Doutor AI.
This is a multimodal RAG app built with Gemini Embedding 2 and Google ADK. Add text, URLs, PDFs, images, audio, or video; ask a question; and get a grounded answer with clear citations.
The UI includes a 3D embedding view for inspecting the search space. Each source appears as one point. When you ask a question, the query is projected into the same space and the cited sources are highlighted.

GOOGLE_API_KEY; the app does not use local vector or answer fallbacks.| Layer | Role |
|---|---|
| React + Vite frontend | Source manager, Q&A panel, citations, trace, and 3D embedding view |
| FastAPI backend | Ingestion, retrieval, answer API, and embedding-space snapshots |
MultimodalRagStore | In-memory source metadata, chunks, embeddings, search, and PCA projection |
| Gemini Embedding 2 | Source and query embeddings across supported modalities |
| Google ADK agent | Answer coordinator that receives the same retrieval packet shown in the UI |
The important implementation detail is that /ask performs retrieval once and passes that same retrieval packet into the ADK answer flow. The answer and the citation panel are therefore based on the same ranked evidence.
rag_tutorials/multimodal_agentic_rag/
|-- README.md
|-- assets/
| `-- multimodal-agentic-rag-architecture.png
|-- backend/
| |-- app_state.py
| |-- rag_store.py
| |-- requirements.txt
| |-- server.py
| `-- agentic_rag_agent/
| |-- __init__.py
| `-- agent.py
`-- frontend/
|-- index.html
|-- package.json
|-- src/
| |-- App.tsx
| |-- main.tsx
| `-- styles.css
|-- tsconfig.json
`-- vite.config.ts
Start the backend:
cd rag_tutorials/multimodal_agentic_rag/backend
python3 -m venv .venv
source .venv/bin/activate
pip install -r requirements.txt
export GOOGLE_API_KEY="your-google-ai-studio-key"
python server.py
The backend runs at:
http://localhost:8897
Start the frontend in another terminal:
cd rag_tutorials/multimodal_agentic_rag/frontend
npm install
npm run dev -- --port 5177
The frontend runs at:
http://localhost:5177
If the backend is on a different port:
VITE_API_URL=http://localhost:8897 npm run dev -- --port 5177
http://localhost:5177.| Method | Endpoint | Description |
|---|---|---|
GET | /health | Backend status, ADK availability, provider, dimensions, and source counts |
GET | /space | Current sources, projected points, event trail, and projection metadata |
POST | /sources/text | Add a text source |
POST | /sources/url | Fetch and index a public URL |
POST | /sources/file | Upload and index a PDF, image, audio, or video |
DELETE | /sources/{source_id} | Remove a source and its chunks |
POST | /ask | Retrieve evidence, run the ADK answer flow, and return citations |
ALLOW_PRIVATE_URLS=true is set.This Streamlit app demonstrates an agentic Retrieval-Augmented Generation (RAG) Agent using Google's EmbeddingGemma for embeddings and Llama 3.2 as th…
An agentic RAG application built with the Agno framework, featuring GPT-5 and LanceDB for efficient knowledge retrieval and question answering.
Architecture Flow <img width="465" alt="Screenshot 2025-05-04 at 3 45 58 PM" src="" /
Need a tailor-made solution?
Not sure where to start with AI in your business? Get a free assessment and a tailored plan - no commitment.
Doutor AI gives you 1,859 ready-to-copy AI prompts, by industry and in plain English - plus a complete technical library for those who want to go further.