v1
latestOpenAPI 3.1.02026-08-045623.9 KBknowledge
Delete By Intent
Delete documents from the knowledge store based on intent similarity.
This endpoint:
- Takes an intent and tenant_id
- Searches for documents with similar intent using the default similarity threshold
- Deletes matching documents
- Returns the count of deleted documents
Args: tenant_id: The tenant identifier intent: The intent to match against similarity_threshold: Optional threshold for similarity matching
Returns: Dict containing: - deleted_count: Number of documents deleted - status: Operation status message
Raises: HTTPException: If deletion fails
post/delete_by_intent
Query parameters
tenant_idstring required
intentstring required
similarity_thresholdnumber nullable
Optional similarity threshold for matching documents
Optional similarity threshold for matching documents
Response
Successful Response
object required