aboutsummaryrefslogtreecommitdiff
path: root/config/categorize-LLM.json
blob: fd488c82afa2ee99c4d382d4347b37a244e97c89 (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 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",
	"tools": [
		{
			"type": "function",
			"function": {
				"name": "categorize_message",
				"description": "Classify the last message into a category (chat, code, wikipedia)",
				"parameters": {
					"type" : "object",
					"properties": {
						"category": {
							"type": "string",
							"description": "The category in which the message fit the most e.g. 'chat', 'code', 'wikipedia'",
							"enum": ["chat", "code", "wikipedia"]
						}
					},
					"required": ["category"]
				}
			}
		}
	]
}
ArKa projects. All rights to me, and your next child right arm.