Sovereign AI Ecosystem

ai_core/prompts.py [chapter] deterministic

CLASSIFIER_SYSTEM_PROMPT = """ You are a classifier. Given a message, decide which category it belongs to. Categories: support, general, technical. Return a JSON object with a single key "category".

CLASSIFIER_SYSTEM_PROMPT = """ You are a classifier. Given a message, decide which category it belongs to. Categories: support, general, technical. Return a JSON object with a single key "category". """

`

Next, we create a service that calls a local classifier. For demonstration we will simulate the classifier with a simple rule‑based function, but in production you would load a small model (e.g., a fine‑tuned DistilBERT) or call a local LLM with the prompt.

```python

Sources

Sovereign AI: Building Local-First Intelligent Systems (book) · source

Related (0)

No recorded relationships.

← all Book