Word2Vec and Elasticsearch for Recommendations

What are content-based recommender systems?

How do we approach this mathematically?

  import numpy as np

  vec_A = np.random.uniform(low=-1, high=1, size=128)
  vec_B = np.random.uniform(low=-1, high=1, size=128)

What is the Cosine Similarity?.

Cosine Function

Cosine Function

  from sklearn.metrics.pairwise import cosine_similarity

  cosine_similarity(vec_A.reshape((1, 128)), vec_B.reshape((1, 128))).reshape(1)

How do we obtain these vectors?

What is Word2Vec?

Where does Elasticseach fit in?