Hi, I’m testing a self-hosted Discourse with the AI plugin. Both for embedding and semantic, using OpenAI API.
After the recent update, I’ve noticed that the “toggle button” in advanced search for AI results is no longer visible. However, the same is visible in the mobile app.
All other features of AI are working fine.
Has anyone else seen such a behavior? Thanks for your inputs !
 
             
            
               
               
               
            
            
           
          
            
              
                Moin  
                
               
              
                  
                    June 2, 2024,  3:42pm
                   
                   
              2 
               
             
            
              Hey @ragvij    Welcome to Meta!
You need to choose “Sort by” → “Relevance” instead of “Latest topic” to be able to see semantic search results.
The banner telling you that was removed recently.
  
  
    
    
  
      
    
      discourse:main ← discourse:ux-sort-order-fix
    
      
        
          opened 06:11PM - 29 May 24 UTC 
        
        
        
       
   
 
  
    As mentioned on [Meta](https://meta.discourse.org/t/sorting-by-relevance-needs-a… dditional-reload/300366?u=keegan), previously the sort order required a refresh to see the change in state of the AI toggle disabled text.
After merging https://github.com/discourse/discourse/pull/27247, we get access to the `sortOrder`'s tracking context so the changes can be updated properly in the respective getters.
We also simplify things so that we conditionally show the entire AI results toggle only when it is in an allowed `searchOrder`. There are too many edge cases when we show text for each scenario and conditionally showing/hiding the element presents a cleaner UX. 
   
   
  
    
    
  
  
 
             
            
               
               
              3 Likes 
            
            
           
          
            
            
              Hi @Moin , you are a life savior 
Thank you for the prompt solution ; much appreciated 
             
            
               
               
              2 Likes 
            
            
           
          
            
              
                system  
                (system)
                  Closed 
               
              
                  
                    July 2, 2024,  3:50pm
                   
                   
              4 
               
             
            
              This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.