Sovereign AI Ecosystem

Map categories to personas [chapter] deterministic

category_to_persona = { "in-scope": "technical_writer", "out-of-scope": "general_assistant", "unsafe": "safety_bot" } return category_to_persona.get(category, "default") def generate(self, user_input:

category_to_persona = { "in-scope": "technical_writer", "out-of-scope": "general_assistant", "unsafe": "safety_bot" } return category_to_persona.get(category, "default") def generate(self, user_input: str) -> str: category = self.classify(user_input) persona_key = self.select_persona(category) persona = self.personas[persona_key]

Sources

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

Related (0)

No recorded relationships.

← all Book