crewAI-examples
crewAI-examples copied to clipboard
when using ollama local model, it seems like in sec_tools it still tries to goto OpenAI due to OpenAIEmbeddings
when using ollama local model, it seems like in sec_tools it still tries to goto OpenAI due to OpenAIEmbeddings.
What should be done here, so that it does not try to goto openAI.
retriever = FAISS.from_documents( docs, OpenAIEmbeddings() ).as_retriever()
solved it by using
from langchain.embeddings import FastEmbedEmbeddings
retriever = FAISS.from_documents( docs, FastEmbedEmbeddings() ).as_retriever()