mem0 icon indicating copy to clipboard operation
mem0 copied to clipboard

ModuleNotFoundError: No module named 'embedding'

Open berchan opened this issue 1 year ago • 1 comments

🐛 Describe the bug

Have a proplem in my example: File "/Users/berchan/.pyenv/versions/3.10.0/lib/python3.10/site-packages/mem0/embeddings/ollama.py", line 2, in from embedding.base import EmbeddingBase ModuleNotFoundError: No module named 'embedding'

Comparing the import way in the openai.py, as follows: from mem0.embeddings.base import EmbeddingBase

My Code: config = { "embedder": { "provider": "ollama", "config": { "base_url":"http://127.0.0.1:11434", "model":"nomic-embed-text" } } } memory = Memory.from_config(config) app_id = "PersonalAITutor" memory.add(question, user_id=user_id, metadata={"app_id": app_id})

berchan avatar Jul 23 '24 06:07 berchan

Hey @berchan ! I have fixed the issue in #1548

kmitul avatar Jul 23 '24 09:07 kmitul