I have installed the pack using it with a very simple application. Initially it didn't work out of the box throwing the following error
Traceback (most recent call last): File "/Users/tichomir/Downloads/Simple/test.py", line 21, in <module> ollama_pack = OllamaQueryEnginePack(model="llama2",documents=documents) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/Users/tichomir/Downloads/Simple/ollama_pack/base.py", line 25, in __init__ llm = Ollama(self._model, base_url=self._base_url) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ TypeError: BaseModel.__init__() takes 1 positional argument but 2 were given
In class OllamaQueryEnginePack(BaseLlamaPack):
following line: llm = Ollama(self._model, base_url=self._base_url) had to change to: llm = Ollama(model=self._model, base_url=self._base_url)
Also in class OllamaEmbedding(BaseEmbedding): had to comment out: class OllamaEmbedding(BaseEmbedding): and add a definition for private var: _verbose: bool = False
Version
Latest
Steps to Reproduce
Get a simple program to use this llama pack and try to give it a text file to analyse
Relevant Logs/Tracbacks
Traceback (most recent call last):
File "/Users/tichomir/Downloads/Simple/test.py", line 21, in <module>
ollama_pack = OllamaQueryEnginePack(model="llama2",documents=documents)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/tichomir/Downloads/Simple/ollama_pack/base.py", line 25, in __init__
llm = Ollama(self._model, base_url=self._base_url)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
TypeError: BaseModel.__init__() takes 1 positional argument but 2 were given
Bug Description
I have installed the pack using it with a very simple application. Initially it didn't work out of the box throwing the following error
Traceback (most recent call last): File "/Users/tichomir/Downloads/Simple/test.py", line 21, in <module> ollama_pack = OllamaQueryEnginePack(model="llama2",documents=documents) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/Users/tichomir/Downloads/Simple/ollama_pack/base.py", line 25, in __init__ llm = Ollama(self._model, base_url=self._base_url) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ TypeError: BaseModel.__init__() takes 1 positional argument but 2 were given
In
class OllamaQueryEnginePack(BaseLlamaPack):
following line:
llm = Ollama(self._model, base_url=self._base_url)
had to change to:llm = Ollama(model=self._model, base_url=self._base_url)
Also in
class OllamaEmbedding(BaseEmbedding):
had to comment out:class OllamaEmbedding(BaseEmbedding):
and add a definition for private var:_verbose: bool = False
Version
Latest
Steps to Reproduce
Get a simple program to use this llama pack and try to give it a text file to analyse
Relevant Logs/Tracbacks