Commit ·
6fe40c2
1
Parent(s): 89ee7c0
update: update prompt for tools call, add system prompt
Browse files- prompt/system_prompt.txt +0 -0
- tools.py +4 -5
prompt/system_prompt.txt
ADDED
|
File without changes
|
tools.py
CHANGED
|
@@ -133,8 +133,7 @@ openai_tools = [
|
|
| 133 |
"type": "function",
|
| 134 |
"function": {
|
| 135 |
"name": "call_rag_workflow",
|
| 136 |
-
"description": """Call this function to query knowledge from vector store when you don't make sure about the answer or
|
| 137 |
-
uncertain answer to users !!!.""",
|
| 138 |
"parameters": {"type": "object",
|
| 139 |
"properties": {
|
| 140 |
"prompts": {"type": "string", "description": """prompts from user, you need to understand this request from user
|
|
@@ -147,7 +146,7 @@ openai_tools = [
|
|
| 147 |
"type": "function",
|
| 148 |
"function": {
|
| 149 |
"name": "inference_cost_model",
|
| 150 |
-
"description": """
|
| 151 |
"parameters": {"type": "object",
|
| 152 |
"properties": {
|
| 153 |
"month": {"type": "string","enum": ["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],
|
|
@@ -166,7 +165,7 @@ openai_tools = [
|
|
| 166 |
"type": "function",
|
| 167 |
"function": {
|
| 168 |
"name": "inference_view_model",
|
| 169 |
-
"description": """
|
| 170 |
"parameters": {"type": "object",
|
| 171 |
"properties": {
|
| 172 |
"month": {"type": "string","enum": ["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],
|
|
@@ -186,7 +185,7 @@ openai_tools = [
|
|
| 186 |
"type": "function",
|
| 187 |
"function": {
|
| 188 |
"name": "inference_ranking_model",
|
| 189 |
-
"description": """
|
| 190 |
"parameters": {"type": "object",
|
| 191 |
"properties": {
|
| 192 |
"followers": {"type": "string", "description": """number of followers of KOL, e.g 100000. Default: None"""},
|
|
|
|
| 133 |
"type": "function",
|
| 134 |
"function": {
|
| 135 |
"name": "call_rag_workflow",
|
| 136 |
+
"description": """Call this function to query knowledge from vector store when you don't make sure about the answer or uncertain answer to users !!!.""",
|
|
|
|
| 137 |
"parameters": {"type": "object",
|
| 138 |
"properties": {
|
| 139 |
"prompts": {"type": "string", "description": """prompts from user, you need to understand this request from user
|
|
|
|
| 146 |
"type": "function",
|
| 147 |
"function": {
|
| 148 |
"name": "inference_cost_model",
|
| 149 |
+
"description": """Call this function when users want to get cost prediction after giving information about KOL. Don't make up KOL's information. Default value is '' for all arguments""",
|
| 150 |
"parameters": {"type": "object",
|
| 151 |
"properties": {
|
| 152 |
"month": {"type": "string","enum": ["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],
|
|
|
|
| 165 |
"type": "function",
|
| 166 |
"function": {
|
| 167 |
"name": "inference_view_model",
|
| 168 |
+
"description": """Call this function when users want to get views prediction after giving information about KOLs. Don't make up KOL's information. Default value is '' for all arguments""",
|
| 169 |
"parameters": {"type": "object",
|
| 170 |
"properties": {
|
| 171 |
"month": {"type": "string","enum": ["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],
|
|
|
|
| 185 |
"type": "function",
|
| 186 |
"function": {
|
| 187 |
"name": "inference_ranking_model",
|
| 188 |
+
"description": """Call this function when users want to get KOL ranking score (from 1 to 5, 1 is the best, 5 is the worst) after giving information about KOL. Don't make up KOL's information. Default value is '' for all arguments""",
|
| 189 |
"parameters": {"type": "object",
|
| 190 |
"properties": {
|
| 191 |
"followers": {"type": "string", "description": """number of followers of KOL, e.g 100000. Default: None"""},
|