Azure AI Search with Varying Verbiage

Keith Ho 25 Reputation points
2025-03-10T20:16:59.53+00:00

Currently, I'm using the Azure AI Search in conjunction with my LLM. I've created an index and uploaded documents into it. I have a Chabot that answers questions based on the information inside the index.

When I ask the Chatbot about "Frozen Macess", the Azure AI Search is able to search through the index for documents that contain those exact words. However, when I change the verbiage to "freezing" instead of "frozen", the AI Search can't find the document it did previously. I'm using the Azure AI Search through a vector store as a retriever with the search type set as "similarity_score_threshold."

Is there a way I can get "freezing Macess" to return the same documents as "Frozen Macess"? Is there a way to retrieve documents when the verbiage is slightly different than the exact wording that is on the documents that I am uploading into the Azure Search Service Index?

Azure AI Search
Azure AI Search
An Azure search service with built-in artificial intelligence capabilities that enrich information to help identify and explore relevant content at scale.
1,222 questions
0 comments No comments
{count} vote

Accepted answer
  1. Pavankumar Purilla 4,280 Reputation points Microsoft External Staff
    2025-03-10T21:51:29.3033333+00:00

    Hi Keith Ho,

    To improve Azure AI Search's ability to handle queries with varying wording, you can enable semantic search, which retrieves documents based on meaning rather than exact keywords. This ensures that queries like "freezing Macess" can match documents containing "Frozen Macess." Additionally, using synonym maps allows you to define relationships between similar terms, ensuring that synonyms or related words are recognized during searches. Applying stemming or lemmatization through language analyzers can further normalize words to their root forms, improving query-document matching.

    Lowering the similarity_score_threshold can help retrieve documents that are semantically similar but not exact matches. Preprocessing queries with NLP tools to normalize terms or expand synonyms before sending them to Azure AI Search can also enhance retrieval accuracy.
    Finally, combining vector-based search with keyword-based search in a hybrid approach ensures robust results, as vector search focuses on semantic meaning while keyword search ensures exact matches.

    Hope this helps. Do let us know if you have any further queries.


    If this answers your query, do click Accept Answer and Yes for was this answer helpful.

    1 person found this answer helpful.

0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.