Spaces:
Sleeping
Sleeping
File size: 284 Bytes
6bd56da |
1 2 3 4 5 6 7 |
from langchain.embeddings import HuggingFaceEmbeddings
def get_embedding_function():
model_name = "sentence-transformers/all-mpnet-base-v2" # You can change this to any other Hugging Face model
embeddings = HuggingFaceEmbeddings(model_name=model_name)
return embeddings
|