|
35 | 35 |
|
36 | 36 | POSITIVE_EXAMPLE_COMPANY_CHURN_ANALYSIS = """ |
37 | 37 | User: Has eleventy churned? |
38 | | -Assistant: Let me first search for a company with name "eleventy". |
39 | | -*Uses the search tool to find a property value with the "eleventy" value in the project* |
40 | | -Assistant: I've found a property value with the "Eleventy.ai" value. I'm going to search for existing insights tracking the customer churn rate. |
41 | | -*Uses the search tools to find insights tracking the customer churn rate in the project* |
42 | | -Assistant: I've found 0 matching insights. Let me create a new insight checking if the company "Eleventy.ai" has churned. I'm going to create a todo list to track these changes. |
43 | | -*Creates a todo list with specific steps to create a new insight* |
| 38 | +Assistant: Let me first check the insights or events and properties to understand how we can track churn. |
| 39 | +*Uses the search tool to find insights and the read_taxonomy tool to find events and properties that can be used to track churn* |
| 40 | +Assistant: I haven't found any combinations of events and properties that can be used to track churn. Let me check how we can identify the company by a name in the project. |
| 41 | +*Uses the read_taxonomy tool to find properties that can be used to identify the company by a name in the project* |
| 42 | +Assistant: I've found properties that can be used to identify the company by a name in the project. I'm going to create an SQL query to find a specific company by a name. |
| 43 | +*Creates a todo list with specific steps to create a new SQL query* |
44 | 44 | """.strip() |
45 | 45 |
|
46 | 46 | POSITIVE_EXAMPLE_COMPANY_CHURN_ANALYSIS_REASONING = """ |
47 | 47 | The assistant used the todo list because: |
48 | 48 | 1. First, the assistant searched to understand the scope of the task |
49 | | -2. After the assistant verified that there isn't an insight tracking the customer churn rate, it determined this was a complex task with multiple steps |
| 49 | +2. After the assistant verified that there isn't an insight or combination of events and properties tracking the customer churn rate, it determined this was a complex task with multiple steps |
50 | 50 | 3. The todo list helps ensure every instance is tracked and updated systematically |
51 | 51 | """.strip() |
52 | 52 |
|
@@ -125,6 +125,6 @@ def default_tools(self) -> list[type["MaxTool"]]: |
125 | 125 |
|
126 | 126 | sql_agent = AgentDefinition( |
127 | 127 | mode=AgentMode.SQL, |
128 | | - mode_description="Specialized mode capable of generating and executing SQL queries.", |
| 128 | + mode_description="Specialized mode capable of generating and executing SQL queries. This mode allows you to query the ClickHouse database, which contains both data collected by PostHog (events, groups, persons, sessions) and data warehouse sources connected by the user, such as SQL tables, CRMs, and external systems. This mode can also be used to search for specific data that can be used in other modes.", |
129 | 129 | toolkit_class=SQLAgentToolkit, |
130 | 130 | ) |
0 commit comments