Reformat the query vector
Query Vector weight calcualtion