@azure/search-documents
SDK and the @langchain/community
package:
search.type
property when creating the vector store.
You can read more about hybrid search and how it may improve your search results in the official documentation.
In some scenarios like retrieval-augmented generation (RAG), you may want to enable semantic ranking in addition to hybrid search to improve the relevance of the search results. You can enable semantic ranking by setting the search.type
property to AzureAISearchQueryType.SemanticHybrid
when creating the vector store.
Note that semantic ranking capabilities are only available in the Basic and higher pricing tiers, and subject to regional availability.
You can read more about the performance of using semantic ranking with hybrid search in this blog post.