[GH-ISSUE #5271] [BUG]: Document uploaded via API is embedded but not added to Workspace #4995

Closed
opened 2026-06-05 14:51:23 -04:00 by yindo · 2 comments
Owner

Originally created by @B4ndre4 on GitHub (Mar 26, 2026).
Original GitHub issue: https://github.com/Mintplex-Labs/anything-llm/issues/5271

How are you running AnythingLLM?

AnythingLLM desktop app

What happened?

Hi,
AnythingLLM desktop app (v1.11.2) on Windows 11 here. When uploading a document through the /v1/document/upload API endpoint, the file is correctly uploaded and embedded (vector count increases), but the document is not actually added to the Workspace. The file appears in the custom-documents folder in the GUI, but does not show up in the Workspace’s document list below. An API call to /v1/workspace/{slug} confirms the documents array is empty:

curl -X 'GET'
'http://localhost:3001/api/v1/workspace/test'
-H 'accept: application/json'
-H 'Authorization: Bearer xxxxxxx-xxxxxxx-xxxxxxx-xxxxxxx'

Response:

{
"workspace": [
{
"id": 16,
"name": "test",
"slug": "test",
"vectorTag": null,
"createdAt": "2026-03-26T10:09:06.439Z",
"openAiTemp": null,
"openAiHistory": 20,
"lastUpdatedAt": "2026-03-26T10:09:06.439Z",
"openAiPrompt": "Given the following conversation, relevant context, and a follow up question, reply with an answer to the current question the user is asking. Return only your response to the question given the above information following the users instructions as needed.",
"similarityThreshold": 0.25,
"chatProvider": "ollama",
"chatModel": "qwen3.5:0.8b",
"topN": 4,
"chatMode": "chat",
"pfpFilename": null,
"agentProvider": null,
"agentModel": null,
"queryRefusalResponse": null,
"vectorSearchMode": "default",
"documents": [],
"threads": []
}
]
}

An error is present in the backend log (attached).

upload_backend-2026-03-26.log
upload_collector-2026-03-26.log

The problem is not present with AnythingLLM Desktop (Appimage format) v1.11.2 on Linux.

Are there known steps to reproduce?

Open AnythingLLM Desktop application
Navigate to “Developer API” menu to access the API interface
Use the /v1/document/upload endpoint to upload a file to a Workspace
Check the GUI for upload documents: the file appears in custom-documents folder and not below in the Workspace
Check the Workspace: vector counter has increased

Originally created by @B4ndre4 on GitHub (Mar 26, 2026). Original GitHub issue: https://github.com/Mintplex-Labs/anything-llm/issues/5271 ### How are you running AnythingLLM? AnythingLLM desktop app ### What happened? Hi, AnythingLLM desktop app (v1.11.2) on Windows 11 here. When uploading a document through the /v1/document/upload API endpoint, the file is correctly uploaded and embedded (vector count increases), but the document is not actually added to the Workspace. The file appears in the custom-documents folder in the GUI, but does not show up in the Workspace’s document list below. An API call to /v1/workspace/{slug} confirms the documents array is empty: curl -X 'GET' \ 'http://localhost:3001/api/v1/workspace/test' \ -H 'accept: application/json' \ -H 'Authorization: Bearer xxxxxxx-xxxxxxx-xxxxxxx-xxxxxxx' Response: { "workspace": [ { "id": 16, "name": "test", "slug": "test", "vectorTag": null, "createdAt": "2026-03-26T10:09:06.439Z", "openAiTemp": null, "openAiHistory": 20, "lastUpdatedAt": "2026-03-26T10:09:06.439Z", "openAiPrompt": "Given the following conversation, relevant context, and a follow up question, reply with an answer to the current question the user is asking. Return only your response to the question given the above information following the users instructions as needed.", "similarityThreshold": 0.25, "chatProvider": "ollama", "chatModel": "qwen3.5:0.8b", "topN": 4, "chatMode": "chat", "pfpFilename": null, "agentProvider": null, "agentModel": null, "queryRefusalResponse": null, "vectorSearchMode": "default", "documents": [], "threads": [] } ] } An error is present in the backend log (attached). [upload_backend-2026-03-26.log](https://github.com/user-attachments/files/26273637/upload_backend-2026-03-26.log) [upload_collector-2026-03-26.log](https://github.com/user-attachments/files/26273638/upload_collector-2026-03-26.log) The problem is not present with AnythingLLM Desktop (Appimage format) v1.11.2 on Linux. ### Are there known steps to reproduce? Open AnythingLLM Desktop application Navigate to “Developer API” menu to access the API interface Use the /v1/document/upload endpoint to upload a file to a Workspace Check the GUI for upload documents: the file appears in custom-documents folder and not below in the Workspace Check the Workspace: vector counter has increased
yindo added the possible bug label 2026-06-05 14:51:23 -04:00
yindo closed this issue 2026-06-05 14:51:23 -04:00
Author
Owner

@timothycarambat commented on GitHub (Mar 26, 2026):

On the page you got the API key from in the UI you can click a blue Read the API documentation → link.

Open the endpoint
Image

You will want to use addToWorkspaces

{
// other props
addToWorkspaces: "workspace1,workspace2,workspaceXyz"
}
<!-- gh-comment-id:4138119486 --> @timothycarambat commented on GitHub (Mar 26, 2026): On the page you got the API key from in the UI you can click a blue `Read the API documentation →` link. Open the endpoint <img width="1457" height="595" alt="Image" src="https://github.com/user-attachments/assets/73865252-7a05-4b8f-8fa8-96bc09779445" /> You will want to use `addToWorkspaces` ```json5 { // other props addToWorkspaces: "workspace1,workspace2,workspaceXyz" } ```
Author
Owner

@B4ndre4 commented on GitHub (Mar 27, 2026):

I've used addToWorkspaces as follows:

Image

The result is:

Image Image Image

But the vector count of testworkbench increased from 0 to 66.

Thanks.

<!-- gh-comment-id:4141008118 --> @B4ndre4 commented on GitHub (Mar 27, 2026): I've used addToWorkspaces as follows: <img width="935" height="939" alt="Image" src="https://github.com/user-attachments/assets/b165e91d-60f6-421b-a5a9-ce02fbe2f199" /> The result is: <img width="597" height="338" alt="Image" src="https://github.com/user-attachments/assets/1e871f47-642d-4c84-a9e0-3b00cefcb7da" /> <img width="620" height="473" alt="Image" src="https://github.com/user-attachments/assets/ace9aa2f-da1e-48f3-9bee-9f8445edde38" /> <img width="902" height="861" alt="Image" src="https://github.com/user-attachments/assets/cc93be6b-5c1d-4076-b9a7-7b7d8d6a0803" /> But the vector count of testworkbench increased from 0 to 66. Thanks.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: Mintplex-Labs/anything-llm#4995