research-rag-chatbot / src /embeddings.py
GitHub Actions
Sync from GitHub 8e4442fbfa496966b830fcde5a3f4fd862922de9
eabfc15
raw
history blame
244 Bytes
from langchain_huggingface import HuggingFaceEmbeddings
from .config import EMBEDDING_MODEL, DEVICE
def get_embedding_model():
return HuggingFaceEmbeddings(
model_name=EMBEDDING_MODEL,
model_kwargs={"device": DEVICE}
)