|
32 | 32 | - Specific product features or capabilities the prospect expressed interest in |
33 | 33 | - ICP qualification signals (company size, industry, tech stack) |
34 | 34 | Deprioritise: general greetings, scheduling logistics unrelated to deal timeline, small talk.""", |
35 | | - |
36 | 35 | "sales": """ |
37 | 36 | Domain focus (sales agent): |
38 | 37 | Prioritise extracting: |
|
45 | 44 | - Legal, procurement, or security review concerns raised |
46 | 45 | - Champion and economic buyer identification |
47 | 46 | Deprioritise: general greetings, small talk.""", |
48 | | - |
49 | 47 | "account_management": """ |
50 | 48 | Domain focus (account management agent): |
51 | 49 | Prioritise extracting: |
|
57 | 55 | - Feature requests and product feedback from the customer |
58 | 56 | - Commitments made by the account team |
59 | 57 | Deprioritise: general pleasantries, unrelated small talk.""", |
60 | | - |
61 | 58 | # ── Customer experience ─────────────────────────────────────────────────── |
62 | 59 | "support": """ |
63 | 60 | Domain focus (customer support agent): |
|
70 | 67 | - Escalation triggers or SLA/ticket references |
71 | 68 | - Follow-up commitments and deadlines |
72 | 69 | Deprioritise: scripted greetings, hold messages, boilerplate closing pleasantries.""", |
73 | | - |
74 | 70 | "onboarding": """ |
75 | 71 | Domain focus (customer onboarding agent): |
76 | 72 | Prioritise extracting: |
|
82 | 78 | - Go-live dates and success criteria defined |
83 | 79 | - Configuration choices and setup decisions made |
84 | 80 | Deprioritise: generic greetings, off-topic conversation.""", |
85 | | - |
86 | 81 | # ── People & talent ─────────────────────────────────────────────────────── |
87 | 82 | "hr": """ |
88 | 83 | Domain focus (HR agent): |
|
95 | 90 | - Leave, absence, or schedule-related details |
96 | 91 | - Compensation or benefits questions raised |
97 | 92 | Deprioritise: casual small talk, water-cooler conversation, off-topic personal chat.""", |
98 | | - |
99 | 93 | "recruiting": """ |
100 | 94 | Domain focus (recruiting / talent acquisition agent): |
101 | 95 | Prioritise extracting: |
|
107 | 101 | - Red flags or concerns noted by the recruiter |
108 | 102 | - Next steps and scheduled interviews |
109 | 103 | Deprioritise: small talk, generic introductions.""", |
110 | | - |
111 | 104 | # ── Finance & legal ─────────────────────────────────────────────────────── |
112 | 105 | "finance": """ |
113 | 106 | Domain focus (finance / accounting agent): |
|
120 | 113 | - Vendor names and contract financial terms |
121 | 114 | - Reporting deadlines and period-close milestones |
122 | 115 | Deprioritise: general chat, non-financial pleasantries.""", |
123 | | - |
124 | 116 | "legal": """ |
125 | 117 | Domain focus (legal agent): |
126 | 118 | Prioritise extracting: |
|
132 | 124 | - Dispute details, allegations, or litigation references |
133 | 125 | - Legal advice or guidance provided |
134 | 126 | Deprioritise: casual conversation, non-legal pleasantries.""", |
135 | | - |
136 | 127 | # ── Technical ──────────────────────────────────────────────────────────── |
137 | 128 | "coding": """ |
138 | 129 | Domain focus (software engineering / coding agent): |
|
145 | 136 | - Performance or security concerns raised |
146 | 137 | - Task assignments, PR numbers, and deadlines |
147 | 138 | Deprioritise: generic greetings, non-technical small talk.""", |
148 | | - |
149 | 139 | "data_analytics": """ |
150 | 140 | Domain focus (data / analytics agent): |
151 | 141 | Prioritise extracting: |
|
157 | 147 | - Data pipeline or ETL issues mentioned |
158 | 148 | - Deadlines for reports or model deliverables |
159 | 149 | Deprioritise: general pleasantries, off-topic conversation.""", |
160 | | - |
161 | 150 | "research": """ |
162 | 151 | Domain focus (research agent): |
163 | 152 | Prioritise extracting: |
|
169 | 158 | - Next research steps and open questions |
170 | 159 | - Authors, institutions, or publications mentioned |
171 | 160 | Deprioritise: administrative filler, generic acknowledgements.""", |
172 | | - |
173 | 161 | "cybersecurity": """ |
174 | 162 | Domain focus (cybersecurity agent): |
175 | 163 | Prioritise extracting: |
|
181 | 169 | - Compliance frameworks referenced (ISO 27001, NIST, SOC 2) |
182 | 170 | - Incident timeline and containment actions |
183 | 171 | Deprioritise: routine greetings, non-security small talk.""", |
184 | | - |
185 | 172 | # ── Operations & industry ──────────────────────────────────────────────── |
186 | 173 | "healthcare": """ |
187 | 174 | Domain focus (healthcare / clinical agent): |
|
195 | 182 | - Follow-up instructions and care commitments |
196 | 183 | Deprioritise: general small talk, non-clinical pleasantries. |
197 | 184 | Note: treat all health information with appropriate sensitivity.""", |
198 | | - |
199 | 185 | "supply_chain": """ |
200 | 186 | Domain focus (supply chain / logistics agent): |
201 | 187 | Prioritise extracting: |
|
207 | 193 | - Disruption signals (port delays, weather, supplier issues) |
208 | 194 | - Cost-per-unit or freight cost changes mentioned |
209 | 195 | Deprioritise: general pleasantries, unrelated conversation.""", |
210 | | - |
211 | 196 | "retail": """ |
212 | 197 | Domain focus (retail / e-commerce agent): |
213 | 198 | Prioritise extracting: |
|
219 | 204 | - Loyalty programme status and points |
220 | 205 | - Competitor products or pricing mentioned |
221 | 206 | Deprioritise: generic greetings, unrelated small talk.""", |
222 | | - |
223 | 207 | "operations": """ |
224 | 208 | Domain focus (operations / scheduling agent): |
225 | 209 | Prioritise extracting: |
@@ -433,7 +417,7 @@ def __init__( |
433 | 417 | max_facts: int = 8, |
434 | 418 | max_input_tokens: int = 4000, |
435 | 419 | max_output_tokens: int = 8192, |
436 | | - extraction_config: "ExtractionConfig | None" = None, |
| 420 | + extraction_config: ExtractionConfig | None = None, |
437 | 421 | ) -> None: |
438 | 422 | self.db = db |
439 | 423 | self.embedder = embedder |
|
0 commit comments