Build a $10,000 RAG system using Gemini + Claude Code

RAG
Updated: July 25, 2026

STEP 1. Understand what you’re building

You are creating a system where:

→ Text, images, videos, documents live in one database

→ All data gets embedded into the same vector space

→ AI retrieves the most relevant pieces before answering

This is RAG

Retrieval Augmented Generation

✦ Key shift

Old systems handled text only

New systems handle meaning across formats


STEP 2. Set up your tools

You need 3 things:

  1. Gemini API → Used for embeddings → Get from Google AI Studio
  2. Pinecone → Your vector database → Stores embeddings
  3. OpenRouter or model provider → Used for chat responses
  4. Visual Studio Code → Your working environment
  5. Claude Code → Builds everything for you

STEP 3. Create your project

→ Open VS Code

Install Claude Code extension

→ Open a new folder

Now open Claude Code panel

Switch to plan mode

Paste documentation link for Gemini embeddings

Then prompt:

“Build a multimodal RAG system using Gemini Embedding 2 and Pinecone.

Create env file placeholders for API keys.

Support text, images, and videos.”

Claude Code will generate:

→ Project structure

→ Dependencies

→ Step-by-step plan

Accept it


STEP 4. Add API keys

In your env file, add:

→ Gemini API key

→ Pinecone API key

→ OpenRouter or model key

Save the file

That’s it for setup


STEP 5. Add your data

Create a “data” folder

Drop in anything:

→ PDFs

→ Images

→ Videos

→ Text files

No need to organize perfectly

The system handles classification


STEP 6. Run ingestion

Prompt Claude Code:

“Process all files and store embeddings in Pinecone.

Then build a simple chat app.”

What happens behind the scenes:

→ Files get chunked

→ Gemini creates embeddings

→ Data stored in Pinecone

→ Metadata added

✦ This is where older tools like n8n get messy

Manual chunking

Separate pipelines

Frequent failures

Here, it runs in one flow


STEP 7. Test your system

Claude Code builds a local app

You open localhost

Now test queries:

→ “How do I clean the filter?”

↳ Returns steps + images from PDF

→ “What are the parts?”

↳ Pulls multiple sections + diagrams

→ Upload an image

↳ Finds similar entries in database


STEP 8. Improve retrieval quality

By default:

→ Images and videos are stored as descriptions

To improve:

Ask Claude Code:

“Add better metadata descriptions for images and videos

Update app to display media inline”

Now your system:

→ Shows images

→ Plays videos

→ Gives richer results


STEP 9. Understand limitations

Current constraints:

→ Video length limit around 120 seconds

→ Image batch limits

→ Quality depends on metadata

✦ Important

Better descriptions = better retrieval


STEP 10. Real use cases

  1. Instruction manuals → Chat with complex PDFs → Get visual answers
  2. Service businesses → Upload project images → Retrieve similar jobs with pricing
  3. Internal knowledge bases → Mix documents, videos, images → One unified search

STEP 11. What changed

Before:

→ Complex n8n pipelines

→ Manual configuration

→ Fragile systems

Now:

→ Describe system in plain language

→ AI builds it

→ You refine outputs

Mini insight

This build took under 30 minutes

Earlier versions took hours or days

STEP 1. Understand what you’re building

You are creating a system where:

→ Text, images, videos, documents live in one database

→ All data gets embedded into the same vector space

→ AI retrieves the most relevant pieces before answering

This is RAG

Retrieval Augmented Generation

✦ Key shift

Old systems handled text only

New systems handle meaning across formats


STEP 2. Set up your tools

You need 3 things:

  1. Gemini API → Used for embeddings → Get from Google AI Studio
  2. Pinecone → Your vector database → Stores embeddings
  3. OpenRouter or model provider → Used for chat responses
  4. Visual Studio Code → Your working environment
  5. Claude Code → Builds everything for you

STEP 3. Create your project

→ Open VS Code

Install Claude Code extension

→ Open a new folder

Now open Claude Code panel

Switch to plan mode

Paste documentation link for Gemini embeddings

Then prompt:

“Build a multimodal RAG system using Gemini Embedding 2 and Pinecone.

Create env file placeholders for API keys.

Support text, images, and videos.”

Claude Code will generate:

→ Project structure

→ Dependencies

→ Step-by-step plan

Accept it


STEP 4. Add API keys

In your env file, add:

→ Gemini API key

→ Pinecone API key

→ OpenRouter or model key

Save the file

That’s it for setup


STEP 5. Add your data

Create a “data” folder

Drop in anything:

→ PDFs

