-
Notifications
You must be signed in to change notification settings - Fork 1.6k
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
cannot import name 'HuggingFaceEmbedding' from 'llama_index.embeddings' (unknown location) #1079
Comments
getting same on the 0.3.4 upgrade -- trying the pymemgpt[local]l embedding now that the : embeddings.memgpt.ai |
to work around, for those who use the github repo:
and then replace the import as below: |
same error for me, but happens when i try to run with persona and human |
did you want to initiate a pull with that fix ? |
yeah sure, will push later |
Closing since #1087 is merged, but please re-open if you keep having this issue! |
really spent hours struggling with this issue. installing reinstalling, upgrading lamaindex,hugginface. it still throws this error when running memgpt: 🧬 Creating new agent...
-> 🤖 Using persona profile 'sam_pov'
-> 🧑 Using human profile 'basic'
Traceback (most recent call last):
File "/home/iiiymem/memgpt/memgptvenv/bin/memgpt", line 8, in
sys.exit(app())
^^^^^
File "/home/iiiymem/memgpt/memgptvenv/lib/python3.11/site-packages/typer/main.py", line 328, in call
raise e
File "/home/iiiymem/memgpt/memgptvenv/lib/python3.11/site-packages/typer/main.py", line 311, in call
return get_command(self)(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/iiiymem/memgpt/memgptvenv/lib/python3.11/site-packages/click/core.py", line 1157, in call
return self.main(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/iiiymem/memgpt/memgptvenv/lib/python3.11/site-packages/typer/core.py", line 778, in main
return _main(
^^^^^^
File "/home/iiiymem/memgpt/memgptvenv/lib/python3.11/site-packages/typer/core.py", line 216, in _main
rv = self.invoke(ctx)
^^^^^^^^^^^^^^^^
File "/home/iiiymem/memgpt/memgptvenv/lib/python3.11/site-packages/click/core.py", line 1688, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/iiiymem/memgpt/memgptvenv/lib/python3.11/site-packages/click/core.py", line 1434, in invoke
return ctx.invoke(self.callback, **ctx.params)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/iiiymem/memgpt/memgptvenv/lib/python3.11/site-packages/click/core.py", line 783, in invoke
return __callback(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/iiiymem/memgpt/memgptvenv/lib/python3.11/site-packages/typer/main.py", line 683, in wrapper
return callback(**use_params) # type: ignore
^^^^^^^^^^^^^^^^^^^^^^
File "/home/iiiymem/memgpt/memgptvenv/lib/python3.11/site-packages/memgpt/cli/cli.py", line 668, in run
memgpt_agent = Agent(
^^^^^^
File "/home/iiiymem/memgpt/memgptvenv/lib/python3.11/site-packages/memgpt/agent.py", line 258, in init
self.persistence_manager = LocalStateManager(agent_state=self.agent_state)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/iiiymem/memgpt/memgptvenv/lib/python3.11/site-packages/memgpt/persistence_manager.py", line 56, in init
self.archival_memory = EmbeddingArchivalMemory(agent_state)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/iiiymem/memgpt/memgptvenv/lib/python3.11/site-packages/memgpt/memory.py", line 373, in init
self.embed_model = embedding_model(agent_state.embedding_config)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/iiiymem/memgpt/memgptvenv/lib/python3.11/site-packages/memgpt/embeddings.py", line 182, in embedding_model
return default_embedding_model()
^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/iiiymem/memgpt/memgptvenv/lib/python3.11/site-packages/memgpt/embeddings.py", line 137, in default_embedding_model
from llama_index.embeddings import HuggingFaceEmbedding
ImportError: cannot import name 'HuggingFaceEmbedding' from 'llama_index.embeddings' (unknown location)
The text was updated successfully, but these errors were encountered: