dspy icon indicating copy to clipboard operation
dspy copied to clipboard

Using OllamaEmbedding as retriever ?

Open thad75 opened this issue 9 months ago • 1 comments

Hi,

I was trying to workout a solution with OllamaEmbedding as a retriever. However got the following error :

File ~/miniconda3/envs/RAG/lib/python3.11/site-packages/dsp/primitives/search.py:12, in retrieve(query, k, **kwargs) 10 if not dsp.settings.rm: 11 raise AssertionError("No RM is loaded.") ---> 12 passages = dsp.settings.rm(query, k=k, **kwargs) 13 if not isinstance(passages, Iterable): 14 # it's not an iterable yet; make it one. 15 # TODO: we should unify the type signatures of dspy.Retriever 16 passages = [passages]

TypeError: 'OllamaEmbeddings' object is not callable

Will there be any support for OllamaEmbedding in the future ? Thanks in advance

thad75 avatar May 06 '24 21:05 thad75

I am facing the same error.

amritsingh183 avatar May 18 '24 21:05 amritsingh183