The /delete_by_intent endpoint allows you to remove knowledge entries that match a specific intent.
Base URL
Authentication
Query Parameters
The intent to match against
Optional similarity threshold for matching documents
Example Requests
Response
Success Response
Number of documents deleted
Example success response:
Error Response
Array of validation errors
Example error response:
Status Codes
Best Practices
-
Similarity Threshold
- Start with the default threshold of 0.5
- Increase for more precise matching
- Decrease for broader matching
- Test with small deletions first
-
Intent Formatting
- Use clear, specific intents
- Keep intents concise