Azure-Samples / azure-search-openai-demo

A sample app for the Retrieval-Augmented Generation pattern running in Azure, using Azure AI Search for retrieval and Azure OpenAI large language models to power ChatGPT-style and Q&A experiences.
https://azure.microsoft.com/products/search
MIT License
5.57k stars 3.74k forks source link

Permit combination of vectors plus semantic ranker #1686

Closed pamelafox closed 1 week ago

pamelafox commented 3 weeks ago

Currently our code doesn't allow it: use_semantic_ranker = True if overrides.get( "semantic_ranker" ) and has_text else False

However, there’s a new property “semanticQuery” - Set that to your plain text query and you get semantic ranking

cc @mattgotteiner