ricklamers commited on
Commit
9ffb275
1 Parent(s): 2c48a73

chore: add example text prompt

Browse files
Files changed (1) hide show
  1. README.md +47 -0
README.md CHANGED
@@ -43,6 +43,53 @@ This model is designed for research and development in tool use and function cal
43
 
44
  Note the model is quite sensitive to the `temperature` and `top_p` sampling configuration. Start at `temperature=0.5, top_p=0.65` and move up or down as needed.
45
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
46
  ## Ethical Considerations
47
 
48
  While fine-tuned for tool use, this model inherits the ethical considerations of the base Llama 3 model. Use responsibly and implement additional safeguards as needed for your application.
 
43
 
44
  Note the model is quite sensitive to the `temperature` and `top_p` sampling configuration. Start at `temperature=0.5, top_p=0.65` and move up or down as needed.
45
 
46
+ Text prompt example:
47
+
48
+ ```
49
+ <|start_header_id|>system<|end_header_id|>
50
+
51
+ You are a function calling AI model. You are provided with function signatures within <tools></tools> XML tags. You may call one or more functions to assist with the user query. Don't make assumptions about what values to plug into functions. For each function call return a json object with function name and arguments within <tool_call></tool_call> XML tags as follows:
52
+ <tool_call>
53
+ {"name": <function-name>,"arguments": <args-dict>}
54
+ </tool_call>
55
+
56
+ Here are the available tools:
57
+ <tools> {
58
+ "name": "get_current_weather",
59
+ "description": "Get the current weather in a given location",
60
+ "parameters": {
61
+ "properties": {
62
+ "location": {
63
+ "description": "The city and state, e.g. San Francisco, CA",
64
+ "type": "string"
65
+ },
66
+ "unit": {
67
+ "enum": [
68
+ "celsius",
69
+ "fahrenheit"
70
+ ],
71
+ "type": "string"
72
+ }
73
+ },
74
+ "required": [
75
+ "location"
76
+ ],
77
+ "type": "object"
78
+ }
79
+ } </tools><|eot_id|><|start_header_id|>user<|end_header_id|>
80
+
81
+ What is the weather like in San Francisco?<|eot_id|><|start_header_id|>assistant<|end_header_id|>
82
+
83
+ <tool_call>
84
+ {"id":"call_deok","name":"get_current_weather","arguments":{"location":"San Francisco","unit":"celsius"}}
85
+ </tool_call><|eot_id|><|start_header_id|>tool<|end_header_id|>
86
+
87
+ <tool_response>
88
+ {"id":"call_deok","result":{"temperature":"72","unit":"celsius"}}
89
+ </tool_response><|eot_id|><|start_header_id|>assistant<|end_header_id|>
90
+
91
+ ```
92
+
93
  ## Ethical Considerations
94
 
95
  While fine-tuned for tool use, this model inherits the ethical considerations of the base Llama 3 model. Use responsibly and implement additional safeguards as needed for your application.