@ryota.matsuda After reading through my previous answer, I felt there was an opportunity to provide you with a more comprehensive answer. I will keep the other answer up, but I feel the below information that I wrote up will be of more help.
My understanding of your ask is that you are looking to improve the accuracy of your responses. If so, below are some steps that I put together to help you.
- Provide quality data: Make sure that the data you are using to train your model is accurate and relevant. If you're trying to build a classifier or get the model to follow a pattern, make sure that there are enough examples. Be sure to proofread your examples. The model is usually smart enough to see through basic spelling mistakes and give you a response, but it also might assume that the mistakes are intentional, and it can affect the response.
- Check your settings: The temperature and top_p settings control how deterministic the model is in generating a response. If you're asking it for a response where there's only one right answer, then you'd want to set these settings to lower values. If you're looking for a response that's not obvious, then you might want to set them to higher values. The number one mistake people use with these settings is assuming that they're "cleverness" or "creativity" controls.
- Use a diverse set of prompts: To improve the quality of the responses, you can make a longer more diverse list in your prompt. One way to do that is to start off with one example, let the API generate more and select the ones that you like best and add them to the list. A few more high-quality variations can dramatically improve the quality of the responses.
- Test and Improve: Start testing your model with other utterances to get a sense of how the app behaves, and you can decide if any improvement is needed. You can improve your application by following best practices.
- Make use of synonyms: These have the ability to help you with your answer accuracy.
Brief Tutorial on how to use synonyms to improve your accuracy:
- Create a Synonym Map: First, you need to create a Synonym Map. A Synonym Map is a collection of synonyms that you want to use in your search queries. You can create a Synonym Map using the Azure portal, Azure CLI, or Azure PowerShell.
- Add Synonyms to the Synonym Map: Once you have created a Synonym Map, you can add synonyms to it. You can add synonyms using the Azure portal, Azure CLI, or Azure PowerShell. You can add synonyms in two ways: by uploading a file that contains the synonyms or by adding them manually.
- Associate the Synonym Map with an Index: After you have created a Synonym Map and added synonyms to it, you need to associate the Synonym Map with an Index. You can associate a Synonym Map with an Index using the Azure portal, Azure CLI, or Azure PowerShell.
- Test the Synonyms: Once you have associated the Synonym Map with an Index, you can test the synonyms by running search queries that use the synonyms. You can test the synonyms using the Azure portal, Azure CLI, or Azure PowerShell.
More information: https://docs.microsoft.com/en-us/azure/search/search-synonyms-tutorial-sdk