add snippets retrieval descriptor
added snippets retrieval using cosine similarity