Update backend.py
Browse files6 unmodified lines789101112131415166 unmodified lines# Sample college knowledge base (can be replaced with a DB)college_knowledge = {"admissions": "We offer B.Tech, M.Tech, and Ph.D. programs. Admissions are based on EAPCET, GATE, or merit.","departments": "We have departments like CSE, CSE(AI), CSE(AI/ML), CSE(DS) ECE, ME, Civil, and Biotechnology.","fees": "B.Tech fees: INR 1.2L/year, M.Tech: INR 1.5L/year.","faculty": "Our faculty includes industry experts and researchers from top institutions."}def generate_response(user_query, user_type="student"):6 unmodified lines7891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071086 unmodified lines# Sample college knowledge base (can be replaced with a DB)college_knowledge = {"admissions": {"category_b_admissions": {"notification": "Institutions shall issue notification as per Government Order (G.O) and accept applications online or in person.","vacancies": "Derive vacancies for Category B (Non-NRI) quota by entering branch-wise NRI filled data in the portal.","application_submission": "The institution shall upload application data to the web portal by paying the candidate registration fee online.","merit_list": "Merit order: NRI quota, JEE (Mains)/NEET-2024 rankers, APEAPCET-2024 rankers, and qualifying exam performance.","nri_admissions": "Institutions may admit NRI candidates (sons/daughters of NRIs) with at least 50% aggregate marks or CGPA of 5/10.","non_nri_admissions": "Remaining seats filled with JEE/NEET/APEAPCET rankers securing at least 45% (40% for reserved categories).","unfilled_seats": "If seats remain unfilled, they may be allocated to candidates based on merit in qualifying exams (+2 or equivalent).","selection_list": "Institutions must upload branch-wise selection lists to the portal for verification by the Competent Authority.","final_admissions": "Management must close admissions per the Supreme Court judgment, and violations may lead to penalties."},"apeapcet_2024_admissions": {"process": "Qualified candidates must complete web counseling, pay processing fees, undergo online verification, and enter choices.","guidelines": "Candidates must follow the official user manual for web counseling."},"certificates_required": {"general": ["APEAPCET-2024 Rank card","APEAPCET-2024 Hall Ticket","Memorandum of Marks (Inter or equivalent)","Proof of Date of Birth (SSC or Equivalent Memo)","Transfer Certificate (T.C)","Study Certificate from VI to Intermediate"],"reserved_category": ["EWS certificate (2024-25) for OC candidates","Andhra Pradesh Residence Certificate (10 years for non-local candidates)","Integrated Community Certificate for BC/ST/SC (Not OBC Certificate)","Income certificate (issued on or after 01.01.2021) or White Ration Card"],"special_cases": ["Local status certificate for candidates migrating from Telangana (02-June-2014 to 01-June-2024)."]}},"courses": {"ug_courses": [{"name": "Computer Science and Engineering","intake": 360},{"name": "Computer Science and Engineering (AI)","intake": 180},{"name": "Computer Science and Engineering (AI & ML)","intake": 60},{"name": "Electronics and Communication Engineering","intake": 180},{"name": "Electrical and Electronics Engineering","intake": 60},{"name": "Mechanical Engineering","intake": 30},{"name": "Civil Engineering","intake": 30},{"name": "Computer Science and Engineering (Data Science)","intake": "N/A"}],"pg_courses": [{"name": "MBA \u2013 Master of Business Administration","intake": 60}],"diploma_courses": [{"name": "DCME (Diploma in Computer Engineering)","intake": 120},{"name": "DECE (Diploma in Electronics & Communication Engineering)","intake": 120},{"name": "DEEE (Diploma in Electrical & Electronics Engineering)","intake": 60},{"name": "DCE (Diploma in Civil Engineering)","intake": 60}]}}def generate_response(user_query, user_type="student"):
backend.py+96-4