detect_namespace
Classify any text prompt into one of five semantic categories (code, translation, summary, Q&A, creative) using lightweight heuristics. Understand which namespace will be applied.
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 |