AgenticRagNCERT / utils /embeddings.py
Ashvanth.S
Add initial files
dbb2933
raw
history blame
219 Bytes
import os
from langchain_openai import OpenAIEmbeddings
from dotenv import load_dotenv
load_dotenv()
def get_embeddings():
return OpenAIEmbeddings(model='text-embedding-3-small', api_key=os.getenv("OPEN_API_KEY"))