david-oplatka commited on
Commit
35cdc9b
·
1 Parent(s): 7e69a95

Update Instructions and Description

Browse files
Files changed (1) hide show
  1. agent.py +3 -3
agent.py CHANGED
@@ -72,7 +72,7 @@ def create_assistant_tools(cfg):
72
  return (tools_factory.standard_tools() +
73
  tools_factory.guardrail_tools() +
74
  tools_factory.database_tools(
75
- content_description = 'Electric Vehicles',
76
  sql_database = SQLDatabase(create_engine('sqlite:///ev_database.db')),
77
  ) +
78
  [ask_vehicles, ask_policies]
@@ -86,7 +86,7 @@ def initialize_agent(_cfg, update_func=None):
86
  and make separate calls to the ask_vehicles or ask_policies tool to answer each sub-question,
87
  then combine the answers to provide a complete response.
88
  - Use the database tools to answer analytical questions.
89
- - IMPORTANT: When using database tools, always query SELECT * FROM (table_name) LIMIT 10; first to figure out the format of the columns and
90
  then call the tool again to try to answer the user's question.
91
  - When providing links, try to put the name of the website or source of information for the displayed text. Don't just say 'Source'.
92
  - Never discuss politics, and always respond politely.
@@ -110,7 +110,7 @@ def get_agent_config() -> OmegaConf:
110
  'examples': os.environ.get('QUERY_EXAMPLES', None),
111
  'demo_name': "ev-assistant",
112
  'demo_welcome': "Welcome to the EV Assistant demo.",
113
- 'demo_description': "This assistant can help you learn about electric vehicles in the United States, including how they work, the advantages of purchasing them, and reviews on the top choices.",
114
  })
115
  return cfg
116
 
 
72
  return (tools_factory.standard_tools() +
73
  tools_factory.guardrail_tools() +
74
  tools_factory.database_tools(
75
+ content_description = 'Electric Vehicles in the state of Washington',
76
  sql_database = SQLDatabase(create_engine('sqlite:///ev_database.db')),
77
  ) +
78
  [ask_vehicles, ask_policies]
 
86
  and make separate calls to the ask_vehicles or ask_policies tool to answer each sub-question,
87
  then combine the answers to provide a complete response.
88
  - Use the database tools to answer analytical questions.
89
+ - IMPORTANT: When using database tools, always query SELECT * FROM (table_name) LIMIT 25; first to figure out the format of the columns and
90
  then call the tool again to try to answer the user's question.
91
  - When providing links, try to put the name of the website or source of information for the displayed text. Don't just say 'Source'.
92
  - Never discuss politics, and always respond politely.
 
110
  'examples': os.environ.get('QUERY_EXAMPLES', None),
111
  'demo_name': "ev-assistant",
112
  'demo_welcome': "Welcome to the EV Assistant demo.",
113
+ 'demo_description': "This assistant can help you learn about electric vehicles in the United States, including how they work, the advantages of purchasing them, and recent trends based on data in the state of Washington.",
114
  })
115
  return cfg
116