[GH-ISSUE #720] [BUG]: Invalid char in Milvus collection name when slugified #414

Closed
opened 2026-02-22 18:19:22 -05:00 by yindo · 0 comments
Owner

Originally created by @FarVision2 on GitHub (Feb 14, 2024).
Original GitHub issue: https://github.com/Mintplex-Labs/anything-llm/issues/720

Originally assigned to: @timothycarambat on GitHub.

How are you running AnythingLLM?

Docker (local)

What happened?

Workspaces with spaces in the name will not be embedded into Milvus. The default behavior in the AnythingLLM embedding is to convert spaces into dashes, however, Milvus collections will not accept dashes into its vector DB. The workaround is to use underscores in the AnythingLLM workspace, or do not use spaces.

[INFO] Using Native Embedder
2024-02-14 12:42:55 [Embedded Chunk 1 of 3]
2024-02-14 12:42:55 [Embedded Chunk 2 of 3]
2024-02-14 12:42:56 [Embedded Chunk 3 of 3]
2024-02-14 12:42:56 addDocumentToNamespace ErrorCode: IllegalArgument. Reason: Invalid collection name: florida-voting-guide. collection name can only contain numbers, letters and underscores: invalid parameter
2024-02-14 12:42:56 Failed to vectorize voterregvotingguide-eng-2024-election-cycle-20230120-final.pdf

Are there known steps to reproduce?

Easily reproducible with any AnythingLLM workspace with spaces in the name vectorizing into Milvus

Originally created by @FarVision2 on GitHub (Feb 14, 2024). Original GitHub issue: https://github.com/Mintplex-Labs/anything-llm/issues/720 Originally assigned to: @timothycarambat on GitHub. ### How are you running AnythingLLM? Docker (local) ### What happened? Workspaces with spaces in the name will not be embedded into Milvus. The default behavior in the AnythingLLM embedding is to convert spaces into dashes, however, Milvus collections will not accept dashes into its vector DB. The workaround is to use underscores in the AnythingLLM workspace, or do not use spaces. _[INFO] Using Native Embedder 2024-02-14 12:42:55 [Embedded Chunk 1 of 3] 2024-02-14 12:42:55 [Embedded Chunk 2 of 3] 2024-02-14 12:42:56 [Embedded Chunk 3 of 3] 2024-02-14 12:42:56 addDocumentToNamespace ErrorCode: IllegalArgument. Reason: Invalid collection name: florida-voting-guide. collection name can only contain numbers, letters and underscores: invalid parameter 2024-02-14 12:42:56 Failed to vectorize voterregvotingguide-eng-2024-election-cycle-20230120-final.pdf_ ### Are there known steps to reproduce? Easily reproducible with any AnythingLLM workspace with spaces in the name vectorizing into Milvus
yindo added the bug label 2026-02-22 18:19:22 -05:00
yindo closed this issue 2026-02-22 18:19:22 -05:00
yindo changed title from [BUG]: Invalid char in Milvus collection name when slugified to [GH-ISSUE #720] [BUG]: Invalid char in Milvus collection name when slugified 2026-06-05 14:35:11 -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#414