detect_namespace
Classify any text prompt into one of five semantic namespaces using fast text heuristics. Understand which namespace a prompt will be assigned to before processing.
Instructions
Classify a prompt into one of 5 semantic namespaces using text heuristics. Overhead: <0.1 ms, no embedding required. Useful to understand which namespace cachly will use for a given prompt. Returns one of: cachly:sem:code, cachly:sem:translation, cachly:sem:summary, cachly:sem:qa, cachly:sem:creative.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| prompt | Yes | The text prompt to classify into a semantic namespace |