I see this mistake all the time with RAG builds:
people wire up vector search, ask a few test questions, and assume the retrieval layer is solid.
It usually isn’t.
Plain vector search is great when the user wants similar meaning. It’s not great when the user wants exact knowledge. That gap is where a lot of “my AI agent keeps hallucinating” problems actually start.
A simple example:
If someone searches for black shoes, semantic search can drift toward similar shoes. You might get red shoes, other colors, related products, or just broadly similar inventory.
That’s not a model problem.
That’s a retrieval problem.
What I like about the hybrid RAG approach is that it fixes the real issue without making the stack overly fancy.
You combine:
- vector search for semantic similarity
- full-text search for exact keyword matching
That gives you both sides of the job.
If the user asks something broad like “I need a couch that can handle kids and dogs,” semantic retrieval helps surface the right recommendation.
If the user asks something precise like “what’s the warranty?” or “do you offer virtual room design?”, keyword search helps lock onto the exact phrase sitting in the knowledge base.
That’s the missing piece in a lot of n8n RAG workflows.
What I’d actually build is pretty clean:
Supabase handles the document table, embeddings, full-text column, indexes, and the hybrid search function.
n8n handles the orchestration: chat trigger → HTTP request / tool call → hybrid retrieval → agent response.
That’s the kind of architecture I like because it’s practical. No giant abstraction layer. No overengineered retrieval circus. Just the right pieces doing the right job.
A few implementation details stood out to me because they matter in real builds:
The document table isn’t just storing content and embeddings. It also needs the full-text search column, and if you’re pushing docs from n8n’s vector store node, you’ll want the metadata column too.
The embedding dimensions need to match the model. If you’re using text-embedding-3-small, your vector column needs to be set correctly.
And the indexes matter. A lot.
If you skip those, retrieval works in demo mode and crawls later.
The edge function pattern is also smart. Instead of stuffing all the logic into n8n, expose a Supabase function that runs hybrid retrieval and returns the matches. Then n8n just calls it. Cleaner workflow. Easier to maintain.
What I really liked is the testing split:
Exact-answer tests prove the keyword side works.
Recommendation-style tests prove the semantic side works.
That’s the benchmark I’d use too. If a RAG system can only do one of those well, it’s not production-ready yet.
The big takeaway for me is simple:
vector search alone is not a knowledge system.
It’s one retrieval strategy.
If I’m building an agent that people actually need to trust, I want retrieval that can do both:
find the exact thing
and
understand the intent behind the thing
That’s why hybrid RAG is such a strong upgrade for n8n builds.
If you’re getting weird answers from your knowledge base, I wouldn’t jump straight to prompt tweaks or model swaps.
I’d fix retrieval first.
Most of the time, that’s the lever that actually moves the result.