Google Cloud has added hybrid search to AlloyDB AI, its PostgreSQL-compatible database, so one SQL function can merge vector search and keyword search results. Google Cloud says the function uses Reciprocal Rank Fusion, or RRF, a method that combines result lists by their rank positions.
Vector search finds results by meaning, while full-text search matches exact keywords. Retrieval-augmented generation (RAG) apps, which feed retrieved documents to an AI model, need both for relevant answers. Until now, merging the two meant complex SQL or custom application code, according to Google Cloud. That work included normalizing scores, joining results on document IDs, and re-ranking them. Google Cloud says this made scores fragile when data changed and became close to unmanageable as more sources were added.
Because RRF relies on rank rather than raw scores, it skips score normalization entirely. Users call the function with a JSON array describing each search component, including vector queries with embeddings generated from natural language.
Google Cloud also lists related updates: a RUM extension that stores word positions in the index for faster phrase matching, and a native BM25 index for keyword scoring. A new foreign data wrapper lets AlloyDB query external Elasticsearch, OpenSearch, and Solr clusters.
Source: Google Cloud announcement.