Open iAMSagar44 opened 5 months ago
Hi. Yes, this is a good idea.
related issue - https://github.com/spring-projects/spring-ai/issues/579
Hello everyone, I have developed this feature to enable users to choose their preferred search mode. Within the SearchRequest, it is possible to use similarity search in line with what is currently available (vector-based, enabled by default), full-text search, or both (hybrid search). Additionally, it provides the option to use reranking approaches as well.
This implementation is applied to Azure SearchAI as first vector store, but new methods defaults can be overridden to enhance the feature for all the others compatible.
This is the PR #1227
Azure AI Search has the following feature along with Vector Similarity Search (which is already present in Spring AI).
In the JavaScript Langchain project they basically have the 3 search models in 3 functions next to each other:
I see something similar was recently introduced in the Langchain4j project too. Would be good to have this feature in Spring AI as well.