MiniLM-L6-v2 maps paragraphs to 384 dimension vector for clustering or search
1–7 of 7 posts
Re: MiniLM-L6-v2 maps paragraphs to 384 dimension vector for clustering or search
#2(With DBSCAN it shows great promise for clustering news articles about the same topic..)
Re: MiniLM-L6-v2 maps paragraphs to 384 dimension vector for clustering or search
#3I read about it here: https://news.ycombinator.com/item?id=35236275
But it's been mentioned on HN a few times in the past 3 months:
https://news.ycombinator.com/item?id=35055808
https://news.ycombinator.com/item?id=34691307
https://news.ycombinator.com/item?id=34034940
https://news.ycombinator.com/item?id=34007942
It can be used as am embedding model in llama_index (fka gpt_index). Here's a code snippet from one of their users:
from langchain.embeddings.huggingface import HuggingFaceEmbeddings
from llama_index import LangchainEmbedding
def get_embed_model():
model_name = "sentence-transformers/all-MiniLM-L6-v2"
embed_model = LangchainEmbedding(HuggingFaceEmbeddings(model_name=model_name))
return embed_model
get_embed_model()
index = GPTSimpleVectorIndex(documents, embed_model=embed_model)Re: MiniLM-L6-v2 maps paragraphs to 384 dimension vector for clustering or search
#4I got clustering up and running with that in about ten minutes with k-means from scikit learn and wow, all the articles about Ukraine got clustered, all the sports, all the deep learning, all the reinforcement learning. It is way faster than my LDA clustering engine and I think gets better results. See sbert.net for a library that puts it on your fingertips. (With DBSCAN it shows great promise for clustering news art…
Re: MiniLM-L6-v2 maps paragraphs to 384 dimension vector for clustering or search
#5https://engineering.fb.com/2017/03/29/data-infrastructure/fa...
for doing the similarity search?
I've also be thinking about looking into this:
Re: MiniLM-L6-v2 maps paragraphs to 384 dimension vector for clustering or search
#6anybody have thoughts on this: https://engineering.fb.com/2017/03/29/data-infrastructure/fa... for doing the similarity search? I've also be thinking about looking into this: https://milvus.io/
Re: MiniLM-L6-v2 maps paragraphs to 384 dimension vector for clustering or search
#7anybody have thoughts on this: https://engineering.fb.com/2017/03/29/data-infrastructure/fa... for doing the similarity search? I've also be thinking about looking into this: https://milvus.io/