Skip to content

That's just a taste — their profile full of gems!

Visit profile
User avatar
Kenneth Mendoza
June 9874

First RAG Agent

I love content that actually ships something.

What clicked for me here is how simple the core RAG pattern becomes when you stop dressing it up with hype:

take your docs → chunk them → embed them → store them in a vector DB → let an agent retrieve the right chunks when a question comes in

That’s it. No magic. No mystery. Just a clean retrieval layer that gives the model the right context before it answers.

The setup was refreshingly practical too.
Using n8n + Supabase keeps the whole thing approachable:

  • Google Drive as the document source
  • a loader to chunk the file
  • OpenAI embeddings to turn text into vectors
  • Supabase vector store to hold the chunks
  • an AI agent that queries the store when needed

I’m always biased toward stacks like this because they’re elegant. Not overengineered. Not “enterprise” for no reason. Just enough moving parts to get a real result.

The best beginner takeaway for me:

RAG is not the vector database.
RAG is the retrieval pattern.

That distinction matters. A lot of people hear “RAG” and immediately think some giant complex architecture. But really, it’s just giving the model access to the right information at the right time so it can answer accurately.

The vector database is just one really useful way to do that.

I also liked the way the build separated the system into two parts:

1. The ingestion pipeline
Get the document in, split it into chunks, generate embeddings, store it.

2. The agent layer
Take the user’s question, embed the query, retrieve the closest chunks, and answer with that context.

That mental model is clean. If you’re new to this space, that alone removes a lot of confusion.

A small but important detail: the same embeddings logic needs to be used consistently.
If your documents are embedded one way and your query is embedded another way, retrieval gets messy fast. That’s one of those tiny implementation details that saves hours later.

Another thing I appreciated was the memory piece.

A lot of people build a “working” agent, test one question, and think they’re done. Then the second message comes in and the thing has zero conversational memory. Adding Postgres chat memory on top gives the agent short-term recall, which makes the interaction feel way more usable.

That’s the part I always come back to with agent builds:

A demo that answers one question is not the same as a system someone can actually use.

The practical next step is where this gets interesting.

I wouldn’t stop at manually uploading one PDF and chatting with it. I’d turn it into an actual automation layer:

when a new file hits a folder, ingest it automatically
when a file is updated, replace stale vectors
when a file is deleted, clean up the database

That’s where these builds stop being tutorials and start becoming infrastructure.

And honestly, that’s the bigger lesson I took from it:

You do not need code to understand AI systems at a useful level.
If you can understand triggers, data flow, chunking, retrieval, and memory, you can already build a lot of valuable internal tools.

If I were explaining RAG to a client after watching this, I’d keep it dead simple:

Your AI isn’t “knowing” your documents by default.
We give it a searchable memory layer so it can pull the right information before it answers.

That framing usually lands.

I’m seeing more and more opportunity for simple RAG agents inside normal operations:

support teams searching SOPs
sales teams querying product docs
internal assistants over training manuals
email or form-triggered agents that pull company-specific context before replying

Not flashy. Just useful.

That’s my favorite category of automation right now:
small systems with obvious ROI.

If you’re just getting into agents, this is a solid build path to copy. Start with one document, one vector store, one retrieval tool, one memory layer. Get it working end-to-end before you add any “advanced” ideas.

That’s usually the fastest way to learn.

#automation#nocode#aiautomation#aiagents#n8n#rag#supabase#vectorsearch
Like
Dislike

94

31

Add a comment...