chunk_content:             product_embs = model(**{k:v.to(device) for k, v in batch.items()}).detach().float().cpu()
      start_index = step*batch_size
      end_index = start_index+batch_size if  (start_index+batch_size) < num_products else num_products
      product_embeddings_array[start_index:end_index] = product_embs
      del product_embs, batch
  Create a search index using HNSWlib:
  
  
  	Copied
  def construct_search_index(dim, num_elements, data):
      # Declaring 