You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
memory = MemoryWithRetrievalKnowledge(storage_path=storage_path,
name = memory_agent_name,
memory_path=memory_history_path)
跳到了这一行
self.embedding = embedding or ModelScopeEmbeddings(
model_id='damo/nlp_gte_sentence-embedding_chinese-base')
报了如下错误
Could not import some python packages.Please install it with pip install modelscope.
ImportError: cannot import name 'models' from partially initialized module 'oss2' (most likely due to a circular import) (d:\Anaconda\envs\agent\lib\site-packages\oss2_init_.py)
The above exception was the direct cause of the following exception:
File "D:\Code\modelscope-agent\modelscope_agent\storage\vector_storage.py", line 30, in init
self.embedding = embedding or ModelScopeEmbeddings(
File "D:\Code\modelscope-agent\modelscope_agent\memory\memory_with_retrieval_knowledge.py", line 31, in init
self.store_knowledge = KnowledgeVector(
File "D:\Code\modelscope-agent\main.py", line 20, in
memory = MemoryWithRetrievalKnowledge(storage_path=storage_path,
ImportError: Could not import some python packages.Please install it with pip install modelscope.
Versions / Dependencies
无
Reproduction script
无
Issue Severity
None
The text was updated successfully, but these errors were encountered:
Initial Checks
What happened + What you expected to happen
作者您好,非常感谢您的工作
我在研究您的工作时,出现了一些问题,还请麻烦您解答一下
在运行demo/demo_retrieval_agent.ipynb的例子进行向量库检索时,在实例化memory类时报错了
跳到了这一行
报了如下错误
Could not import some python packages.Please install it with
pip install modelscope
.ImportError: cannot import name 'models' from partially initialized module 'oss2' (most likely due to a circular import) (d:\Anaconda\envs\agent\lib\site-packages\oss2_init_.py)
The above exception was the direct cause of the following exception:
File "D:\Code\modelscope-agent\modelscope_agent\storage\vector_storage.py", line 30, in init
self.embedding = embedding or ModelScopeEmbeddings(
File "D:\Code\modelscope-agent\modelscope_agent\memory\memory_with_retrieval_knowledge.py", line 31, in init
self.store_knowledge = KnowledgeVector(
File "D:\Code\modelscope-agent\main.py", line 20, in
memory = MemoryWithRetrievalKnowledge(storage_path=storage_path,
ImportError: Could not import some python packages.Please install it with
pip install modelscope
.Versions / Dependencies
无
Reproduction script
无
Issue Severity
None
The text was updated successfully, but these errors were encountered: