Share via

Handling Ambiguous Knowledge Base Queries (RAG)

Frederick Yuan 0 Reputation points
2023-12-11T07:23:28.2433333+00:00

When using Azure's OpenAI service, there is a question about RAG. For instance, the knowledge base contains ‘turn on fog lights when visibility is less than 100 meters’, the question is whether fog lights need to be turned on when visibility is less than 1000 meters, and the expect answer should be "No need to turn on fog lights". In this case, should we use RAG to cover all scenarios, or is another technology required? Thanks.

Azure OpenAI Service
Azure OpenAI Service

An Azure service that provides access to OpenAI’s GPT-3 models with enterprise capabilities.

{count} votes

1 answer

Sort by: Most helpful
  1. Ramr-msft 17,836 Reputation points
    2023-12-11T18:06:53.8233333+00:00

    Thanks for the question, the Retrieval Augmented Generation (RAG) pattern is a technique to retrieve language from information system at query time to augment or generate the answers from. We call this Azure OpenAI on your data and it does not require fine-tuning to achieve this. The AOAI on your data with the RAG pattern doesn't restrict to structured or unstructured data. Just that Azure Cognitive Search is a search engine which is expected to support rich indexing and query syntax over the heterogeneous data sources behind it.

    We also have a example where you use Az Cog Search to index the data, then use RAG pattern to use Open AI completion using the matches docs from Az Cog Search.

     RAG and generative AI - Azure Cognitive Search | Microsoft Learn

    1 person found this answer helpful.
    0 comments No comments

Your answer

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