Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

when use chroma, wrapper has not been initialized #1833

Open
Justin-sky opened this issue Sep 8, 2024 · 2 comments
Open

when use chroma, wrapper has not been initialized #1833

Justin-sky opened this issue Sep 8, 2024 · 2 comments
Labels
bug Something isn't working

Comments

@Justin-sky
Copy link

🐛 Describe the bug

my code is this:

import os

from mem0 import Memory

config = {
    "vector_store": {
        "provider": "chroma",
        "config": {
            "collection_name": "justin",
            "path": "db",
        },
    },
    "llm": {
        "provider": "ollama",
        "config": {
            "model": "rolandroland/llama3.1-uncensored",
            "temperature": 0.3,
            "max_tokens": 8000,
            "ollama_base_url": "http://127.0.0.1:11434",  # Ensure this URL is correct
        },
    },
    "embedder": {
        "provider": "ollama",
        "config": {
            "model": "nomic-embed-text:latest",
            # Alternatively, you can use "snowflake-arctic-embed:latest"
            "ollama_base_url": "http://localhost:11434",
        },
    }
}

m = Memory.from_config(config)

mid = m.add("I like pizza", user_id="alice")
search = m.search("pizza", user_id="alice")
print(search)

r = m.get_all(user_id="alice")
print(r)

and i break at chroma.py, the exception raise:
image

@Justin-sky
Copy link
Author

chromadb: 0.5.5, memo: 0.1.11, ollama: 0.3.2

@Dev-Khant Dev-Khant added the bug Something isn't working label Sep 15, 2024
@parshvadaftari
Copy link
Contributor

parshvadaftari commented Sep 15, 2024

@Justin-sky Can you please elaborate what is the issue you're facing? I'm running the code and it works fine right now on the described versions.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants