v1

latestOpenAPI 3.1.02026-08-045623.9 KB
knowledge

Delete By Intent

Delete documents from the knowledge store based on intent similarity.

This endpoint:

  1. Takes an intent and tenant_id
  2. Searches for documents with similar intent using the default similarity threshold
  3. Deletes matching documents
  4. 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