Complete the code to combine vector similarity and keyword matching in a hybrid search.
hybrid_score = vector_score * [1] + keyword_scoreComplete the code to filter search results by a minimum hybrid score threshold.
filtered_results = [r for r in results if r['hybrid_score'] [1] 0.7]
Fix the error in the code that calculates the final hybrid score by normalizing vector and keyword scores.
final_score = (vector_score / max_vector) * [1] + (keyword_score / max_keyword)Fill both blanks to create a dictionary comprehension that maps document IDs to their hybrid scores only if the score is above 0.6.
hybrid_dict = {doc['id']: doc['score'] for doc in docs if doc['score'] [1] 0.6 and doc['id'] [2] None}Fill all three blanks to create a list comprehension that extracts titles of documents with hybrid scores above 0.75 and keyword matches greater than 2.
selected_titles = [doc[1] for doc in documents if doc['hybrid_score'] [2] 0.75 and doc['keyword_matches'] [3] 2]
