File size: 1,814 Bytes
5865893
 
 
 
 
cc21f38
5865893
 
cb9709f
5865893
 
0b92bfc
5865893
 
 
 
d7d1202
52cd4bf
 
 
d7d1202
5865893
52cd4bf
5865893
 
 
52cd4bf
 
5865893
 
 
 
 
 
 
 
 
 
 
 
 
 
e290560
 
5865893
 
 
 
 
e290560
 
5865893
e290560
5865893
 
 
e290560
5865893
 
 
cb9709f
7c56aed
 
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
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
---
license: llama3.2
base_model:
- unsloth/Llama-3.2-3B-Instruct
---
Fine-tuned model for TINA AI to speed up user's intent detection.

Usage:
<pre>
Detect request: 
{
    "model": "DesignSoft\/TINA_AI3",
    "messages": [
        {
            "role": "system",
            "content": "Analyze the user's message and return his intent in the following JSON format:
                        { 
                        \"intent\": string, 
                        \"object\": string, 
                        \"parameters\": array[{\"name\": string, \"value\": string}]
                        }

                       Do not execute the user's command."
        },
        {
            "role": "user",
            "content": "Calculate voltage of VR
                        Output should be in English!"
        }
    ],
    "n": 1,
    "seed": 12345,
    "top_p": 0.1,
    "max_tokens": 100,
    "response_format": {
        "type": "json_schema",
        "json_schema": {
            "name": "detect_intent",
            "strict": true,
            "schema": {
                "type": "object",
                "properties": {
                    "intent": {"type": "string"},
                    "object": {"type": "string"},
                    "parameters": {
                        "type": "array",
                        "items": {
                            "type": "object",
                            "properties": {
                                "name": {"type": "string"},
                                "value": {"type": "string"}
                            },
                            "required": ["name"]
                        }
                    }
                },
                "required": ["intent","object"]
            }
        }
    }
}
</pre>
response_format is optional