FlowiseAI / Flowise

Drag & drop UI to build your customized LLM flow
https://flowiseai.com
Apache License 2.0
30.28k stars 15.65k forks source link

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

Closed saviorand closed 1 week ago

saviorand commented 1 year ago

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

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

HenryHengZJ commented 1 year ago

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 commented 1 year ago

Running into same issue, Chroma already running at port 8000

chungyau97 commented 1 year ago

@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 commented 1 year ago

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 commented 1 year ago

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 commented 1 year ago

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 commented 1 year ago

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

Dojimanoryyu commented 1 year ago

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 commented 1 year ago

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 commented 1 year ago

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 commented 1 year ago

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.

alexk1919 commented 1 year ago

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

HenryHengZJ commented 1 year ago

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

alexk1919 commented 1 year ago

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

saviorand commented 1 year ago

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 commented 1 year ago

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 commented 1 year ago

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 commented 1 year ago

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 commented 11 months ago

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

Enophi commented 9 months ago

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 commented 7 months ago

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 commented 2 months ago

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

youtubeflowise

HenryHengZJ commented 1 week ago

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