Flowise icon indicating copy to clipboard operation
Flowise copied to clipboard

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

Open saviorand opened this issue 1 year ago • 22 comments

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

saviorand avatar Apr 28 '23 17:04 saviorand

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

HenryHengZJ avatar Apr 28 '23 22:04 HenryHengZJ

Running into same issue, Chroma already running at port 8000

kayue avatar Apr 29 '23 17:04 kayue

@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

chungyau97 avatar Apr 30 '23 13:04 chungyau97

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

saviorand avatar Apr 30 '23 15:04 saviorand

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 avatar May 02 '23 06:05 chungyau97

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

chungyau97 avatar May 02 '23 16:05 chungyau97

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

saviorand avatar May 05 '23 14:05 saviorand

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?

Dojimanoryyu avatar May 14 '23 06:05 Dojimanoryyu

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 ?

HenryHengZJ avatar May 15 '23 00:05 HenryHengZJ

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.

Dojimanoryyu avatar May 15 '23 06:05 Dojimanoryyu

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.

sknightq avatar May 19 '23 08:05 sknightq

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

alexk1919 avatar May 23 '23 21:05 alexk1919

you can add a url to Chroma node - https://github.com/FlowiseAI/Flowise/pull/151

HenryHengZJ avatar May 23 '23 22:05 HenryHengZJ

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

alexk1919 avatar May 23 '23 22:05 alexk1919

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

saviorand avatar May 25 '23 19:05 saviorand

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.

ill-yes avatar Jun 05 '23 15:06 ill-yes

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

pavanjava avatar Jun 09 '23 12:06 pavanjava

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

chungyau97 avatar Jun 13 '23 14:06 chungyau97

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

aghasaadmohammad avatar Oct 12 '23 12:10 aghasaadmohammad

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 :)

Enophi avatar Dec 11 '23 17:12 Enophi

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

webconsulting avatar Mar 06 '24 12:03 webconsulting

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

youtubeflowise

AlmaAROM avatar Jul 28 '24 06:07 AlmaAROM