Get hands-on experience with 20+ free Google Cloud products and $300 in free credit for new customers.

discovery engine : how to get model scores in search result

I built a search app with discovery engine (Gen AI), and want to get the model scores. According to the doc,  

 
model_scores could be available, but I did not figure out a way (either in REST API or Python sdk) to retrieve it in SearchResponse. 
 
Any suggestion? thanks
 

 

1 1 772
1 REPLY 1

Hi, have you had any luck trying to get this? I've had the same problem too. I just get empty objects for the individual results.