# embedding.py | |
from langchain_huggingface import HuggingFaceEmbeddings | |
def load_embeddings(): | |
""" | |
Returns a HuggingFaceEmbeddings instance. | |
""" | |
embeddings = HuggingFaceEmbeddings( | |
model_name="nomic-ai/nomic-embed-text-v1.5", | |
model_kwargs={"trust_remote_code": True} | |
) | |
return embeddings | |