crewAI-examples icon indicating copy to clipboard operation
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

Open arjunkrishna opened this issue 2 years ago • 1 comments

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()

arjunkrishna avatar Jan 17 '24 04:01 arjunkrishna

solved it by using

from langchain.embeddings import FastEmbedEmbeddings

retriever = FAISS.from_documents( docs, FastEmbedEmbeddings() ).as_retriever()

arjunkrishna avatar Jan 17 '24 04:01 arjunkrishna