Spaces:
Runtime error
Runtime error
Download get_embedding_function.py from Victor2323/RAG-APP-LLM-CRIPTO-VASU: direct link, hf CLI and curl.
- Browser
- Download file 209 Bytes
-
https://huggingface.co/spaces/Victor2323/RAG-APP-LLM-CRIPTO-VASU/resolve/main/get_embedding_function.py
- Command line
-
hf download hf://spaces/Victor2323/RAG-APP-LLM-CRIPTO-VASU/get_embedding_function.py
-
curl -L -o get_embedding_function.py https://huggingface.co/spaces/Victor2323/RAG-APP-LLM-CRIPTO-VASU/resolve/main/get_embedding_function.py
209 Bytes
| from langchain_community.embeddings.ollama import OllamaEmbeddings | |
| def get_embedding_function(): | |
| embeddings = OllamaEmbeddings(model="mxbai-embed-large", | |
| show_progress=True) | |
| return embeddings |