rag-policy-qa / embeddings.py
Ars135's picture
Upload 8 files
2b1c370 verified
raw
history blame contribute delete
269 Bytes
from langchain_community.embeddings import HuggingFaceEmbeddings
def get_embedding_model():
"""
Local embedding model to avoid external API dependency.
"""
return HuggingFaceEmbeddings(
model_name="sentence-transformers/all-MiniLM-L6-v2"
)