The Problem

When building BotForge, our AI no-code chatbot platform, we needed a retrieval system that could handle messy, real-world user queries — typos, partial phrases, semantically similar-but-differently-worded questions.

A naive vector search alone wasn't good enough. It's powerful but brittle to out-of-vocabulary terms and exact keyword lookups.

The Solution: Four-Tier Parallel Retrieval

We ran four retrieval strategies simultaneously using Promise.all\, then merged results with a weighted scoring function.