|
1 | | -from vectordb import VectorDB |
2 | 1 | import textwrap |
3 | 2 |
|
| 3 | +from vectordb import VectorDB |
| 4 | + |
4 | 5 | vectordb = VectorDB() |
5 | 6 | # Load the vector database |
6 | 7 | vectordb.load_db() |
7 | 8 |
|
8 | | -categories = """<category> |
| 9 | +categories = """<category> |
9 | 10 | <label>Billing Inquiries</label> |
10 | | - <content> Questions about invoices, charges, fees, and premiums Requests for clarification on billing statements Inquiries about payment methods and due dates |
11 | | - </content> |
12 | | -</category> |
13 | | -<category> |
| 11 | + <content> Questions about invoices, charges, fees, and premiums Requests for clarification on billing statements Inquiries about payment methods and due dates |
| 12 | + </content> |
| 13 | +</category> |
| 14 | +<category> |
14 | 15 | <label>Policy Administration</label> |
15 | | - <content> Requests for policy changes, updates, or cancellations Questions about policy renewals and reinstatements Inquiries about adding or removing coverage options |
16 | | - </content> |
17 | | -</category> |
18 | | -<category> |
19 | | - <label>Claims Assistance</label> |
20 | | - <content> Questions about the claims process and filing procedures Requests for help with submitting claim documentation Inquiries about claim status and payout timelines |
21 | | - </content> |
22 | | -</category> |
23 | | -<category> |
24 | | - <label>Coverage Explanations</label> |
25 | | - <content> Questions about what is covered under specific policy types Requests for clarification on coverage limits and exclusions Inquiries about deductibles and out-of-pocket expenses |
26 | | - </content> |
27 | | -</category> |
28 | | -<category> |
29 | | - <label>Quotes and Proposals</label> |
30 | | - <content> Requests for new policy quotes and price comparisons Questions about available discounts and bundling options Inquiries about switching from another insurer |
31 | | - </content> |
32 | | -</category> |
33 | | -<category> |
34 | | - <label>Account Management</label> |
35 | | - <content> Requests for login credentials or password resets Questions about online account features and functionality Inquiries about updating contact or personal information |
36 | | - </content> |
37 | | -</category> |
38 | | -<category> |
39 | | - <label>Billing Disputes</label> |
40 | | - <content> Complaints about unexpected or incorrect charges Requests for refunds or premium adjustments Inquiries about late fees or collection notices |
41 | | - </content> |
42 | | -</category> |
43 | | -<category> |
44 | | - <label>Claims Disputes</label> |
45 | | - <content> Complaints about denied or underpaid claims Requests for reconsideration of claim decisions Inquiries about appealing a claim outcome |
46 | | - </content> |
47 | | -</category> |
48 | | -<category> |
49 | | - <label>Policy Comparisons</label> |
50 | | - <content> Questions about the differences between policy options Requests for help deciding between coverage levels Inquiries about how policies compare to competitors' offerings |
51 | | - </content> |
52 | | -</category> |
53 | | -<category> |
54 | | - <label>General Inquiries</label> |
55 | | - <content> Questions about company contact information or hours of operation Requests for general information about products or services Inquiries that don't fit neatly into other categories |
56 | | - </content> |
| 16 | + <content> Requests for policy changes, updates, or cancellations Questions about policy renewals and reinstatements Inquiries about adding or removing coverage options |
| 17 | + </content> |
| 18 | +</category> |
| 19 | +<category> |
| 20 | + <label>Claims Assistance</label> |
| 21 | + <content> Questions about the claims process and filing procedures Requests for help with submitting claim documentation Inquiries about claim status and payout timelines |
| 22 | + </content> |
| 23 | +</category> |
| 24 | +<category> |
| 25 | + <label>Coverage Explanations</label> |
| 26 | + <content> Questions about what is covered under specific policy types Requests for clarification on coverage limits and exclusions Inquiries about deductibles and out-of-pocket expenses |
| 27 | + </content> |
| 28 | +</category> |
| 29 | +<category> |
| 30 | + <label>Quotes and Proposals</label> |
| 31 | + <content> Requests for new policy quotes and price comparisons Questions about available discounts and bundling options Inquiries about switching from another insurer |
| 32 | + </content> |
| 33 | +</category> |
| 34 | +<category> |
| 35 | + <label>Account Management</label> |
| 36 | + <content> Requests for login credentials or password resets Questions about online account features and functionality Inquiries about updating contact or personal information |
| 37 | + </content> |
| 38 | +</category> |
| 39 | +<category> |
| 40 | + <label>Billing Disputes</label> |
| 41 | + <content> Complaints about unexpected or incorrect charges Requests for refunds or premium adjustments Inquiries about late fees or collection notices |
| 42 | + </content> |
| 43 | +</category> |
| 44 | +<category> |
| 45 | + <label>Claims Disputes</label> |
| 46 | + <content> Complaints about denied or underpaid claims Requests for reconsideration of claim decisions Inquiries about appealing a claim outcome |
| 47 | + </content> |
| 48 | +</category> |
| 49 | +<category> |
| 50 | + <label>Policy Comparisons</label> |
| 51 | + <content> Questions about the differences between policy options Requests for help deciding between coverage levels Inquiries about how policies compare to competitors' offerings |
| 52 | + </content> |
| 53 | +</category> |
| 54 | +<category> |
| 55 | + <label>General Inquiries</label> |
| 56 | + <content> Questions about company contact information or hours of operation Requests for general information about products or services Inquiries that don't fit neatly into other categories |
| 57 | + </content> |
57 | 58 | </category>""" |
58 | 59 |
|
59 | 60 |
|
@@ -154,7 +155,7 @@ def rag_chain_of_thought_classify(context: dict): |
154 | 155 |
|
155 | 156 | First you will think step-by-step about the problem in scratchpad tags. |
156 | 157 | You should consider all the information provided and create a concrete argument for your classification. |
157 | | - |
| 158 | +
|
158 | 159 | Respond using this format: |
159 | 160 | <response> |
160 | 161 | <scratchpad>Your thoughts and analysis go here</scratchpad> |
|
0 commit comments