RAG_CHATBOT / embedding_function.py
GLITCH-08's picture
Upload 9 files
56071ad verified
raw
history blame
No virus
261 Bytes
from langchain_community.embeddings.ollama import OllamaEmbeddings
def get_embedding():
# Initialize embeddings with the specified model
embeddings = OllamaEmbeddings(model="nomic-embed-text")
return embeddings # Return the embedding function