File size: 11,298 Bytes
91651eb
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
"""
data/knowledge_base_generator.py
----------------------------------
Generates synthetic CAMS knowledge base documents for RAG Path B.
These are policy/FAQ documents β€” not investor account data.

Categories:
  - kyc          β†’ KYC rules, documents required, update process
  - compliance   β†’ SEBI regulations, AML, FATCA
  - fund_info    β†’ How mutual funds work, NAV, exit load
  - sip          β†’ SIP rules, pause, cancellation
  - redemption   β†’ Redemption process, T+3, taxes
  - general      β†’ CAMS services, contact, portal guide
"""
import json
from pathlib import Path

KNOWLEDGE_BASE = [
    # ── KYC ──────────────────────────────────────────────────────────────────
    {
        "title":    "KYC Requirements for Mutual Fund Investment",
        "category": "kyc",
        "content":  (
            "KYC (Know Your Customer) is mandatory for all mutual fund investments in India. "
            "Required documents: PAN card (mandatory), Aadhaar card or passport for address proof, "
            "passport-size photograph, and bank account details. "
            "KYC can be completed online via Video KYC (VKYC) or offline at any CAMS service centre. "
            "Once KYC is verified, it is valid across all mutual fund investments β€” no re-KYC needed. "
            "NRIs require additional documents: passport copy, overseas address proof, and FEMA declaration."
        )
    },
    {
        "title":    "KYC Update Process",
        "category": "kyc",
        "content":  (
            "To update KYC details (address, mobile, email, bank account, nominee): "
            "1. Visit camsonline.com and log in with your folio number or PAN. "
            "2. Go to 'KYC Update' section and submit the change request. "
            "3. Upload supporting documents (address proof for address change, cancelled cheque for bank change). "
            "4. Changes are processed within 2-3 working days. "
            "Alternatively, visit the nearest CAMS service centre with original documents. "
            "Mobile number update requires OTP verification on the new number. "
            "Bank account change requires a cancelled cheque of the new account."
        )
    },
    # ── Compliance ────────────────────────────────────────────────────────────
    {
        "title":    "SEBI Regulations for Mutual Funds",
        "category": "compliance",
        "content":  (
            "SEBI (Securities and Exchange Board of India) regulates all mutual funds in India. "
            "Key SEBI regulations: "
            "- Mutual funds must publish NAV daily for all open-ended schemes. "
            "- Total Expense Ratio (TER) is capped by SEBI based on AUM. "
            "- Fund houses must disclose portfolio holdings monthly. "
            "- SEBI mandates a 3-day (T+3) settlement for redemptions. "
            "- Investors can file complaints on SEBI SCORES portal at scores.sebi.gov.in. "
            "- Mutual fund advertisements must carry the statutory warning about market risks."
        )
    },
    {
        "title":    "AML and FATCA Compliance",
        "category": "compliance",
        "content":  (
            "Anti-Money Laundering (AML): All transactions above β‚Ή50,000 require PAN. "
            "Suspicious transactions are reported to the Financial Intelligence Unit (FIU-IND). "
            "CAMS performs enhanced due diligence for high-value transactions. "
            "FATCA (Foreign Account Tax Compliance Act): US persons and entities must declare "
            "their US tax status when investing in Indian mutual funds. "
            "FATCA self-certification is mandatory for new folios. "
            "Existing investors must submit FATCA declaration if not already done. "
            "Non-compliance may result in account restriction or mandatory redemption."
        )
    },
    # ── Fund Info ─────────────────────────────────────────────────────────────
    {
        "title":    "Understanding NAV and Exit Load",
        "category": "fund_info",
        "content":  (
            "NAV (Net Asset Value) is the per-unit price of a mutual fund scheme, calculated daily. "
            "NAV = (Total Assets - Total Liabilities) / Total Units Outstanding. "
            "For equity funds, NAV is declared at end of each business day. "
            "For liquid funds, NAV is declared for all calendar days including weekends. "
            "Exit Load: A charge deducted when you redeem units before the specified holding period. "
            "Most equity funds charge 1% exit load if redeemed within 1 year. "
            "ELSS funds have a mandatory 3-year lock-in β€” no exit load applies after lock-in. "
            "Liquid and overnight funds typically have no exit load or a very minimal one (0.0070%)."
        )
    },
    {
        "title":    "Types of Mutual Fund Categories",
        "category": "fund_info",
        "content":  (
            "SEBI has categorised mutual funds as: "
            "Equity Funds: Large Cap (top 100 companies), Mid Cap (101-250), Small Cap (251+), "
            "Flexi Cap (any market cap), ELSS (tax-saving with 3-year lock-in). "
            "Debt Funds: Liquid (up to 91 days), Short Duration, Corporate Bond, Gilt. "
            "Hybrid Funds: Balanced Advantage, Aggressive Hybrid, Conservative Hybrid. "
            "Index Funds and ETFs: Track a specific index like Nifty 50 or Sensex. "
            "Equity funds are suitable for long-term goals (5+ years). "
            "Debt funds are suitable for short-term goals (1-3 years). "
            "ELSS offers tax deduction under Section 80C up to β‚Ή1.5 lakh per year."
        )
    },
    # ── SIP ───────────────────────────────────────────────────────────────────
    {
        "title":    "SIP β€” How It Works, Pause and Cancellation",
        "category": "sip",
        "content":  (
            "SIP (Systematic Investment Plan) allows investing a fixed amount at regular intervals. "
            "SIP can be weekly, monthly, or quarterly. Minimum SIP amount is β‚Ή100-500 depending on fund. "
            "SIP pause: You can pause your SIP for 1-3 months without cancelling. "
            "Log in to camsonline.com β†’ SIP β†’ Pause/Modify. "
            "SIP cancellation: Must be submitted at least 7 working days before the next SIP date. "
            "Missed SIP: If bank account has insufficient funds, the SIP installment is skipped. "
            "3 consecutive missed SIPs may result in automatic SIP cancellation by the fund house. "
            "SIP Step-Up: Automatically increase SIP amount annually (e.g., by 10% each year)."
        )
    },
    # ── Redemption ────────────────────────────────────────────────────────────
    {
        "title":    "Redemption Process and Timeline",
        "category": "redemption",
        "content":  (
            "Redemption is the process of selling mutual fund units to receive cash. "
            "For equity and hybrid funds: Redemption proceeds are credited within T+3 working days. "
            "For debt funds: T+2 working days. For liquid funds: T+1 working day. "
            "Redemption can be full (all units) or partial (specific amount or units). "
            "Tax on redemption: Short-term capital gains (STCG) for equity held < 1 year = 20%. "
            "Long-term capital gains (LTCG) for equity held > 1 year = 12.5% above β‚Ή1.25 lakh. "
            "ELSS funds cannot be redeemed before 3 years (lock-in period). "
            "Redemption requests submitted after 3 PM are processed at next day's NAV."
        )
    },
    # ── General ───────────────────────────────────────────────────────────────
    {
        "title":    "CAMS Services and Contact Information",
        "category": "general",
        "content":  (
            "CAMS (Computer Age Management Services) is India's largest mutual fund registrar and transfer agent. "
            "CAMS services: Account statement, SIP management, redemption, KYC update, nomination change. "
            "Online portal: camsonline.com β€” available 24/7 for all self-service needs. "
            "Mobile app: myCAMS β€” available on Android and iOS. "
            "Customer care: 1800-3010-6767 (toll-free), available Monday-Friday 8 AM to 8 PM. "
            "Email: enq@camsonline.com. "
            "CAMS service centres available in 270+ cities across India. "
            "For complaints: Register on SEBI SCORES or approach CAMS grievance officer."
        )
    },
    {
        "title":    "Account Statement and Portfolio Report",
        "category": "general",
        "content":  (
            "CAMS provides consolidated account statements (CAS) covering all mutual fund holdings. "
            "CAS is sent automatically to registered email every month if there are transactions. "
            "To get a statement on demand: Visit camsonline.com β†’ Account Statement β†’ Enter PAN and email. "
            "Statement is sent to the registered email address within minutes. "
            "Capital Gains Statement: Available for tax filing purposes, shows gains/losses for a financial year. "
            "To download: camsonline.com β†’ Capital Gains Statement β†’ Select financial year. "
            "Consolidated statement includes all fund houses β€” HDFC, SBI, Axis, Mirae, etc."
        )
    },
    {
        "title":    "Dividend and IDCW Information",
        "category": "general",
        "content":  (
            "IDCW (Income Distribution cum Capital Withdrawal) was formerly called Dividend option. "
            "SEBI renamed 'Dividend' to 'IDCW' in 2021 to better reflect its nature. "
            "IDCW is not guaranteed β€” it depends on the fund's distributable surplus. "
            "When IDCW is declared, the NAV of the fund falls by the distribution amount. "
            "IDCW is taxable in the hands of the investor as per their income tax slab. "
            "TDS of 10% is deducted on IDCW exceeding β‚Ή5,000 per year. "
            "Growth option is preferred for long-term wealth creation as returns are compounded. "
            "IDCW payout dates vary by fund β€” check the fund's scheme information document (SID)."
        )
    },
]

if __name__ == "__main__":
    out = Path(__file__).parent / "knowledge_base.json"
    with open(out, "w") as f:
        json.dump(KNOWLEDGE_BASE, f, indent=2)
    print(f"βœ… Generated {len(KNOWLEDGE_BASE)} KB documents β†’ {out}")
    for doc in KNOWLEDGE_BASE:
        print(f"  [{doc['category']}] {doc['title']}")