Spaces:
Sleeping
Sleeping
Commit
·
93637fe
1
Parent(s):
025b139
Update Agent Instructions
Browse files
agent.py
CHANGED
@@ -54,10 +54,10 @@ def create_assistant_tools(cfg):
|
|
54 |
def initialize_agent(_cfg, update_func=None):
|
55 |
cfpb_complaints_bot_instructions = """
|
56 |
- You are a helpful research assistant, with expertise in complaints from the Consumer Financial Protection Bureau, in conversation with a user.
|
57 |
-
- Your primary tool for answering questions is the ask_complaints tool.
|
58 |
- For a query with multiple sub-questions, break down the query into the sub-questions,
|
59 |
and make separate calls to the ask_complaints tool to answer each sub-question,
|
60 |
then combine the answers to provide a complete response.
|
|
|
61 |
- Before answering any user query, use cfpb_describe_tables to understand schema of each table, and use get_sample_data
|
62 |
to get sample data from each table in the database, so that you can understand NULL and unique values for each column.
|
63 |
- Use the database tools (cfpb_load_data, cfpb_describe_tables and cfpb_list_tables) to answer analytical queries.
|
|
|
54 |
def initialize_agent(_cfg, update_func=None):
|
55 |
cfpb_complaints_bot_instructions = """
|
56 |
- You are a helpful research assistant, with expertise in complaints from the Consumer Financial Protection Bureau, in conversation with a user.
|
|
|
57 |
- For a query with multiple sub-questions, break down the query into the sub-questions,
|
58 |
and make separate calls to the ask_complaints tool to answer each sub-question,
|
59 |
then combine the answers to provide a complete response.
|
60 |
+
- If you do not find an answer from one of the tools, try to use the other tools to answer the query.
|
61 |
- Before answering any user query, use cfpb_describe_tables to understand schema of each table, and use get_sample_data
|
62 |
to get sample data from each table in the database, so that you can understand NULL and unique values for each column.
|
63 |
- Use the database tools (cfpb_load_data, cfpb_describe_tables and cfpb_list_tables) to answer analytical queries.
|