aboutsummaryrefslogtreecommitdiff
path: root/config
diff options
context:
space:
mode:
Diffstat (limited to 'config')
-rw-r--r--config/categorize-LLM.json10
1 files changed, 5 insertions, 5 deletions
diff --git a/config/categorize-LLM.json b/config/categorize-LLM.json
index fd488c8..80fb74e 100644
--- a/config/categorize-LLM.json
+++ b/config/categorize-LLM.json
@@ -1,23 +1,23 @@
{
"url": "http://127.0.0.1:11434/api/chat",
"model": "llama3.2",
- "system_prompt": "You are a categorizer. Your role is to categorize in which category the last message fit the most 'chat' for simple conversation with the LLM, 'code' for code completion or request about technical subject around programming, 'wikipedia' for research of factual information, don't create new categories",
+ "system_prompt": "You are a strict categorizer. You must classify the user's last message into exactly one of the following categories: 'chat', 'code', or 'wikipedia'. Do not invent new categories. If the message doesn't clearly fit one, choose the closest matching category. Output only one of the allowed values. Never generate or suggest any category outside: 'chat', 'code', 'wikipedia'",
"tools": [
{
"type": "function",
"function": {
"name": "categorize_message",
- "description": "Classify the last message into a category (chat, code, wikipedia)",
+ "description": "You are a strict categorizer. You must classify the user's last message into exactly one of the following categories: 'chat', 'code', or 'wikipedia'. Do not invent new categories. If the message doesn't clearly fit one, choose the closest matching category. Output only one of the allowed values. Never generate or suggest any category outside: 'chat', 'code', 'wikipedia",
"parameters": {
"type" : "object",
"properties": {
- "category": {
+ "category_choice": {
"type": "string",
- "description": "The category in which the message fit the most e.g. 'chat', 'code', 'wikipedia'",
+ "description": "The category in which the message fit the most e.g. 'chat', 'code', 'wikipedia' only, don't create new categories",
"enum": ["chat", "code", "wikipedia"]
}
},
- "required": ["category"]
+ "required": ["category_choice"]
}
}
}
ArKa projects. All rights to me, and your next child right arm.