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

[BUG] Cannot read properties of undefined (reading 'data') with Chroma VectorStore #40

Closed
saviorand opened this issue Apr 28, 2023 · 23 comments
Labels
bug Something isn't working

Comments

@saviorand
Copy link

Describe the bug
Getting Cannot read properties of undefined (reading 'data') error when using the Chroma Vector Store in any combination, e.g. in AutoGPT

To Reproduce
Steps to reproduce the behavior:

  1. Use one of the marketplace examples or build a chatflow with Chroma
  2. Try running the flow
  3. Error is thrown

Setup

  • OS: MacOS, M1 chip

Are there any additional steps required to set up Chroma with Flowise? Not quite sure based on the onboarding

@HenryHengZJ
Copy link
Contributor

Have you got Chroma running locally?

If not you'll have to clone the Chroma repo: git clone https://github.com/chroma-core/chroma.git
And start its docker container: docker-compose up -d --build

https://docs.trychroma.com/api-reference?lang=js

@kayue
Copy link

kayue commented Apr 29, 2023

Running into same issue, Chroma already running at port 8000

@chungyau97
Copy link
Contributor

@kayue are using mac os or linux?
@saviorand could you check whether the docker image is running?
image

I could run it as shown below
image

@saviorand
Copy link
Author

The chroma container is running and I can reach Chroma on port 8000, but having the same issue... My flow is on the screenshot:
image

@chungyau97
Copy link
Contributor

The chroma container is running and I can reach Chroma on port 8000, but having the same issue... My flow is on the screenshot: image

I believe is not an error from Chroma, I will create a similar flow as you to investigate further.

@chungyau97
Copy link
Contributor

chungyau97 commented May 2, 2023

I'm able to run the same flow as you without encountering error.
image

@saviorand did you upsert your document into chroma?
If you have not upsert any document into Chroma, based on below screenshot could you give this flow a try ?
image

@saviorand
Copy link
Author

I did not upsert anything to Chroma, maybe that's why! Let me try it out

@Dojimanoryyu
Copy link

hi, i have similar problem, i did upsert docs into chroma and already start chroma docker container, but i cant see any ingestion progresss whatsoever and chat test will return error "Error: Request failed with status code 400". Any idea?

@HenryHengZJ
Copy link
Contributor

We've identified a bug where if you run both Flowise and Chroma on docker, it will not work.

Are you guys running Flowise on docker? @kayue @Dojimanoryyu @saviorand ?

@Dojimanoryyu
Copy link

im running flowise via npx flowise start, it is chroma db that use docker. Also, i don't know how to check ingestion in chroma docker progress since it's not stated in the terminal. For the pinecone one I can check via pinecone consol.

@sknightq
Copy link

sknightq commented May 19, 2023

I'm running Chroma locally, but there is a bug in Chroma.
This is the description of bug
In my case, I upgrade the langchain to 0.084 and chromadb to 1.5.0 to fix.

@HenryHengZJ HenryHengZJ added the bug Something isn't working label May 23, 2023
@alexk1919
Copy link

Hi, can I use a hosted Chroma instance or does it have to be local?

@HenryHengZJ
Copy link
Contributor

you can add a url to Chroma node - #151

@alexk1919
Copy link

Thank you... I see where I can make those modifications.

@saviorand
Copy link
Author

We've identified a bug where if you run both Flowise and Chroma on docker, it will not work.

Are you guys running Flowise on docker? @kayue @Dojimanoryyu @saviorand ?

Yes I run on Docker

@ill-yes
Copy link
Contributor

ill-yes commented Jun 5, 2023

I'm running Chroma locally, but there is a bug in Chroma. This is the description of bug In my case, I upgrade the langchain to 0.084 and chromadb to 1.5.0 to fix.

Lifting to chromadb 1.5.0 didnt fix the issue for me. Running it locally.

@pavanjava
Copy link

I am facing the same issue my "chromadb" is running in docker and ran the flowise as "npx flowise start", unable to figure out what could be the issue.
Screenshot 2023-06-09 at 5 48 26 PM

@chungyau97
Copy link
Contributor

I am facing the same issue my "chromadb" is running in docker and ran the flowise as "npx flowise start", unable to figure out what could be the issue. Screenshot 2023-06-09 at 5 48 26 PM

Try update flowise with npm install -g flowise then rebuild your flow
Results:
image

@aghasaadmohammad
Copy link

i am running flowise on local and I am running chroma db on docker but i get this error
image

@Enophi
Copy link

Enophi commented Dec 11, 2023

i am running flowise on local and I am running chroma db on docker but i get this error image

Hi! Just remove the trailing slash :)

@webconsulting
Copy link

webconsulting commented Mar 6, 2024

Hi everyone, I had the same problem because I am embedding documents with openai integration into a chroma collection and using the same collection with local embedding.
When you use a new collection only for local integration, everything is fine!
I hope this'll be helpful

@AlmaAROM
Copy link

Hi! anyone can help me?
Cannot read properties of undefined (reading 'length') let me know

youtubeflowise

@HenryHengZJ
Copy link
Contributor

Hi! anyone can help me? Cannot read properties of undefined (reading 'length') let me know

youtubeflowise

this is not related specifically to Chroma right?

For Chroma issue, seems like its resolved with correct setup. Closing

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