regenerate docuemnt files
calculate cosine similarity