detect_namespace
Classify any text prompt into one of five semantic namespaces (code, translation, summary, QA, creative) using lightweight text heuristics. Useful for predicting how cachly will process your prompt.
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 |