AI Assistance
Suggest Extraction Strategy
Determine the optimal extraction strategy for a tag based on its name and description.
Returns either ‘LLM’ (AI-based extraction) or ‘REGEX’ (pattern-based extraction).
When to use each strategy
REGEX - Use when:
- Values have consistent, predictable formatting (dates, IDs, phone numbers, emails)
- Known exact patterns that repeat predictably
- Structured data with fixed delimiters or formats
LLM - Use when:
- Semantic understanding is required
- Values depend on interpreting content, not matching formats
- Classifications, categorizations, sentiment, summaries
Request Body
| Field | Type | Description |
|---|---|---|
tag_name | str | The name of the tag |
tag_description | str | Description of what the tag captures |
available_values | List[str] | Optional. Example values to help determine strategy |
Response
- 200: Strategy recommendation returned successfully
- Returns:
{ "strategy": "LLM" }or{ "strategy": "REGEX" }
- Returns:
- 500: Internal Server Error
POST
Python
Authorizations
Basic authentication header of the form Basic <encoded-value>, where <encoded-value> is the base64-encoded string username:password.
Body
application/json
Response
Successful Response
Response model for tag extraction strategy recommendation.
