aboutsummaryrefslogtreecommitdiff
path: root/config/categorize-LLM.json
diff options
context:
space:
mode:
authorOxbian <oxbian@mailbox.org>2025-05-17 23:30:07 -0400
committerOxbian <oxbian@mailbox.org>2025-05-17 23:30:07 -0400
commitfecb211130ec487c7c617d28419c6d0097f19783 (patch)
treeade91c5eefb7d9af6f68357f897d4b670f325f81 /config/categorize-LLM.json
parentdd9808b10c98c28a493eac78742fc403efc70e32 (diff)
downloadNAI-fecb211130ec487c7c617d28419c6d0097f19783.tar.gz
NAI-fecb211130ec487c7c617d28419c6d0097f19783.zip
feat: wikipedia module
Diffstat (limited to 'config/categorize-LLM.json')
-rw-r--r--config/categorize-LLM.json25
1 files changed, 25 insertions, 0 deletions
diff --git a/config/categorize-LLM.json b/config/categorize-LLM.json
new file mode 100644
index 0000000..fd488c8
--- /dev/null
+++ b/config/categorize-LLM.json
@@ -0,0 +1,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.