from langchain_community.embeddings.ollama import OllamaEmbeddings def get_embedding_function(): embeddings = OllamaEmbeddings(model="mxbai-embed-large", show_progress=True) return embeddings