aboutsummaryrefslogtreecommitdiff
path: root/config/categorize-LLM.json
blob: 80fb74e1c246ac3248b81cbd15550ec1dd00c9d0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
{
	"url": "http://127.0.0.1:11434/api/chat",
	"model": "llama3.2",
	"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": "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_choice": {
							"type": "string",
							"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_choice"]
				}
			}
		}
	]
}
ArKa projects. All rights to me, and your next child right arm.