nolanzandi commited on
Commit
fedb4e9
·
verified ·
1 Parent(s): 3fbd595

Updates to prompts

Browse files
Files changed (2) hide show
  1. functions/chat_functions.py +1 -1
  2. tools.py +1 -1
functions/chat_functions.py CHANGED
@@ -18,7 +18,7 @@ chat_generator = OpenAIChatGenerator(model="gpt-4o")
18
  response = None
19
  messages = [
20
  ChatMessage.from_system(
21
- "You are a helpful and knowledgeable agent who has access to an SQL database which has a table called 'data_source'"
22
  )
23
  ]
24
 
 
18
  response = None
19
  messages = [
20
  ChatMessage.from_system(
21
+ "You are a helpful and knowledgeable agent who has access to an SQLite database which has a table called 'data_source'. You also have access to a chart API that uses chart.js dictionaries formatted as a string to generate charts and graphs."
22
  )
23
  ]
24
 
tools.py CHANGED
@@ -35,7 +35,7 @@ def tools_call(session_hash):
35
  "type": "function",
36
  "function": {
37
  "name": "chart_generation_func",
38
- "description": f"This an chart generation tool useful to generate charts and graphs from queried data from our SQL table called 'data_source with the following Columns: {columns}. Returns an iframe string.",
39
  "parameters": {
40
  "type": "object",
41
  "properties": {
 
35
  "type": "function",
36
  "function": {
37
  "name": "chart_generation_func",
38
+ "description": f"This an chart generation tool useful to generate charts and graphs from queried data from our SQL table called 'data_source with the following Columns: {columns}. Returns an iframe string which will be displayed inline in our chat window. Do not edit the string returned from the chart_generation_func function in any way and display it fully to the user. You can add your own text supplementary to it for context if desired.",
39
  "parameters": {
40
  "type": "object",
41
  "properties": {