anythingllm_update_embeddings
Embed or un-embed documents in a workspace for RAG queries. Add document paths to vectorize content, or remove them from the workspace without deleting from storage.
Instructions
Embed or un-embed documents in a workspace (equivalent to "Save and Embed" in the UI).
This is the final step after uploading documents to AnythingLLM storage. Typical workflow:
Upload a file -> upload_file / upload_file_to_folder / upload_link / upload_raw_text
List documents -> list_documents / list_documents_in_folder (get the doc paths)
Embed into workspace -> THIS TOOL with 'adds' containing the doc paths from step 2
Once embedded, the document's content is vectorized and available for RAG queries in the workspace. Removing (via 'deletes') un-embeds the document from the workspace but does NOT delete it from storage.
Args: slug: Workspace slug where documents will be embedded. adds: Document paths to embed, as returned by list_documents (e.g. ['custom-documents/Pine Script/file.pine-abc123.json']). deletes: Document paths to un-embed (remove from workspace only, the file remains in AnythingLLM storage).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| adds | No | ||
| slug | Yes | ||
| deletes | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |