File size: 209 Bytes
7e0035d
 
 
 
 
 
1
2
3
4
5
6
from langchain_community.embeddings.ollama import OllamaEmbeddings

def get_embedding_function():
    embeddings = OllamaEmbeddings(model="mxbai-embed-large",
    show_progress=True)
    return embeddings