[GH-ISSUE #3932] [DOCS]: No mention of how Attatchments work within the Workspace Thread chat. #2505

Closed
opened 2026-02-22 18:29:58 -05:00 by yindo · 3 comments
Owner

Originally created by @digitalassassins on GitHub (Jun 2, 2025).
Original GitHub issue: https://github.com/Mintplex-Labs/anything-llm/issues/3932

Description

Ive searched GitHub and checked the code for where attachments are ingested into the chat.
Checked the chat history in Discord and all the guides, including the API documentation.

It doesn't state clearly what the attachment is for?
Is it just to send images to the Chat, or is it also an auto-upload for documents?

I'm trying to write a plugin to integrate with Anything LLM and OpenWebUI.

Open Web UI allows to set a file:// as an attachment in the payload for the chat, is it the same with Anything LLM or do we need to do it in steps, e.g. upload a file to the workspace, then update the embeddings before we start the chat on the document. Or can we add the file either as Base64 or as a file:// URL of the document on the local machine file system.

Is this to chat with a single temporary document that isn't added to the workspace?
Because the plugin I'm designing only needs to chat to a document temporarily.
If it's in steps e.g upload, embed, chat, delete document delete thread that's fine,
Just don't want to place 5 API requests if it can be done in one API call.

It isn't very clear?
If we can embed the document into the API request in one submission, this would be the most efficient.

Any help would be appreciated.

Cheers

Originally created by @digitalassassins on GitHub (Jun 2, 2025). Original GitHub issue: https://github.com/Mintplex-Labs/anything-llm/issues/3932 ### Description Ive searched GitHub and checked the code for where attachments are ingested into the chat. Checked the chat history in Discord and all the guides, including the API documentation. It doesn't state clearly what the attachment is for? Is it just to send images to the Chat, or is it also an auto-upload for documents? I'm trying to write a plugin to integrate with Anything LLM and OpenWebUI. Open Web UI allows to set a file:// as an attachment in the payload for the chat, is it the same with Anything LLM or do we need to do it in steps, e.g. upload a file to the workspace, then update the embeddings before we start the chat on the document. Or can we add the file either as Base64 or as a file:// URL of the document on the local machine file system. Is this to chat with a single temporary document that isn't added to the workspace? Because the plugin I'm designing only needs to chat to a document temporarily. If it's in steps e.g upload, embed, chat, delete document delete thread that's fine, Just don't want to place 5 API requests if it can be done in one API call. It isn't very clear? If we can embed the document into the API request in one submission, this would be the most efficient. Any help would be appreciated. Cheers
yindo added the documentation label 2026-02-22 18:29:58 -05:00
yindo closed this issue 2026-02-22 18:29:58 -05:00
Author
Owner

@digitalassassins commented on GitHub (Jun 2, 2025):

I worked it out; uploading a PDF via attachment does nothing.

@digitalassassins commented on GitHub (Jun 2, 2025): I worked it out; uploading a PDF via attachment does nothing.
Author
Owner

@shatfield4 commented on GitHub (Jun 2, 2025):

Unfortunately the way the attachments work in their current state is they are only used for uploading images temporarily to a chat. In order to chat temporarily you will need to upload, embed, chat, then delete the document when you are done to make this work properly.

@shatfield4 commented on GitHub (Jun 2, 2025): Unfortunately the way the attachments work in their current state is they are only used for uploading images temporarily to a chat. In order to chat temporarily you will need to upload, embed, chat, then delete the document when you are done to make this work properly.
Author
Owner

@digitalassassins commented on GitHub (Jun 2, 2025):

Yeah already done that once I realised the one liner wasn't possible. Wasn't sure if their was a shortcut as some of the other upload features in the API ect have shortcuts.

Got it working and tested and everything seems fine so far..

Might be worth adding that to the documentation to make it a bit clearer for others using the API.

Thanks for the reply..

@digitalassassins commented on GitHub (Jun 2, 2025): Yeah already done that once I realised the one liner wasn't possible. Wasn't sure if their was a shortcut as some of the other upload features in the API ect have shortcuts. Got it working and tested and everything seems fine so far.. Might be worth adding that to the documentation to make it a bit clearer for others using the API. Thanks for the reply..
yindo changed title from [DOCS]: No mention of how Attatchments work within the Workspace Thread chat. to [GH-ISSUE #3932] [DOCS]: No mention of how Attatchments work within the Workspace Thread chat. 2026-06-05 14:46:56 -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#2505