Spaces:
Sleeping
Sleeping
Upload 7 files
Browse files- AI-based Career Recommendation System.csv +201 -0
- app.py +57 -0
- create_vector_db.py +24 -0
- data_processing.py +46 -0
- genai_response.py +148 -0
- requirements.txt +34 -0
- vector_db.pkl +3 -0
AI-based Career Recommendation System.csv
ADDED
|
@@ -0,0 +1,201 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
CandidateID,Name,Age,Education,Skills,Interests,Recommended_Career,Recommendation_Score
|
| 2 |
+
1,John Doe,28,Bachelor's,Python;Data Analysis;Machine Learning,Technology;Data Science,Data Scientist,0.95
|
| 3 |
+
2,Jane Smith,32,Master's,Java;System Design;Cloud Computing,Software Development;AI,Software Engineer,0.90
|
| 4 |
+
3,Bob Johnson,24,Bachelor's,Graphic Design;UI/UX;Adobe Creative Suite,Arts;Digital Media,UX Designer,0.88
|
| 5 |
+
4,Emily Davis,26,Bachelor's,Python;Deep Learning;Statistics,Healthcare;AI,AI Researcher,0.93
|
| 6 |
+
5,Michael Brown,30,Master's,Project Management;Communication;Agile,Business;Management,Project Manager,0.87
|
| 7 |
+
6,Sarah Wilson,27,Bachelor's,C++;Embedded Systems;IoT,Electronics;Automation,Embedded Systems Engineer,0.91
|
| 8 |
+
7,David Lee,35,Master's,SQL;Data Warehousing;ETL,Finance;Analytics,Data Analyst,0.89
|
| 9 |
+
8,Laura Martinez,29,Bachelor's,Content Writing;SEO;Social Media,Marketing;Communications,Digital Marketer,0.86
|
| 10 |
+
9,Kevin White,31,Bachelor's,Python;Natural Language Processing;Machine Learning,Linguistics;Technology,NLP Engineer,0.92
|
| 11 |
+
10,Karen Thompson,33,Master's,Financial Analysis;Excel;Econometrics,Finance;Data Analysis,Financial Analyst,0.90
|
| 12 |
+
11,Richard Anderson,40,PhD,Research;Statistical Analysis;Python,Academia;Biotech,Research Scientist,0.94
|
| 13 |
+
12,Jessica Taylor,22,Bachelor's,HTML;CSS;JavaScript,Web Development;Design,Front-end Developer,0.85
|
| 14 |
+
13,Daniel Moore,26,Bachelor's,Java;Algorithms;Data Structures,Software Engineering;Coding,Software Developer,0.88
|
| 15 |
+
14,Olivia Jackson,28,Master's,Data Visualization;Python;R,Data Analysis;Statistics,Data Analyst,0.90
|
| 16 |
+
15,William Martin,34,Master's,Machine Learning;Big Data;Python,Technology;Innovation,Machine Learning Engineer,0.93
|
| 17 |
+
16,Sophia Lee,30,Bachelor's,Digital Marketing;Content Creation;SEO,Marketing;Social Media,Digital Marketer,0.87
|
| 18 |
+
17,James Perez,29,Bachelor's,Python;Data Mining;Statistics,Data Science;Finance,Data Scientist,0.92
|
| 19 |
+
18,Ava Thompson,25,Bachelor's,C#;.NET;Software Design,Technology;Gaming,Software Developer,0.86
|
| 20 |
+
19,Henry Gonzalez,31,Master's,Project Management;Risk Analysis;Negotiation,Business;Management,Project Manager,0.89
|
| 21 |
+
20,Mia Robinson,27,Bachelor's,User Research;UX Design;Prototyping,Design;Technology,UX Designer,0.90
|
| 22 |
+
21,Ethan Clark,24,Bachelor's,Python;Data Analysis;SQL,Finance;Analytics,Data Analyst,0.88
|
| 23 |
+
22,Isabella Rodriguez,28,Master's,Marketing Strategy;Digital Marketing;CRM,Marketing;Business,Marketing Manager,0.91
|
| 24 |
+
23,Liam Lewis,26,Bachelor's,JavaScript;React;Node.js,Web Development;Technology,Full Stack Developer,0.87
|
| 25 |
+
24,Chloe Walker,32,Master's,Data Science;Machine Learning;Python,Healthcare;AI,AI Specialist,0.92
|
| 26 |
+
25,Noah Hall,35,Bachelor's,Network Security;Linux;Python,Cybersecurity;Technology,Cybersecurity Analyst,0.89
|
| 27 |
+
26,Emma Allen,29,Master's,Python;Statistics;Data Mining,Academia;Research,Research Analyst,0.90
|
| 28 |
+
27,Mason Young,33,Bachelor's,Cloud Computing;DevOps;Python,Technology;Business,DevOps Engineer,0.91
|
| 29 |
+
28,Harper King,27,Bachelor's,Content Creation;Graphic Design;Adobe Photoshop,Digital Media;Marketing,Graphic Designer,0.86
|
| 30 |
+
29,Lucas Wright,31,Master's,Python;TensorFlow;Deep Learning,Technology;Research,Deep Learning Engineer,0.93
|
| 31 |
+
30,Amelia Scott,26,Bachelor's,SQL;Data Warehousing;R,Business;Analytics,Business Analyst,0.88
|
| 32 |
+
31,Oliver Green,30,Master's,Java;Spring;Microservices,Software Engineering;Finance,Backend Developer,0.89
|
| 33 |
+
32,Grace Baker,24,Bachelor's,HTML;CSS;JavaScript;UX,Web Design;Technology,Front-end Developer,0.85
|
| 34 |
+
33,Elijah Adams,28,Master's,Machine Learning;R;Python,Biotech;Data Science,Biostatistician,0.92
|
| 35 |
+
34,Lily Nelson,29,Bachelor's,Digital Illustration;Adobe Illustrator;Creativity,Arts;Design,Graphic Designer,0.87
|
| 36 |
+
35,Benjamin Carter,34,Master's,Python;Big Data;Machine Learning,Finance;Technology,Data Engineer,0.91
|
| 37 |
+
36,Ella Mitchell,27,Bachelor's,Copywriting;SEO;Social Media,Marketing;Content,Content Strategist,0.86
|
| 38 |
+
37,Sebastian Perez,30,Master's,Python;JavaScript;Data Visualization,Analytics;Business,Data Analyst,0.90
|
| 39 |
+
38,Victoria Roberts,32,Bachelor's,Business Analysis;Excel;SQL,Business;Finance,Business Analyst,0.89
|
| 40 |
+
39,Jack Turner,28,Bachelor's,Python;Automation;Data Analysis,Technology;Engineering,Automation Engineer,0.90
|
| 41 |
+
40,Aria Phillips,25,Bachelor's,Graphic Design;UX/UI;Adobe XD,Digital Media;Design,UX Designer,0.88
|
| 42 |
+
41,Samuel Campbell,33,Master's,Python;Machine Learning;AI,Technology;Innovation,Machine Learning Engineer,0.93
|
| 43 |
+
42,Zoe Parker,26,Bachelor's,Digital Marketing;Analytics;SEO,Marketing;Business,Digital Marketer,0.87
|
| 44 |
+
43,Adam Evans,29,Master's,Python;Data Analysis;R,Finance;Data Science,Financial Analyst,0.90
|
| 45 |
+
44,Natalie Edwards,27,Bachelor's,Content Writing;Storytelling;SEO,Media;Marketing,Content Strategist,0.86
|
| 46 |
+
45,Aaron Collins,31,Bachelor's,Java;Android;UI Design,Mobile Apps;Technology,Mobile Developer,0.88
|
| 47 |
+
46,Scarlett Stewart,28,Master's,UX Research;Prototyping;Interaction Design,Design;User Experience,UX Researcher,0.91
|
| 48 |
+
47,Isaiah Sanchez,30,Bachelor's,Python;Cybersecurity;Network Security,Technology;Security,Cybersecurity Specialist,0.90
|
| 49 |
+
48,Nora Morris,25,Bachelor's,SQL;Data Analysis;Excel,Business;Analytics,Data Analyst,0.87
|
| 50 |
+
49,Julian Rogers,33,Master's,Cloud Computing;Python;DevOps,Technology;Business,Cloud Engineer,0.91
|
| 51 |
+
50,Stella Reed,27,Bachelor's,Graphic Design;Illustration;Adobe Creative Suite,Arts;Design,Graphic Designer,0.86
|
| 52 |
+
51,Owen Parker,32,Bachelor's,Python;Data Analysis;SQL,Finance;Analytics,Data Analyst,0.90
|
| 53 |
+
52,Chase Murphy,27,Bachelor's,Java;Spring;Microservices,Software Engineering;Technology,Backend Developer,0.89
|
| 54 |
+
53,Aiden Cooper,30,Master's,Python;Machine Learning;TensorFlow,AI;Innovation,Machine Learning Engineer,0.93
|
| 55 |
+
54,Zachary Reed,26,Bachelor's,HTML;CSS;JavaScript,Web Development;Design,Front-end Developer,0.85
|
| 56 |
+
55,Madison Flores,29,Master's,Digital Marketing;SEO;Content Strategy,Marketing;Social Media,Digital Marketer,0.87
|
| 57 |
+
56,Ethan Brooks,31,Bachelor's,SQL;Data Warehousing;ETL,Finance;Data Analytics,Data Analyst,0.89
|
| 58 |
+
57,Ava Jenkins,25,Bachelor's,Graphic Design;Illustration;Adobe Illustrator,Arts;Design,Graphic Designer,0.86
|
| 59 |
+
58,Lucas Powell,34,Master's,Python;NLP;Deep Learning,AI;Language,NLP Engineer,0.92
|
| 60 |
+
59,Mia Simmons,27,Bachelor's,Research;Statistical Analysis;R,Academia;Biotech,Research Scientist,0.94
|
| 61 |
+
60,Benjamin Price,32,Master's,Project Management;Agile;Communication,Business;Management,Project Manager,0.87
|
| 62 |
+
61,Liam King,28,Bachelor's,C++;Embedded Systems;IoT,Electronics;Automation,Embedded Systems Engineer,0.91
|
| 63 |
+
62,Sophia Griffin,29,Master's,Python;Data Visualization;R,Data Analysis;Statistics,Data Analyst,0.90
|
| 64 |
+
63,Noah Wood,30,Bachelor's,Java;Algorithms;Data Structures,Software Development;Coding,Software Developer,0.88
|
| 65 |
+
64,Ella Ramirez,26,Bachelor's,UX Research;Prototyping;Interaction Design,Design;User Experience,UX Researcher,0.91
|
| 66 |
+
65,William Simmons,33,Master's,Cloud Computing;DevOps;Python,Technology;Business,DevOps Engineer,0.91
|
| 67 |
+
66,Olivia Ward,27,Bachelor's,Digital Marketing;Analytics;SEO,Marketing;Business,Digital Marketer,0.87
|
| 68 |
+
67,Jacob Stewart,31,Bachelor's,C#;.NET;Software Design,Technology;Gaming,Software Developer,0.86
|
| 69 |
+
68,Emily Torres,29,Master's,Financial Analysis;Excel;Econometrics,Finance;Data Analysis,Financial Analyst,0.90
|
| 70 |
+
69,Michael Watson,35,PhD,Research;Statistical Analysis;Python,Academia;Biotech,Research Scientist,0.94
|
| 71 |
+
70,Grace Bell,24,Bachelor's,HTML;CSS;JavaScript;UX,Web Design;Technology,Front-end Developer,0.85
|
| 72 |
+
71,Samuel Bailey,28,Master's,Machine Learning;R;Python,Biotech;Data Science,Biostatistician,0.92
|
| 73 |
+
72,Zoe Rivera,29,Bachelor's,Content Writing;Storytelling;SEO,Media;Marketing,Content Strategist,0.86
|
| 74 |
+
73,Henry Cooper,34,Master's,Python;Big Data;Machine Learning,Finance;Technology,Data Engineer,0.91
|
| 75 |
+
74,Chloe Richardson,27,Bachelor's,Digital Illustration;Adobe Illustrator;Creativity,Arts;Design,Graphic Designer,0.87
|
| 76 |
+
75,Alexander Cox,30,Bachelor's,Python;Data Mining;Statistics,Data Science;Finance,Data Scientist,0.92
|
| 77 |
+
76,Victoria Ward,26,Master's,Business Analysis;Excel;SQL,Business;Finance,Business Analyst,0.89
|
| 78 |
+
77,Daniel Foster,28,Bachelor's,Python;Automation;Data Analysis,Technology;Engineering,Automation Engineer,0.90
|
| 79 |
+
78,Natalie Henderson,25,Bachelor's,Copywriting;SEO;Social Media,Marketing;Content,Content Strategist,0.86
|
| 80 |
+
79,Matthew Bryant,31,Bachelor's,Java;Android;UI Design,Mobile Apps;Technology,Mobile Developer,0.88
|
| 81 |
+
80,Lily Alexander,28,Master's,Python;Machine Learning;AI,Technology;Innovation,Machine Learning Engineer,0.93
|
| 82 |
+
81,Logan Carter,30,Bachelor's,SQL;Data Analysis;Excel,Business;Analytics,Data Analyst,0.88
|
| 83 |
+
82,Amelia Morris,27,Master's,Marketing Strategy;Digital Marketing;CRM,Marketing;Business,Marketing Manager,0.91
|
| 84 |
+
83,Jackson Perez,29,Bachelor's,JavaScript;React;Node.js,Web Development;Technology,Full Stack Developer,0.87
|
| 85 |
+
84,Avery Hughes,32,Master's,Data Science;Machine Learning;Python,Healthcare;AI,AI Specialist,0.92
|
| 86 |
+
85,Sebastian Flores,35,Bachelor's,Network Security;Linux;Python,Cybersecurity;Technology,Cybersecurity Analyst,0.89
|
| 87 |
+
86,Harper Hughes,29,Master's,Python;Statistics;Data Mining,Academia;Research,Research Analyst,0.90
|
| 88 |
+
87,Owen Long,33,Bachelor's,Cloud Computing;Python;DevOps,Technology;Business,Cloud Engineer,0.91
|
| 89 |
+
88,Scarlett Foster,27,Bachelor's,Graphic Design;Illustration;Adobe Creative Suite,Arts;Design,Graphic Designer,0.86
|
| 90 |
+
89,Gabriel Price,30,Master's,Python;Data Analysis;SQL,Finance;Analytics,Data Analyst,0.90
|
| 91 |
+
90,Chase Bennett,28,Bachelor's,Java;System Design;Cloud Computing,Software Development;AI,Software Engineer,0.90
|
| 92 |
+
91,Samantha Ross,32,Master's,Python;Deep Learning;Statistics,Healthcare;AI,AI Researcher,0.93
|
| 93 |
+
92,Nathan Rogers,30,Bachelor's,Project Management;Communication;Agile,Business;Management,Project Manager,0.87
|
| 94 |
+
93,Aiden Reed,26,Bachelor's,C++;Embedded Systems;IoT,Electronics;Automation,Embedded Systems Engineer,0.91
|
| 95 |
+
94,Sofia Brooks,28,Master's,SQL;Data Warehousing;ETL,Finance;Analytics,Data Analyst,0.89
|
| 96 |
+
95,Elijah Coleman,35,Bachelor's,HTML;CSS;JavaScript,Web Development;Design,Front-end Developer,0.85
|
| 97 |
+
96,Ava Henderson,29,Master's,Digital Marketing;SEO;Content Creation,Marketing;Communications,Digital Marketer,0.87
|
| 98 |
+
97,Caleb Perry,27,Bachelor's,Python;Natural Language Processing;Machine Learning,Linguistics;Technology,NLP Engineer,0.92
|
| 99 |
+
98,Zoey Patterson,31,Master's,Financial Analysis;Excel;Econometrics,Finance;Data Analysis,Financial Analyst,0.90
|
| 100 |
+
99,Isaac Bailey,40,PhD,Research;Statistical Analysis;Python,Academia;Biotech,Research Scientist,0.94
|
| 101 |
+
100,Evelyn Coleman,22,Bachelor's,HTML;CSS;JavaScript,Web Development;Design,Front-end Developer,0.85
|
| 102 |
+
101,Megan Fisher,23,Master's,Python;Data Analysis;Machine Learning,Technology;Data Science,Data Scientist,0.87
|
| 103 |
+
102,Evan Ramirez,24,PhD,Java;System Design;Cloud Computing,Software Development;AI,Software Engineer,0.88
|
| 104 |
+
103,Landon Carter,25,Bachelor's,Graphic Design;UI/UX;Adobe Creative Suite,Arts;Digital Media,UX Designer,0.89
|
| 105 |
+
104,Hannah Rivera,26,Master's,HTML;CSS;JavaScript,Healthcare;AI,AI Researcher,0.90
|
| 106 |
+
105,Connor Brooks,27,PhD,C++;Embedded Systems;IoT,Business;Management,Project Manager,0.91
|
| 107 |
+
106,Aaliyah Perry,28,Bachelor's,SQL;Data Warehousing;ETL,Finance;Analytics,Embedded Systems Engineer,0.92
|
| 108 |
+
107,Brandon Hayes,29,Master's,JavaScript;React;Node.js,Marketing;Communications,Data Analyst,0.93
|
| 109 |
+
108,Sydney Coleman,30,PhD,Digital Marketing;SEO;Content Creation,Cybersecurity;Technology,Digital Marketer,0.94
|
| 110 |
+
109,Dylan Bennett,31,Bachelor's,Project Management;Agile;Communication,Academia;Research,NLP Engineer,0.95
|
| 111 |
+
110,Avery Sanders,32,Master's,Python;Deep Learning;Statistics,Web Development;Design,Financial Analyst,0.85
|
| 112 |
+
111,Chase Morgan,33,PhD,Financial Analysis;Excel;Econometrics,Technology;Data Science,Research Scientist,0.86
|
| 113 |
+
112,Sienna Price,34,Bachelor's,Research;Statistical Analysis;Python,Software Development;AI,Front-end Developer,0.87
|
| 114 |
+
113,Hunter Patterson,35,Master's,Cloud Computing;DevOps;Python,Arts;Digital Media,Software Developer,0.88
|
| 115 |
+
114,Riley Murphy,36,PhD,Java;Algorithms;Data Structures,Healthcare;AI,Data Analyst,0.89
|
| 116 |
+
115,Madeline Jenkins,37,Bachelor's,UX Research;Prototyping;Interaction Design,Business;Management,Machine Learning Engineer,0.90
|
| 117 |
+
116,Adrian Collins,38,Master's,Copywriting;SEO;Social Media,Finance;Analytics,Digital Marketer,0.91
|
| 118 |
+
117,Sophie Gray,39,PhD,Network Security;Linux;Python,Marketing;Communications,Data Scientist,0.92
|
| 119 |
+
118,Jordan Long,40,Bachelor's,C#;.NET;Software Design,Cybersecurity;Technology,Software Developer,0.93
|
| 120 |
+
119,Brianna Foster,41,Master's,Data Visualization;Python;R,Academia;Research,Project Manager,0.94
|
| 121 |
+
120,Zane Powell,22,PhD,Machine Learning;Big Data;Python,Web Development;Design,UX Designer,0.95
|
| 122 |
+
121,Molly Jenkins,23,Bachelor's,Python;Data Analysis;Machine Learning,Technology;Data Science,Data Analyst,0.85
|
| 123 |
+
122,Austin Rivera,24,Master's,Java;System Design;Cloud Computing,Software Development;AI,Marketing Manager,0.86
|
| 124 |
+
123,Paige Rogers,25,PhD,Graphic Design;UI/UX;Adobe Creative Suite,Arts;Digital Media,Full Stack Developer,0.87
|
| 125 |
+
124,Cole Barnes,26,Bachelor's,HTML;CSS;JavaScript,Healthcare;AI,AI Specialist,0.88
|
| 126 |
+
125,Leah Butler,27,Master's,C++;Embedded Systems;IoT,Business;Management,Cybersecurity Analyst,0.89
|
| 127 |
+
126,Carter Brooks,28,PhD,SQL;Data Warehousing;ETL,Finance;Analytics,Research Analyst,0.90
|
| 128 |
+
127,Eleanor Morris,29,Bachelor's,JavaScript;React;Node.js,Marketing;Communications,DevOps Engineer,0.91
|
| 129 |
+
128,Miles Rogers,30,Master's,Digital Marketing;SEO;Content Creation,Cybersecurity;Technology,Graphic Designer,0.92
|
| 130 |
+
129,Lucy Howard,31,PhD,Project Management;Agile;Communication,Academia;Research,Deep Learning Engineer,0.93
|
| 131 |
+
130,Hunter Price,32,Bachelor's,Python;Deep Learning;Statistics,Web Development;Design,Business Analyst,0.94
|
| 132 |
+
131,Naomi Wright,23,Master's,Financial Analysis;Excel;Econometrics,Technology;Data Science,Backend Developer,0.95
|
| 133 |
+
132,Brandon Wood,34,PhD,Research;Statistical Analysis;Python,Software Development;AI,Front-end Developer,0.85
|
| 134 |
+
133,Autumn Baker,35,Bachelor's,Cloud Computing;DevOps;Python,Arts;Digital Media,Biostatistician,0.86
|
| 135 |
+
134,Grayson James,36,Master's,Java;Algorithms;Data Structures,Healthcare;AI,Graphic Designer,0.87
|
| 136 |
+
135,Mackenzie Perry,37,PhD,UX Research;Prototyping;Interaction Design,Business;Management,Data Engineer,0.88
|
| 137 |
+
136,Jason Simmons,38,Bachelor's,Copywriting;SEO;Social Media,Finance;Analytics,Content Strategist,0.89
|
| 138 |
+
137,Elena Coleman,39,Master's,Network Security;Linux;Python,Marketing;Communications,Data Analyst,0.90
|
| 139 |
+
138,Tyler Carter,40,PhD,C#;.NET;Software Design,Cybersecurity;Technology,Business Analyst,0.91
|
| 140 |
+
139,Ruby Mitchell,41,Bachelor's,Data Visualization;Python;R,Academia;Research,Automation Engineer,0.92
|
| 141 |
+
140,Declan Adams,22,Master's,Machine Learning;Big Data;Python,Web Development;Design,UX Designer,0.93
|
| 142 |
+
141,Lydia Edwards,23,PhD,Python;Data Analysis;Machine Learning,Technology;Data Science,Machine Learning Engineer,0.94
|
| 143 |
+
142,Eric Hughes,24,Bachelor's,Java;System Design;Cloud Computing,Software Development;AI,Digital Marketer,0.95
|
| 144 |
+
143,Melanie Nelson,25,Master's,Graphic Design;UI/UX;Adobe Creative Suite,Arts;Digital Media,Financial Analyst,0.85
|
| 145 |
+
144,Julian Wright,26,PhD,HTML;CSS;JavaScript,Healthcare;AI,Content Strategist,0.86
|
| 146 |
+
145,Arianna Brooks,27,Bachelor's,C++;Embedded Systems;IoT,Business;Management,Mobile Developer,0.87
|
| 147 |
+
146,Cooper Bell,28,Master's,SQL;Data Warehousing;ETL,Finance;Analytics,UX Researcher,0.88
|
| 148 |
+
147,Faith Parker,29,PhD,JavaScript;React;Node.js,Marketing;Communications,Cybersecurity Specialist,0.89
|
| 149 |
+
148,Maximillian Reed,30,Bachelor's,Digital Marketing;SEO;Content Creation,Cybersecurity;Technology,Data Analyst,0.90
|
| 150 |
+
149,Sadie Turner,31,Master's,Project Management;Agile;Communication,Academia;Research,Cloud Engineer,0.91
|
| 151 |
+
150,Jaxon Carter,32,PhD,Python;Deep Learning;Statistics,Web Development;Design,Graphic Designer,0.92
|
| 152 |
+
151,Isabel Rivera,23,Bachelor's,Financial Analysis;Excel;Econometrics,Technology;Data Science,Data Scientist,0.93
|
| 153 |
+
152,Carson Flores,24,Master's,Research;Statistical Analysis;Python,Software Development;AI,Software Engineer,0.94
|
| 154 |
+
153,Katherine Collins,25,PhD,Cloud Computing;DevOps;Python,Arts;Digital Media,UX Designer,0.95
|
| 155 |
+
154,Leo Morgan,26,Bachelor's,Java;Algorithms;Data Structures,Healthcare;AI,AI Researcher,0.85
|
| 156 |
+
155,Ariella Perry,37,Master's,UX Research;Prototyping;Interaction Design,Business;Management,Project Manager,0.86
|
| 157 |
+
156,Ryder Murphy,38,PhD,Copywriting;SEO;Social Media,Finance;Analytics,Embedded Systems Engineer,0.87
|
| 158 |
+
157,Elise Bennett,39,Bachelor's,Network Security;Linux;Python,Marketing;Communications,Data Analyst,0.88
|
| 159 |
+
158,Cameron Reed,40,Master's,C#;.NET;Software Design,Cybersecurity;Technology,Digital Marketer,0.89
|
| 160 |
+
159,Jasmine Edwards,41,PhD,Data Visualization;Python;R,Academia;Research,NLP Engineer,0.90
|
| 161 |
+
160,Parker Jenkins,22,Bachelor's,Machine Learning;Big Data;Python,Web Development;Design,Financial Analyst,0.91
|
| 162 |
+
161,Nicole Hughes,23,Master's,Python;Data Analysis;Machine Learning,Technology;Data Science,Research Scientist,0.92
|
| 163 |
+
162,Brady Price,24,PhD,Java;System Design;Cloud Computing,Software Development;AI,Front-end Developer,0.93
|
| 164 |
+
163,Clara Ross,25,Bachelor's,Graphic Design;UI/UX;Adobe Creative Suite,Arts;Digital Media,Software Developer,0.94
|
| 165 |
+
164,Silas Murphy,26,Master's,HTML;CSS;JavaScript,Healthcare;AI,Data Analyst,0.95
|
| 166 |
+
165,Paisley Rogers,27,PhD,C++;Embedded Systems;IoT,Business;Management,Machine Learning Engineer,0.85
|
| 167 |
+
166,Miles Foster,28,Bachelor's,SQL;Data Warehousing;ETL,Finance;Analytics,Digital Marketer,0.86
|
| 168 |
+
167,Jade Wood,29,Master's,JavaScript;React;Node.js,Marketing;Communications,Data Scientist,0.87
|
| 169 |
+
168,Weston Perry,30,PhD,Digital Marketing;SEO;Content Creation,Cybersecurity;Technology,Software Developer,0.88
|
| 170 |
+
169,Aubrey Jenkins,31,Bachelor's,Project Management;Agile;Communication,Academia;Research,Project Manager,0.89
|
| 171 |
+
170,Harrison Collins,32,Master's,Python;Deep Learning;Statistics,Web Development;Design,UX Designer,0.90
|
| 172 |
+
171,Luna Gray,33,PhD,Financial Analysis;Excel;Econometrics,Technology;Data Science,Data Analyst,0.91
|
| 173 |
+
172,Gavin Long,34,Bachelor's,Research;Statistical Analysis;Python,Software Development;AI,Marketing Manager,0.92
|
| 174 |
+
173,Penelope Foster,35,Master's,Cloud Computing;DevOps;Python,Arts;Digital Media,Full Stack Developer,0.93
|
| 175 |
+
174,Austin Powell,36,PhD,Java;Algorithms;Data Structures,Healthcare;AI,AI Specialist,0.94
|
| 176 |
+
175,Vivian Butler,37,Bachelor's,UX Research;Prototyping;Interaction Design,Business;Management,Cybersecurity Analyst,0.95
|
| 177 |
+
176,Xavier Barnes,38,Master's,Copywriting;SEO;Social Media,Finance;Analytics,Research Analyst,0.85
|
| 178 |
+
177,Stella James,39,PhD,Network Security;Linux;Python,Marketing;Communications,DevOps Engineer,0.86
|
| 179 |
+
178,Caden Morgan,40,Bachelor's,C#;.NET;Software Design,Cybersecurity;Technology,Graphic Designer,0.87
|
| 180 |
+
179,Maya Ross,41,Master's,Data Visualization;Python;R,Academia;Research,Deep Learning Engineer,0.88
|
| 181 |
+
180,Jace Reed,22,PhD,Machine Learning;Big Data;Python,Web Development;Design,Business Analyst,0.89
|
| 182 |
+
181,Kendall Rivera,23,Bachelor's,Python;Data Analysis;Machine Learning,Technology;Data Science,Backend Developer,0.90
|
| 183 |
+
182,Rylan Perry,24,Master's,Java;System Design;Cloud Computing,Software Development;AI,Front-end Developer,0.91
|
| 184 |
+
183,Adalyn Jenkins,25,PhD,Graphic Design;UI/UX;Adobe Creative Suite,Arts;Digital Media,Biostatistician,0.92
|
| 185 |
+
184,Zion Collins,26,Bachelor's,HTML;CSS;JavaScript,Healthcare;AI,Graphic Designer,0.93
|
| 186 |
+
185,Emery Gray,27,Master's,C++;Embedded Systems;IoT,Business;Management,Data Engineer,0.94
|
| 187 |
+
186,Nolan Long,28,PhD,SQL;Data Warehousing;ETL,Finance;Analytics,Content Strategist,0.95
|
| 188 |
+
187,Ivy Foster,29,Bachelor's,JavaScript;React;Node.js,Marketing;Communications,Data Analyst,0.85
|
| 189 |
+
188,Tristan Powell,30,Master's,Digital Marketing;SEO;Content Creation,Cybersecurity;Technology,Business Analyst,0.86
|
| 190 |
+
189,Olivia Butler,31,PhD,Project Management;Agile;Communication,Academia;Research,Automation Engineer,0.87
|
| 191 |
+
190,Damian Barnes,32,Bachelor's,Python;Deep Learning;Statistics,Web Development;Design,UX Designer,0.88
|
| 192 |
+
191,Sienna James,33,Master's,Financial Analysis;Excel;Econometrics,Technology;Data Science,Machine Learning Engineer,0.89
|
| 193 |
+
192,Jasper Morgan,34,PhD,Research;Statistical Analysis;Python,Software Development;AI,Digital Marketer,0.90
|
| 194 |
+
193,Eleanor Ross,35,Bachelor's,Cloud Computing;DevOps;Python,Arts;Digital Media,Financial Analyst,0.91
|
| 195 |
+
194,Ezra Reed,36,Master's,Java;Algorithms;Data Structures,Healthcare;AI,Content Strategist,0.92
|
| 196 |
+
195,Lola Rivera,37,PhD,UX Research;Prototyping;Interaction Design,Business;Management,Mobile Developer,0.93
|
| 197 |
+
196,Easton Perry,38,Bachelor's,Copywriting;SEO;Social Media,Finance;Analytics,UX Researcher,0.94
|
| 198 |
+
197,Aurora Jenkins,39,Master's,Network Security;Linux;Python,Marketing;Communications,Cybersecurity Specialist,0.95
|
| 199 |
+
198,Camden Collins,40,PhD,C#;.NET;Software Design,Cybersecurity;Technology,Data Analyst,0.85
|
| 200 |
+
199,Hazel Gray,41,Bachelor's,Data Visualization;Python;R,Academia;Research,Cloud Engineer,0.86
|
| 201 |
+
200,Micah Long,22,Master's,Machine Learning;Big Data;Python,Web Development;Design,Graphic Designer,0.87
|
app.py
ADDED
|
@@ -0,0 +1,57 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
#import libraries
|
| 2 |
+
import gradio as gr
|
| 3 |
+
from genai_response import *
|
| 4 |
+
|
| 5 |
+
|
| 6 |
+
def add_skill(skill, skills):
|
| 7 |
+
if skill and len(skills) < 10:
|
| 8 |
+
skills.append(skill)
|
| 9 |
+
return skills, ""
|
| 10 |
+
|
| 11 |
+
def add_interest(interest, interests):
|
| 12 |
+
if interest and len(interests) < 4:
|
| 13 |
+
interests.append(interest)
|
| 14 |
+
return interests, ""
|
| 15 |
+
|
| 16 |
+
def submit(bio, skills, interests):
|
| 17 |
+
skills_text = ";".join(skills) if skills else "No skills added."
|
| 18 |
+
interests_text = ";".join(interests) if interests else "No interests added."
|
| 19 |
+
final_output = main(bio, skills_text, interests_text)
|
| 20 |
+
return f"""
|
| 21 |
+
<h3 style='text-align: center; color: #28a745; font-weight: bold;'>{final_output}</h3>"""
|
| 22 |
+
|
| 23 |
+
skills, interests = [], []
|
| 24 |
+
|
| 25 |
+
with gr.Blocks() as app:
|
| 26 |
+
# Header Section with centered title in dark mode
|
| 27 |
+
gr.Markdown("""
|
| 28 |
+
<h1 style='text-align: center; color: #003366; font-size: 36px;'>AI Career Advisor</h1>
|
| 29 |
+
""")
|
| 30 |
+
|
| 31 |
+
# Bio Section
|
| 32 |
+
bio_input = gr.Textbox(label="Enter your bio:", lines=3)
|
| 33 |
+
|
| 34 |
+
# Skills Section
|
| 35 |
+
with gr.Row():
|
| 36 |
+
skill_input = gr.Textbox(label="Enter a skill:", placeholder="e.g., Python", interactive=True)
|
| 37 |
+
add_skill_button = gr.Button("+ Add Skill", variant="primary", size="sm")
|
| 38 |
+
skills_display = gr.Textbox(label="Your Skills:", interactive=False, lines=1)
|
| 39 |
+
add_skill_button.click(add_skill, inputs=[skill_input, gr.State(skills)], outputs=[skills_display, skill_input])
|
| 40 |
+
|
| 41 |
+
# Interests Section
|
| 42 |
+
with gr.Row():
|
| 43 |
+
interest_input = gr.Textbox(label="Enter an interest:", placeholder="e.g., Reading", interactive=True)
|
| 44 |
+
add_interest_button = gr.Button("+ Add Interest", variant="primary", size="sm")
|
| 45 |
+
interests_display = gr.Textbox(label="Your Interests:", interactive=False, lines=1)
|
| 46 |
+
add_interest_button.click(add_interest, inputs=[interest_input, gr.State(interests)], outputs=[interests_display, interest_input])
|
| 47 |
+
|
| 48 |
+
# Submit Button
|
| 49 |
+
submit_button = gr.Button("Submit", variant="primary", size="sm")
|
| 50 |
+
output_display = gr.Markdown()
|
| 51 |
+
submit_button.click(submit, inputs=[bio_input, gr.State(skills), gr.State(interests)], outputs=output_display)
|
| 52 |
+
|
| 53 |
+
# Footer Section with centered text
|
| 54 |
+
gr.Markdown("<div style='text-align: center;'>© 2025 AI Career Advisor. All Rights Reserved.</div>")
|
| 55 |
+
|
| 56 |
+
# Launch the Gradio App
|
| 57 |
+
app.launch()
|
create_vector_db.py
ADDED
|
@@ -0,0 +1,24 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
#import libraries
|
| 2 |
+
from langchain.vectorstores import FAISS
|
| 3 |
+
from langchain.embeddings import HuggingFaceEmbeddings
|
| 4 |
+
from data_processing import *
|
| 5 |
+
import pickle
|
| 6 |
+
|
| 7 |
+
|
| 8 |
+
# to store the embedding of skillset and interest
|
| 9 |
+
def created_vector_database():
|
| 10 |
+
# Initialize HuggingFace embedding model
|
| 11 |
+
embedding_model = HuggingFaceEmbeddings(model_name="all-MiniLM-L6-v2")
|
| 12 |
+
|
| 13 |
+
# embed skill-set and interests
|
| 14 |
+
documents = return_clean_df()
|
| 15 |
+
|
| 16 |
+
# Generate embeddings for documents
|
| 17 |
+
doc_embeddings = [embedding_model.embed_query(doc) for doc in documents]
|
| 18 |
+
|
| 19 |
+
# Create FAISS vector store
|
| 20 |
+
vectorstore = FAISS.from_texts(texts=documents, embedding=embedding_model)
|
| 21 |
+
with open("vector_db.pkl", "wb") as f:
|
| 22 |
+
pickle.dump(vectorstore, f)
|
| 23 |
+
|
| 24 |
+
created_vector_database()
|
data_processing.py
ADDED
|
@@ -0,0 +1,46 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
#import libraries
|
| 2 |
+
import pandas as pd
|
| 3 |
+
import nltk
|
| 4 |
+
from nltk.corpus import stopwords
|
| 5 |
+
from nltk.tokenize import word_tokenize
|
| 6 |
+
from string import punctuation
|
| 7 |
+
|
| 8 |
+
# Download the NLTK stopwords
|
| 9 |
+
nltk.download('stopwords')
|
| 10 |
+
nltk.download('punkt')
|
| 11 |
+
|
| 12 |
+
|
| 13 |
+
# clean text
|
| 14 |
+
def clean_text(text):
|
| 15 |
+
# Convert to lowercase
|
| 16 |
+
text = text.lower()
|
| 17 |
+
|
| 18 |
+
# Tokenize the text using NLTK's word_tokenize
|
| 19 |
+
words = word_tokenize(text)
|
| 20 |
+
|
| 21 |
+
# Remove punctuation (except semicolon) and stopwords
|
| 22 |
+
punctuation_to_remove = set(punctuation) - {';'}
|
| 23 |
+
stop_words = set(stopwords.words('english'))
|
| 24 |
+
|
| 25 |
+
cleaned_words = [
|
| 26 |
+
word for word in words
|
| 27 |
+
if word not in punctuation_to_remove and word not in stop_words
|
| 28 |
+
]
|
| 29 |
+
|
| 30 |
+
# Join words back into a single string
|
| 31 |
+
cleaned_text = ' '.join(cleaned_words)
|
| 32 |
+
return cleaned_text
|
| 33 |
+
|
| 34 |
+
|
| 35 |
+
# return final dataframe
|
| 36 |
+
def return_clean_df():
|
| 37 |
+
df = pd.read_csv('AI-based Career Recommendation System.csv')
|
| 38 |
+
df = df[['Skills', 'Interests', 'Recommended_Career']]
|
| 39 |
+
|
| 40 |
+
# clean columns having text data
|
| 41 |
+
for column in df.columns:
|
| 42 |
+
df[column] = df[column].apply(lambda x : clean_text(x))
|
| 43 |
+
|
| 44 |
+
# concatenate all the text data
|
| 45 |
+
df['text'] = 'Skills : ' + df['Skills'] + '\n\n' + 'Interests : ' + df['Interests'] + '\n\n' + 'Recommended Career : ' + df['Recommended_Career']
|
| 46 |
+
return df['text'].to_list()
|
genai_response.py
ADDED
|
@@ -0,0 +1,148 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
#import libraries
|
| 2 |
+
import requests
|
| 3 |
+
from langchain.memory import ConversationBufferMemory
|
| 4 |
+
from langchain.prompts import PromptTemplate
|
| 5 |
+
from langchain.chains import LLMChain
|
| 6 |
+
from langchain.vectorstores import FAISS
|
| 7 |
+
import json
|
| 8 |
+
from langchain.embeddings import HuggingFaceEmbeddings
|
| 9 |
+
from langchain_core.runnables import RunnableLambda
|
| 10 |
+
from langchain.prompts import PromptTemplate
|
| 11 |
+
import pickle
|
| 12 |
+
|
| 13 |
+
|
| 14 |
+
# Initialize HuggingFace embedding model
|
| 15 |
+
embedding_model = HuggingFaceEmbeddings(model_name="all-MiniLM-L6-v2")
|
| 16 |
+
|
| 17 |
+
#load vector databse
|
| 18 |
+
with open("vector_db.pkl", "rb") as f:
|
| 19 |
+
vectorstore = pickle.load(f)
|
| 20 |
+
|
| 21 |
+
# Google Gemini API setup
|
| 22 |
+
GEMINI_API_URL = "https://generativelanguage.googleapis.com/v1beta/models/gemini-1.5-flash:generateContent?key=AIzaSyB8AgH8rBUdzVeUKogxwqPN8Q8JcIvEM7o"
|
| 23 |
+
|
| 24 |
+
|
| 25 |
+
# Function to interact with Gemini API
|
| 26 |
+
def call_gemini(prompt: str):
|
| 27 |
+
|
| 28 |
+
if hasattr(prompt, "to_string"):
|
| 29 |
+
prompt = prompt.to_string() # Convert to string if it's a LangChain prompt object
|
| 30 |
+
elif isinstance(prompt, str):
|
| 31 |
+
prompt = prompt # Already a string, no change needed
|
| 32 |
+
else:
|
| 33 |
+
raise TypeError(f"Unsupported prompt type: {type(prompt)}")
|
| 34 |
+
|
| 35 |
+
# Set the headers
|
| 36 |
+
headers = {
|
| 37 |
+
'Content-Type': 'application/json',
|
| 38 |
+
}
|
| 39 |
+
|
| 40 |
+
# Define the payload (the data to send in the POST request)
|
| 41 |
+
payload = {
|
| 42 |
+
"contents": [
|
| 43 |
+
{
|
| 44 |
+
"parts": [
|
| 45 |
+
{"text": prompt}
|
| 46 |
+
]
|
| 47 |
+
}
|
| 48 |
+
]
|
| 49 |
+
}
|
| 50 |
+
|
| 51 |
+
# Make the POST request
|
| 52 |
+
response = requests.post(GEMINI_API_URL, headers=headers, data=json.dumps(payload))
|
| 53 |
+
|
| 54 |
+
# Check the response status and print the response
|
| 55 |
+
if response.status_code == 200:
|
| 56 |
+
return response.json()['candidates'][0]['content']['parts'][0]['text']
|
| 57 |
+
else:
|
| 58 |
+
print(f"Error: {response.status_code}")
|
| 59 |
+
return response.text
|
| 60 |
+
|
| 61 |
+
|
| 62 |
+
# Function to retrieve similar documents from FAISS
|
| 63 |
+
def faiss_retrieval(query: str, k=3):
|
| 64 |
+
docs = vectorstore.similarity_search(query, k=k)
|
| 65 |
+
return [doc.page_content for doc in docs]
|
| 66 |
+
|
| 67 |
+
|
| 68 |
+
|
| 69 |
+
# # Initialize memory for the agent
|
| 70 |
+
memory = ConversationBufferMemory(memory_key="chat_history")
|
| 71 |
+
|
| 72 |
+
# Custom ReAct prompt template
|
| 73 |
+
react_prompt = PromptTemplate(
|
| 74 |
+
input_variables=["query", "retrieved_docs", "chat_history"],
|
| 75 |
+
template= """
|
| 76 |
+
You are an intelligent AI system that advises careers to students and working professionals based on their skillset and interests. You follow the ReAct reasoning framework to analyze queries, retrieve relevant information from vector database, and provide well-informed career suggestions.
|
| 77 |
+
|
| 78 |
+
### Context:
|
| 79 |
+
- You have access to retrieved documents from a FAISS vector database.
|
| 80 |
+
- Your task is to reason about the query, extract relevant information from the retrieved documents, and generate a final answer.
|
| 81 |
+
- If the retrieved documents are not relevant to the query, use your reasoning power to generate an appropriate response.
|
| 82 |
+
- Refer to the given sample queries and responses as a guideline.
|
| 83 |
+
- Provide career advice tailored to the user's bio, skills, and interests. Your response should be direct, actionable, and insightful, without mentioning your thinking process. Focus on practical steps, relevant resources, and strategic guidance to help the user advance in their career.
|
| 84 |
+
|
| 85 |
+
### Sample Queries & Responses:
|
| 86 |
+
Query 1:
|
| 87 |
+
Bio- An aspiring data scientist with a passion for uncovering insights from data and building predictive models. With a strong foundation in statistics, machine learning, and programming languages like Python and SQL. Driven by curiosity and a love for data-driven decision-making, [Your Name] aims to contribute to innovative solutions in business, healthcare, or technology.
|
| 88 |
+
Skills- Python; Data Analysis; Machine Learning
|
| 89 |
+
Interests- Technology; Data Science
|
| 90 |
+
|
| 91 |
+
Answer: Data Scientist
|
| 92 |
+
|
| 93 |
+
|
| 94 |
+
Query 2:
|
| 95 |
+
Bio- A passionate UX designer with a keen eye for user-centered design and intuitive interfaces. With a background in graphic design, specializing in creating seamless digital experiences that enhance usability and accessibility.
|
| 96 |
+
Skills- User Research; UX Design; Prototyping
|
| 97 |
+
Interests- Design; Technology
|
| 98 |
+
|
| 99 |
+
Answer: UX Designer
|
| 100 |
+
|
| 101 |
+
|
| 102 |
+
### Query:
|
| 103 |
+
{query}
|
| 104 |
+
|
| 105 |
+
|
| 106 |
+
### Previous Conversation:
|
| 107 |
+
{chat_history}
|
| 108 |
+
|
| 109 |
+
### Thought Process:
|
| 110 |
+
1. Analyze the query – Identify key skills, interests, and career goals.
|
| 111 |
+
2. Extract relevant details – Look for matching career options in retrieved documents.
|
| 112 |
+
3. Generate a response – If relevant documents are found, use them to formulate an answer; otherwise, rely on reasoning to suggest a career path.
|
| 113 |
+
|
| 114 |
+
### Answer:
|
| 115 |
+
|
| 116 |
+
"""
|
| 117 |
+
)
|
| 118 |
+
|
| 119 |
+
|
| 120 |
+
|
| 121 |
+
# Function to run the ReAct agent manually
|
| 122 |
+
def run_react_agent(query, memory, vectorstore, llm):
|
| 123 |
+
# Format memory (previous conversation)
|
| 124 |
+
chat_history = memory.load_memory_variables({}).get("chat_history", "")
|
| 125 |
+
|
| 126 |
+
# Use the custom ReAct prompt
|
| 127 |
+
chain = react_prompt | llm | RunnableLambda(lambda x: x.strip()) # Ensures clean output
|
| 128 |
+
response = chain.invoke({
|
| 129 |
+
"query": query,
|
| 130 |
+
"chat_history": chat_history
|
| 131 |
+
})
|
| 132 |
+
|
| 133 |
+
# Save response to memory
|
| 134 |
+
memory.save_context({"input": query}, {"output": response})
|
| 135 |
+
|
| 136 |
+
return response
|
| 137 |
+
|
| 138 |
+
|
| 139 |
+
# take user input and render the final output
|
| 140 |
+
def main(bio, skills, interest):
|
| 141 |
+
# bio = "I’m a cybersecurity expert with a passion for protecting digital assets and mitigating cyber threats. With over a decade of experience in ethical hacking, threat intelligence, and network security, I specialize in identifying vulnerabilities and implementing robust security solutions. My journey in cybersecurity began with a deep curiosity for how systems work—and how they can be exploited. Over the years, I’ve honed my skills in penetration testing, incident response, and security architecture, working with organizations ranging from startups to Fortune 500 companies."
|
| 142 |
+
# skills = "Network Security;Linux;Python"
|
| 143 |
+
# interest = "Cybersecurity;Technology"
|
| 144 |
+
|
| 145 |
+
# Example usage
|
| 146 |
+
query = "\nBio- {}\nSkills- {}\nInterests- {}".format(bio, skills, interest)
|
| 147 |
+
final_output = run_react_agent(query, memory, vectorstore, call_gemini) # Using Gemini API as LLM
|
| 148 |
+
return final_output
|
requirements.txt
ADDED
|
@@ -0,0 +1,34 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
faiss-cpu==1.10.0
|
| 2 |
+
fastapi==0.115.8
|
| 3 |
+
google-api-core==2.24.1
|
| 4 |
+
google-auth==2.38.0
|
| 5 |
+
google-cloud-core==2.4.1
|
| 6 |
+
google-cloud-storage==3.0.0
|
| 7 |
+
google-crc32c==1.6.0
|
| 8 |
+
google-resumable-media==2.7.2
|
| 9 |
+
googleapis-common-protos==1.67.0
|
| 10 |
+
gradio==4.44.1
|
| 11 |
+
gradio_client==1.3.0
|
| 12 |
+
greenlet==3.1.1
|
| 13 |
+
huggingface-hub==0.29.1
|
| 14 |
+
langchain==0.3.19
|
| 15 |
+
langchain-community==0.3.18
|
| 16 |
+
langchain-core==0.3.37
|
| 17 |
+
langchain-text-splitters==0.3.6
|
| 18 |
+
langsmith==0.3.8
|
| 19 |
+
nltk==3.9.1
|
| 20 |
+
numpy==1.26.4
|
| 21 |
+
pandas==2.2.3
|
| 22 |
+
pydantic==2.10.6
|
| 23 |
+
pydantic-settings==2.7.1
|
| 24 |
+
pydantic_core==2.27.2
|
| 25 |
+
regex==2024.11.6
|
| 26 |
+
requests==2.32.3
|
| 27 |
+
requests-toolbelt==1.0.0
|
| 28 |
+
safetensors==0.5.2
|
| 29 |
+
scikit-learn==1.6.1
|
| 30 |
+
scipy==1.13.1
|
| 31 |
+
sentence-transformers==3.4.1
|
| 32 |
+
tokenizers==0.21.0
|
| 33 |
+
torch==2.6.0
|
| 34 |
+
transformers==4.49.0
|
vector_db.pkl
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:22aabbd631967049d40d3fbbdba69f59c0c7b79f53b40980f544fbd7e6f0e9c2
|
| 3 |
+
size 91754667
|