ComponentsText embedding modelsBGE on Hugging FaceBGE on Hugging FaceBGE models on the HuggingFace are the best open-source embedding models.
BGE model is created by the Beijing Academy of Artificial Intelligence (BAAI). BAAI is a private non-profit organization engaged in AI research and development.This notebook shows how to use BGE Embeddings through Hugging Face#!pip install sentence_transformersfrom langchain.embeddings import HuggingFaceBgeEmbeddingsmodel_name = "BAAI/bge-small-en"model_kwargs = {'device': 'cpu'}encode_kwargs = {'normalize_embeddings': False}hf = HuggingFaceBgeEmbeddings(    model_name=model_name,    model_kwargs=model_kwargs,    encode_kwargs=encode_kwargs)embedding = hf.embed_query("hi this is harrison")len(embedding)    384PreviousBedrockNextClarifai