brucepro / Memoir

Memoir+ a persona extension for Text Gen Web UI. That includes memory, emotions, command handling and more.
MIT License
143 stars 15 forks source link

About qdrant #16

Closed Murphy1227 closed 3 months ago

Murphy1227 commented 4 months ago

I'm having problems related to installing and makingv theqdrant work, I've never really used them and I have no idea how to configure it, It would be great if there was a tutorial on YouTube or something like that on how to configure the memoir extension without using docker.

brucepro commented 4 months ago

You are not required to use the docker qdrant. You can install the exe from here https://github.com/qdrant/qdrant/releases/tag/v1.5.1 Once you do that you can comment out the code in startup() in script.py

Belarrius1 commented 4 months ago

Hi,

I'm on Linux Mint, can you tell me what to comment in script.py? I downloaded "qdrant" binaries for linux and put in "text-generation-webui/extensions/Memoir"

Thanks for advance

brucepro commented 4 months ago

In script.py find the function setup() and remove everything except the pass The system will assume qdrant is at localhost:6333, if different update in params

Murphy1227 commented 4 months ago

i had this error: Traceback (most recent call last): File "E:\IA\Texto\Oobabooga\text-generation-webui\modules\extensions.py", line 37, in load_extensions extension = importlib.import_module(f"extensions.{name}.script") ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "E:\IA\Texto\Oobabooga\text-generation-webui\installer_files\env\Lib\importlib__init__.py", line 126, in import_module return _bootstrap._gcd_import(name[level:], package, level) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "", line 1204, in _gcd_import File "", line 1176, in _find_and_load File "", line 1147, in _find_and_load_unlocked File "", line 690, in _load_unlocked File "", line 940, in exec_module File "", line 241, in _call_with_frames_removed File "E:\IA\Texto\Oobabooga\text-generation-webui\extensions\Memoir\script.py", line 23, in from python_on_whales import DockerClient ModuleNotFoundError: No module named 'python_on_whales'

brucepro commented 4 months ago

Remove the import from the top of script.py

brucepro commented 4 months ago

Also are you using Main branch or dev branch?

Belarrius1 commented 4 months ago

"In script.py find the function setup() and remove everything except the pass The system will assume qdrant is at localhost:6333, if different update in params"

Thanks! It's works well now! I love it