[GH-ISSUE #3442] How to set Document similarity threshold by api? #2223

Closed
opened 2026-02-22 18:28:43 -05:00 by yindo · 2 comments
Owner

Originally created by @YaosenH on GitHub (Mar 11, 2025).
Original GitHub issue: https://github.com/Mintplex-Labs/anything-llm/issues/3442

Originally created by @YaosenH on GitHub (Mar 11, 2025). Original GitHub issue: https://github.com/Mintplex-Labs/anything-llm/issues/3442
yindo closed this issue 2026-02-22 18:28:43 -05:00
Author
Owner

@YaosenH commented on GitHub (Mar 11, 2025):

I try to create a new workspace, but I dont konw hot to set Vector Database's "Document similarity threshold"

@YaosenH commented on GitHub (Mar 11, 2025): I try to create a new workspace, but I dont konw hot to set Vector Database's "Document similarity threshold"
Author
Owner

@shatfield4 commented on GitHub (Mar 11, 2025):

You can use the endpoint /v1/workspace/new to set this and just add the "similarityThreshold": 0.25 in the JSON body to change it via the API.

You can also update an existing workspace's similarityThreshold by adding the same field to the JSON body on the /v1/workspace/{slug}/update endpoint.

@shatfield4 commented on GitHub (Mar 11, 2025): You can use the endpoint `/v1/workspace/new` to set this and just add the `"similarityThreshold": 0.25` in the JSON body to change it via the API. You can also update an existing workspace's similarityThreshold by adding the same field to the JSON body on the `/v1/workspace/{slug}/update` endpoint.
yindo changed title from How to set Document similarity threshold by api? to [GH-ISSUE #3442] How to set Document similarity threshold by api? 2026-06-05 14:45:16 -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#2223