spring-ai icon indicating copy to clipboard operation
spring-ai copied to clipboard

Enhanced Vector Store Capabilities with Full-Text/Hybrid Search and Reranking

Open alessiobertazzo88 opened this issue 1 year ago • 6 comments
trafficstars

  • Updated the core vector store's classes to support vector search (enabled by default as today), full-text search, and reranking. Hybrid search is enabled when vector and full-text search are enabled at the same time.
  • Added new default methods that throw UnsupportedOperationException to prevent the need for implementation across all vector stores unless specifically required.
  • Implemented full-text search, hybrid search, and reranking functionalities specifically for the Azure Search AI vector store.

These enhancements improve the flexibility and functionality of the vector store classes, ensuring compatibility with various search and ranking operations while maintaining backward compatibility.

alessiobertazzo88 avatar Aug 15 '24 21:08 alessiobertazzo88

Thank you @alessiobertazzo88 , This is very interesting.

May you which of the supported Vector Stores provide hybrid search as well?

tzolov avatar Aug 21 '24 16:08 tzolov

I was just about to merge this for M2 (even wrote docs) but then thought it might be better to push these variations into the search request and rename 'similaritySearch' to just 'search'. There are also other improvements to the VectorStore interface that should be done (for example options wrt to add), so I'll hold off merging for now.

markpollack avatar Aug 22 '24 22:08 markpollack

@tzolov Yes, from a brief research I saw that other Vector Stores provide this feature

@markpollack ok I'm going to add some things. If you have some specific propose I'm glad to integrate it.

alessiobertazzo88 avatar Aug 26 '24 21:08 alessiobertazzo88

Agree re hybrid search. Reranking perhaps should be an advisor though.

johnsonr avatar Aug 29 '24 17:08 johnsonr

yes, reranking is a perfect use case for an advisor

markpollack avatar Sep 17 '24 18:09 markpollack

This will need to wait to post 1.0 GA.

markpollack avatar Apr 21 '25 15:04 markpollack

when will this be prioritized?

aadnegture avatar Jul 01 '25 09:07 aadnegture

@aadnegture We are actively working on a design for this, with the hope of incorporating it into the 1.1.0 version.

sobychacko avatar Jul 01 '25 19:07 sobychacko