[GH-ISSUE #3234] [BUG]: storeResultVector in massive arrays #2081

Closed
opened 2026-02-22 18:28:04 -05:00 by yindo · 4 comments
Owner

Originally created by @t2tx on GitHub (Feb 16, 2025).
Original GitHub issue: https://github.com/Mintplex-Labs/anything-llm/issues/3234

How are you running AnythingLLM?

Docker (local)

What happened?

failed with message:

error: addDocumentToNamespace Invalid string length

Are there known steps to reproduce?

Try to add a big csv file to document which 42M.

Chunks created from document: 296607

use ollama + bge-m3:latest

Originally created by @t2tx on GitHub (Feb 16, 2025). Original GitHub issue: https://github.com/Mintplex-Labs/anything-llm/issues/3234 ### How are you running AnythingLLM? Docker (local) ### What happened? failed with message: ``` error: addDocumentToNamespace Invalid string length ``` ### Are there known steps to reproduce? Try to add a big csv file to document which 42M. ``` Chunks created from document: 296607 ``` use ollama + bge-m3:latest
yindo added the possible bugneeds info / can't replicate labels 2026-02-22 18:28:04 -05:00
yindo closed this issue 2026-02-22 18:28:05 -05:00
Author
Owner

@timothycarambat commented on GitHub (Feb 16, 2025):

Invalid string length would be related to the issue of how long your embedder model can support in terms of tokens. What do you have set for the embedding model token length?

@timothycarambat commented on GitHub (Feb 16, 2025): Invalid string length would be related to the issue of how _long_ your embedder model can support in terms of tokens. What do you have set for the embedding model token length?
Author
Owner

@t2tx commented on GitHub (Feb 17, 2025):

The problem is here.

https://github.com/Mintplex-Labs/anything-llm/blob/4545ce24cdc1f53073b7350981f7f433d14b25ef/server/utils/files/index.js#L129

My array is too big, will try to make some workaround later. (split to multiple cache files if vector data array is too long?)

@t2tx commented on GitHub (Feb 17, 2025): The problem is here. https://github.com/Mintplex-Labs/anything-llm/blob/4545ce24cdc1f53073b7350981f7f433d14b25ef/server/utils/files/index.js#L129 My array is too big, will try to make some workaround later. (split to multiple cache files if vector data array is too long?)
Author
Owner

@timothycarambat commented on GitHub (Feb 17, 2025):

Since that is simply and I/O function - are you limited on disk space? That function should work fine as long as your system can handle it memory wise.

@timothycarambat commented on GitHub (Feb 17, 2025): Since that is simply and I/O function - are you limited on disk space? That function should work fine as long as your system can handle it memory wise.
Author
Owner

@timothycarambat commented on GitHub (Jul 10, 2025):

We have resolved this now

@timothycarambat commented on GitHub (Jul 10, 2025): We have resolved this now
yindo changed title from [BUG]: `storeResultVector` in massive arrays to [GH-ISSUE #3234] [BUG]: `storeResultVector` in massive arrays 2026-06-05 14:44:25 -04:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: Mintplex-Labs/anything-llm#2081