→ Images

→ Videos

→ Text files

No need to organize perfectly

The system handles classification


STEP 6. Run ingestion

Prompt Claude Code:

“Process all files and store embeddings in Pinecone.

Then build a simple chat app.”

What happens behind the scenes:

→ Files get chunked

→ Gemini creates embeddings

→ Data stored in Pinecone

→ Metadata added

✦ This is where older tools like n8n get messy

Manual chunking

Separate pipelines

Frequent failures

Here, it runs in one flow


STEP 7. Test your system

Claude Code builds a local app

You open localhost

Now test queries:

→ “How do I clean the filter?”

↳ Returns steps + images from PDF

→ “What are the parts?”

↳ Pulls multiple sections + diagrams

→ Upload an image

↳ Finds similar entries in database


STEP 8. Improve retrieval quality

By default:

→ Images and videos are stored as descriptions

To improve:

Ask Claude Code:

“Add better metadata descriptions for images and videos

Update app to display media inline”

Now your system:

→ Shows images

→ Plays videos

→ Gives richer results


STEP 9. Understand limitations

Current constraints:

→ Video length limit around 120 seconds

→ Image batch limits

→ Quality depends on metadata

✦ Important

Better descriptions = better retrieval


STEP 10. Real use cases

  1. Instruction manuals → Chat with complex PDFs → Get visual answers
  2. Service businesses → Upload project images → Retrieve similar jobs with pricing
  3. Internal knowledge bases → Mix documents, videos, images → One unified search

STEP 11. What changed

Before:

→ Complex n8n pipelines

→ Manual configuration

→ Fragile systems

Now:

→ Describe system in plain language

→ AI builds it

→ You refine outputs

Mini insight

This build took under 30 minutes

Earlier versions took hours or days

Author
Written By
Vikash Kumar
Building AI agents, n8n workflows and end-to-end automation for 30+ Brands across India, the US, Europe, Dubai & Australia. 7+ years of Experience saving founders real hours every week - no code required.
Ask more Questions about this Blog with AI:

Our AI Articles

Learn from our AI Articles to excel in your profession ;)

10 Best n8n Workflows Every Business Should Automate

Manual work is killing business speed. In 2026, companies that still copy-paste data between apps are already behind. This is...

Automating the First 14 Days After Someone Buys From You

How to automate the first 14 days after a sale closes — welcome messages, account setup, kickoff booking, and day-7/day-14...

10 Questions to Ask Before Hiring an n8n Automation Agency

Before hiring an n8n automation agency, ask about their pricing model (per-workflow vs retainer), who owns the finished workflows, how...

n8n vs Zapier vs Make: Which Automation Tool is Best for Business

n8n is the best fit for businesses that want self-hosting, unlimited executions, and deep AI-agent capability and have some technical...

How to Use OpenRouter with n8n: Free AI Workflows (No Card Needed)

You keep hearing about AI automation but every option seems to cost money. ChatGPT Plus is $20 a month. Claude...

How to Automate Lead Follow-Up Calls with AI: A Step-by-Step Guide

Here is a number that should worry every business owner: leads that are called within five minutes of showing interest...

10 Claude Tips: From Using 10% of Claude to Actually Using It

A practical guide to getting more out of Claude, this post shares 10 tips from beginner to advanced, including choosing...

How Claude Killed Prompt Engineering (And What To Do Instead)

Anthropic’s latest Claude updates suggest a shift away from long, rule-heavy prompts toward minimal, goal-first context. This post explains Record...

Why AI Recommends the Business With Recent Reviews, Not Just More of Them

Why AI search tools like ChatGPT and Google AI Overviews weigh review recency and response rate above raw review count...

Build a Second Brain for Your Business With Claude Code and Obsidian

This guide shows how to build a business second brain with Claude Code and Obsidian in under 10 minutes. Using...

Does AI Actually Care How Old Your Content Is?

Does content freshness really affect AI citations? Yes, but it's one of 23 factors, not the deciding one, and the...

Does Your “About Us” Page Actually Help AI Trust Your Business?

Does an About Us page actually help AI trust your business? Yes, it's a core E-E-A-T signal Google's own quality...
1:1 Free Strategy Session
Your competitors are already automating. Are you still paying for it manually?

Do you want to adopt AI Automation?

Every hour your team does repetitive work, you're burning real money.
While you wait, faster businesses are cutting costs and moving quicker.
AI and automations aren't the future anymore — they're the present.

Book a live 1-on-1 session where we show you exactly which of your daily tasks can be automated — and what it’s costing you not to.