这是indexloc提供的服务,不要输入任何密码
Skip to content

[BUG]: Can not save & embed files in workspace with name containing "+" #1877

@paul-sonnenschein

Description

@paul-sonnenschein

How are you running AnythingLLM?

Docker (remote machine)

What happened?

AnythingLLM is setup using Docker compose, using a LocalAI LLM backend, LanceDB vector database and the built-in embedder.

Creating a new workspace containing the letter "+" works without any error. However attempting to "Save & Embed" an uploaded file results in an error message instead of a successful embedding. Attempting to embed in a workspace not containing the letter "+" reports success.

Expected behavior:

Either the workspace creating fails with a suitable error message indicating the unsupported character or a supported table name is selected automatically.

Error message + Log output:

Error message:

Invalid table name ("test+test"): Table names can only contain alphanumeric characters, underscores, hyphens, and periods

Log excerpt:

[backend] info: Adding new vectorized document into namespace
[backend] info: Cached vectorized results of custom-documents/Not-emtpy.txt-f6ee5465-6e12-44b3-9309-466ab7b39d5e.json found! Using cached data to save on embed costs.
[backend] error: addDocumentToNamespace
[backend] error: Failed to vectorize
[backend] info: [Event Logged] - workspace_documents_added

Are there known steps to reproduce?

  1. Setup AnythingLLM
  2. Create a workspace with an appropiate name, e.g. "Test+Test".
  3. Upload a non-empty file.
  4. Select "Move to workspace"
  5. Press Save and Embed

Metadata

Metadata

Labels

investigatingCore team or maintainer will or is currently looking into this issuepossible bugBug was reported but is not confirmed or is unable to be replicated.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions