I receive an output of [0], when the expected output is [743, 673, 626, 752, 326]
I’m not sure what I am doing wrong, and it very likely has everything to do with my limited (though growing) understanding of coding.
My recommendation for developing the aforementioned exercise is to follow everything indicated in the notebook’s hits.
The solution is framed within everything indicated in the hits.
This is useless… I was following that, and I was still getting [0] as output. The issue for me was that I was using only one score from the cosine_similariy(…)[0].
This assignment needs revising for bugs and clarity. Exercise 1 had an uncessary comment to index the corpus which prevents passing the unit tests.
Same issue. Getting the error: k of 5 is larger than the number of available scores, which is 1 (corpus size should be larger than top-k). Please set with a smaller k or increase the size of corpus.