chroma-core / chroma

the AI-native open-source embedding database
https://www.trychroma.com/
Apache License 2.0
15.66k stars 1.31k forks source link

[Install issue]: chroma not working on windows localhost (anaconda) #2863

Open neerajg5 opened 2 months ago

neerajg5 commented 2 months ago

What happened?

chroma not working on windows localhost (anaconda) I've been trying to run chroma via Anaconda navigator Python. anaconda version is 3 and python is 3.11 While trying to add data in chroma collection, the kernel is restarting repeatedly. So, I'm not able to add the data in to a chroma collection. I'm able to generate embeddings using the default model mentioned in chroma documentation.

I'm not able to figure out the issue causing this behaviour (i.e. not able to add data)

Kindly help.

OS : Windows 11 System configuration :

Code snippet from documentation:

import chromadb
chroma_client = chromadb.Client()
collection = chroma_client.get_or_create_collection(name="my_collection")

collection.upsert(
    documents=[
        "This is a document about pineapple",
        "This is a document about oranges"
    ],
    ids=["id1", "id2"]
)

results = collection.query(
    query_texts=["This is a query document about florida"], # Chroma will embed this for you
    n_results=2 # how many results to return
)

print(results)

the error is image

screenshot of the embeddings generated successfully (in a separate program) from the default model (mentioned in the chroma documentation) is given below: image

Thanks.

Versions

Python 3.11.7 OS - Windows 11 Chroma 0.5.7 image image

Relevant log output

No response

Kviilen commented 2 months ago

I think you can refer to the issues I raised. https://github.com/chroma-core/chroma/issues/2856