Why Vector Search Ranked the Right Answer 9th (Hybrid RAG Fix)

Video by NetApp Instaclustr via YouTube
Why Vector Search Ranked the Right Answer 9th (Hybrid RAG Fix)

Vector search understands meaning, but it can’t match an exact fact. Ask a RAG support bot "What is recall 24V-330?" and pure vector search ranks the right document ninth, behind eight recalls that never mention it.

In Part 2 of our Apache Cassandra RAG series, we rerun the same questions from Part 1 and compare hybrid RAG against the original vector search results. Hybrid RAG grounds retrieval in hard facts first, then lets vector search rank by meaning, all in one Cassandra table with one CQL query.

In this video:
– What hybrid RAG is, from the 2024 BlackRock and NVIDIA paper
– How Storage-Attached Indexing (SAI) filters on facts like model, model year, and recall ID
– The schema changes, and why every index needs USING ‘sai’
– Vector-only vs. hybrid results on three real questions
– Limitations to know before you build

Chapters:
0:00 Vector search ranks the right answer ninth
0:27 Recap of Part 1
0:58 What is hybrid RAG?
1:13 Hybrid RAG in Cassandra with SAI
1:52 Schema changes and SAI indexes
2:27 Vector vs. hybrid
2:47 Question 1: The tailgate recall
3:10 Question 2: Recall 24V-330
3:53 Question 3: How much can the Summit 1500 tow?
4:24 Limitations
4:51 Try it yourself

Try it yourself:
Companion app (cassandra-hybrid-retrieval-demo): https://github.com/instaclustr/code-samples/tree/main/Cassandra/cassandra-hybrid-retrieval-demo
Runs Cassandra 5.0.9 in Docker with a local embedding model, so no API key is needed.

Free trial of the NetApp Instaclustr Managed Platform: https://console2.instaclustr.com/signup

Part 1, Vector Search in Apache Cassandra for RAG Retrieval:
https://www.instaclustr.com/blog/vector-search-apache-cassandra-rag-retrieval/

Subscribe for more tutorials like this one!

Source