jason-brian-anderson / long_term_memory_with_qdrant

RAG implementation for Ooba characters. dynamically spins up new qdrant vector DB and manages retrieval and commits for conversations based entirely on character name. Provides characters with access to past chat conversations
https://github.com/oobabooga/text-generation-webui-extensions
44 stars 6 forks source link

Extension will not load: dependency not found #2

Open PaulCoddington opened 1 year ago

PaulCoddington commented 1 year ago

2023-10-31 21:07:07 ERROR:Failed to load the extension "long_term_memory_with_qdrant". Traceback (most recent call last): File "C:\ProgramData\oobabooga\text-generation-webui\modules\extensions.py", line 36, in load_extensions exec(f"import extensions.{name}.script") File "", line 1, in File "C:\ProgramData\oobabooga\text-generation-webui\extensions\long_term_memory_with_qdrant\script.py", line 12, in from extensions.long_term_memory.long_term_memory import LTM ModuleNotFoundError: No module named 'extensions.long_term_memory.long_term_memory'

Airradda commented 1 year ago

Try renaming the folder from long_term_memory_with_qdrant to long_term_memory.

PaulCoddington commented 1 year ago

Try renaming the folder from long_term_memory_with_qdrant to long_term_memory.

So this is supposed to be a _replacement_ for the long_term_memory extension, rather than an extension that requires the long_term_memory extension to have been installed as pre-requisite?

Perhaps this information should be added to the README?

Renaming the extension has indeed appeared to fix the problem.

Airradda commented 1 year ago

No, at least I don't believe it's supposed to be a straight replacement, it just happens to be named similarly simple way.

Python is simple looking for the module extensions.long_term_memory.long_term_memory' or in other words looking forextensions/long_term_memory/long_term_memory.py, however, just cloning the repo you will end up withextensions/long_term_memory_with_qdrant/long_term_memory.py'.

PaulCoddington commented 1 year ago

...however, just cloning the repo you will end up with `extensions/long_term_memory_with_qdrant/long_term_memory.py'.

Default behaviour of Oobabooga WebUI is to install extensions by cloning the repository, so script.py has a bug where it attempts to import from another extension with a similar name.