azure-search-openai-demo
azure-search-openai-demo copied to clipboard
Deactivating semantic ranking per default doesn't work
Please provide us with the following information:
This issue is for a: (mark with an x
)
- [x] bug report -> please search issues before submitting
- [ ] feature request
- [ ] documentation issue or request
- [ ] regression (a behavior that used to work and stopped in a new release)
Minimal steps to reproduce
Change the default setting in Chat.tsx for using semantic ranker from true to false, by changing the line
const [useSemanticRanker, setUseSemanticRanker] = useState<boolean>(true);
toconst [useSemanticRanker, setUseSemanticRanker] = useState<boolean>(false);
. Start the application Open the webpage from your webbrowser Select "Developer Settings" The option "use semantic ranker for retrieval" is still checked. Same applies to ask (when changing Ask.tsx and switching to the ask tab after the 3rd step)
Any log messages given by the failure
Expected/desired behavior
The option "use semantic ranker for retrieval" should be unchecked
OS and Version?
Windows 10.
azd version?
1.7.0
Versions
I'm really sorry cause I don't know how to answer this one but I cloned this repository on April 9th.
Mention any other details that might be useful
To overcome this issue, the line setUseSemanticRanker(config.showSemanticRankerOption);
in Chat.tsx (or in Ask.tsx to solve the issue for the ask tab) must be removed. The question is, why this line is there in the first place and whether removing it will lead to any unexpected behavior.
Thanks! We'll be in touch soon.