Spaces:
Running
Running
File size: 313 Bytes
4225666 | 1 2 3 4 5 6 7 8 9 10 11 12 | from langchain_huggingface import HuggingFaceEmbeddings
from langchain_google_genai import GoogleGenerativeAIEmbeddings
from dotenv import load_dotenv
load_dotenv()
def get_embedding_model():
embeddings = GoogleGenerativeAIEmbeddings(
model="models/gemini-embedding-001"
)
return embeddings
|