Flowise icon indicating copy to clipboard operation
Flowise copied to clipboard

[BUG] Upsert - Error: vectorsService.upsertVector - Error: TypeError: Cannot read properties of undefined (reading '0')

Open ApplicationError opened this issue 1 year ago • 6 comments

Describe the bug Error: vectorsService.upsertVector - Error: TypeError: Cannot read properties of undefined (reading '0')

I've setup a new Flowise project with the following components & configuration:

Conversational Retrieval QA Chain

  • Chat Model -- GroqChat (Model Name: llama-3.1-405b-reasoning)
  • Vector Store Retriever -- Pinecone --- Embeddings ---- VoyageAI Embeddings (Model name: voyage-2) --- Document ---- Pdf File (.pdf file) ---- File Loader (.txt file) --- Text Splitter (Chuck Size: 1000, Chunk Coverlap: 200)

Check I go to "upsert" the data to Pinecone I get that error message. Error: vectorsService.upsertVector - Error: TypeError: Cannot read properties of undefined (reading '0')

To Reproduce Steps to reproduce the behavior:

1.) Setup as outlined above 2.) Save project 3.) Click on green "upsert" icon 4.) Click on green "upsert" button

Expected behavior The data from the PDF and the TXT file to be stored in the Pinecone vector store.

Setup

  • Installation: Render / Docker
  • Flowise Version: 2.0.7

Render.com Logs

error 2024-08-29 19:57:30 [ERROR]: TypeError: Cannot read properties of undefined (reading '0') error Error: TypeError: Cannot read properties of undefined (reading '0') info at Pinecone_VectorStores.upsert (/usr/src/packages/components/dist/nodes/vectorstores/Pinecone/Pinecone.js:80:27) info at process.processTicksAndRejections (node:internal/process/task_queues:95:5) info at async buildFlow (/usr/src/packages/server/dist/utils/index.js:415:37) info at async upsertVector (/usr/src/packages/server/dist/utils/upsertVector.js:126:32) info at async Object.upsertVectorMiddleware (/usr/src/packages/server/dist/services/vectors/index.js:9:16) info at async createInternalUpsert (/usr/src/packages/server/dist/controllers/vectors/index.js:28:29) error 2024-08-29 19:57:30 [ERROR]: [server]: Error: Error: TypeError: Cannot read properties of undefined (reading '0') error Error: Error: TypeError: Cannot read properties of undefined (reading '0') info at buildFlow (/usr/src/packages/server/dist/utils/index.js:493:19) info at process.processTicksAndRejections (node:internal/process/task_queues:95:5) info at async upsertVector (/usr/src/packages/server/dist/utils/upsertVector.js:126:32) info at async Object.upsertVectorMiddleware (/usr/src/packages/server/dist/services/vectors/index.js:9:16) info at async createInternalUpsert (/usr/src/packages/server/dist/controllers/vectors/index.js:28:29)

2024-08-29 at 4 14 PM

ApplicationError avatar Aug 29 '24 20:08 ApplicationError

If you switch to other embeddings model it should works. Seen this issue with voyage embeddings, mostly due to the rate limit

HenryHengZJ avatar Aug 29 '24 21:08 HenryHengZJ

If you switch to other embeddings model it should works. Seen this issue with voyage embeddings, mostly due to the rate limit

Thank you very much for the reply. Do you have any recommendations for embedding models that would work best?

ApplicationError avatar Aug 29 '24 21:08 ApplicationError

I have a similar issue, Im not sure what embedding to use with groq if VoyageAI isnt working the best

Vortigern-source avatar Sep 04 '24 11:09 Vortigern-source

What embeddings can be used that are free? Also are you saying that reducing the rate limit option should fix it?

Vortigern-source avatar Sep 05 '24 15:09 Vortigern-source

If you switch to other embeddings model it should works. Seen this issue with voyage embeddings, mostly due to the rate limit

I have a similar setup (except using in-memory vector store) and the exact same error message.

I changed to OpenAI embeddings and it didn't fix the issue, still getting the same error message

jockharkness avatar Sep 10 '24 00:09 jockharkness

Same issue here. I changed to OpenAI embeddings and it didn't fix the issue, still getting the same error message

abslearn avatar Sep 18 '24 08:09 abslearn

Same problem as everyone else. Sure hope it gets fixed. Starting to have too many problems with Flowise, something I used to really like.

Update: OpenAI Embeddings was successful for me.

ZellW avatar Nov 13 '24 21:11 ZellW

Ollama embeddings nomic-embed-text worked for me

harnalashok avatar Feb 21 '25 13:02 harnalashok