---------------------------------------------------------------------------
ValueError Traceback (most recent call last)
Cell In[7], line 2
1 # You can use any llama-hub loader ooto get documents!
----> 2 ollama_pack = OllamaQueryEnginePack(model="phi", documents=documents)
File ~/work/SPEED/ollama_pack/base.py:27, in OllamaQueryEnginePack.__init__(self, model, base_url, documents)
23 self._base_url = base_url
25 llm = Ollama(model=self._model, base_url=self._base_url)
---> 27 embed_model = OllamaEmbedding(model_name=self._model, base_url=self._base_url)
29 service_context = ServiceContext.from_defaults(llm=llm, embed_model=embed_model)
31 self.llm = llm
File ~/work/SPEED/ollama_pack/base.py:69, in OllamaEmbedding.__init__(self, model_name, base_url, verbose, **kwargs)
57 def __init__(
58 self,
59 model_name: str,
(...)
62 **kwargs: Any,
63 ) -> None:
64 super().__init__(
65 model_name=model_name,
66 **kwargs,
67 )
---> 69 self._verbose = verbose
70 self._base_url = base_url
File /opt/conda/lib/python3.11/site-packages/pydantic/v1/main.py:357, in BaseModel.__setattr__(self, name, value)
354 return object_setattr(self, name, value)
356 if self.__config__.extra is not Extra.allow and name not in self.__fields__:
--> 357 raise ValueError(f'"{self.__class__.__name__}" object has no field "{name}"')
358 elif not self.__config__.allow_mutation or self.__config__.frozen:
359 raise TypeError(f'"{self.__class__.__name__}" is immutable and does not support item assignment')
ValueError: "OllamaEmbedding" object has no field "_verbose"
Yikes @Logan M