spring-projects / spring-ai

An Application Framework for AI Engineering

Home Page:https://docs.spring.io/spring-ai/reference/1.0-SNAPSHOT/index.html

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Add advanced RAG (Hybrid Search and Semantic Hybrid Search) with Azure AI Search

iAMSagar44 opened this issue · comments

Azure AI Search has the following feature along with Vector Similarity Search (which is already present in Spring AI).

  • Hybrid Search (Vector Search + Text Search)
  • Semantic Hybrid Search (Hybrid search + re-ranking)

In the JavaScript Langchain project they basically have the 3 search models in 3 functions next to each other:

  1. similaritySearchVectorWithScore - this is the current vector search Spring AI already has
  2. hybridSearchVectorWithScore - this is vector search + text search
  3. semanticHybridSearchVectorWithScore - this is hybrid search + reranking

I see something similar was recently introduced in the Langchain4j project too. Would be good to have this feature in Spring AI as well.