Spaces:
Sleeping
Sleeping
from langchain.embeddings import HuggingFaceInferenceAPIEmbeddings | |
from dotenv import load_dotenv | |
import os | |
load_dotenv() | |
embeddings = HuggingFaceInferenceAPIEmbeddings( | |
api_key=os.getenv("HUGGINGFACEHUB_API_TOKEN"), model_name="sentence-transformers/all-MiniLM-L6-v2" | |
) |