Kelvinhjk commited on
Commit
7a1ce7c
·
1 Parent(s): a5c3ddd

Upload 12 files

Browse files
data/Contexts.docx ADDED
Binary file (20.1 kB). View file
 
data/answer.json ADDED
@@ -0,0 +1,1264 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "data": [
3
+ {
4
+ "paragraphs": [
5
+ {
6
+ "qas": [
7
+ {
8
+ "question": "What is the purpose of setting the academic requirements for bachelor of Computer Science program in Swinburne?\n",
9
+ "id": 1006606,
10
+ "answers": [
11
+ {
12
+ "answer_id": 890143,
13
+ "document_id": 1514544,
14
+ "question_id": 1006606,
15
+ "text": "ensure that students have the background knowledge needed to excel in their studies",
16
+ "answer_start": 145,
17
+ "answer_end": 228,
18
+ "answer_category": null
19
+ }
20
+ ],
21
+ "is_impossible": false
22
+ },
23
+ {
24
+ "question": "What are the academic requirements for admission into the Bachelor of Computer Science program at Swinburne University?",
25
+ "id": 1006607,
26
+ "answers": [
27
+ {
28
+ "answer_id": 890144,
29
+ "document_id": 1514544,
30
+ "question_id": 1006607,
31
+ "text": "vary depending on the country or educational system",
32
+ "answer_start": 287,
33
+ "answer_end": 338,
34
+ "answer_category": null
35
+ }
36
+ ],
37
+ "is_impossible": false
38
+ },
39
+ {
40
+ "question": "What is the prerequisite subject requirement for the program?",
41
+ "id": 1006608,
42
+ "answers": [
43
+ {
44
+ "answer_id": 890145,
45
+ "document_id": 1514544,
46
+ "question_id": 1006608,
47
+ "text": "MA (Mathematics) or AM (Applied Mathematics)",
48
+ "answer_start": 371,
49
+ "answer_end": 415,
50
+ "answer_category": null
51
+ }
52
+ ],
53
+ "is_impossible": false
54
+ },
55
+ {
56
+ "question": "What is the minimum grade requirement for STPM qualifications?",
57
+ "id": 1006609,
58
+ "answers": [
59
+ {
60
+ "answer_id": 890146,
61
+ "document_id": 1514544,
62
+ "question_id": 1006609,
63
+ "text": "2P grades",
64
+ "answer_start": 489,
65
+ "answer_end": 498,
66
+ "answer_category": null
67
+ }
68
+ ],
69
+ "is_impossible": false
70
+ },
71
+ {
72
+ "question": "What is the minimum grade requirement for UEC qualifications?",
73
+ "id": 1006610,
74
+ "answers": [
75
+ {
76
+ "answer_id": 890147,
77
+ "document_id": 1514544,
78
+ "question_id": 1006610,
79
+ "text": "5B grades, including the pre-requisite subjects",
80
+ "answer_start": 572,
81
+ "answer_end": 619,
82
+ "answer_category": null
83
+ }
84
+ ],
85
+ "is_impossible": false
86
+ },
87
+ {
88
+ "question": "How many 'A' Level passes are required for admission?",
89
+ "id": 1006611,
90
+ "answers": [
91
+ {
92
+ "answer_id": 890148,
93
+ "document_id": 1514544,
94
+ "question_id": 1006611,
95
+ "text": "minimum of 3 'A' Level passes",
96
+ "answer_start": 701,
97
+ "answer_end": 730,
98
+ "answer_category": null
99
+ }
100
+ ],
101
+ "is_impossible": false
102
+ },
103
+ {
104
+ "question": "What is the minimum ATAR score required for admission?",
105
+ "id": 1006612,
106
+ "answers": [
107
+ {
108
+ "answer_id": 890149,
109
+ "document_id": 1514544,
110
+ "question_id": 1006612,
111
+ "text": "score of 70",
112
+ "answer_start": 764,
113
+ "answer_end": 775,
114
+ "answer_category": null
115
+ }
116
+ ],
117
+ "is_impossible": false
118
+ },
119
+ {
120
+ "question": "What is the minimum overall percentage required for the Australian Foundation program?",
121
+ "id": 1006613,
122
+ "answers": [
123
+ {
124
+ "answer_id": 890150,
125
+ "document_id": 1514544,
126
+ "question_id": 1006613,
127
+ "text": "65%",
128
+ "answer_start": 879,
129
+ "answer_end": 882,
130
+ "answer_category": null
131
+ }
132
+ ],
133
+ "is_impossible": false
134
+ },
135
+ {
136
+ "question": "What is the minimum grade requirement for Bangladesh Higher School Certificate?",
137
+ "id": 1006614,
138
+ "answers": [
139
+ {
140
+ "answer_id": 890151,
141
+ "document_id": 1514544,
142
+ "question_id": 1006614,
143
+ "text": "grade of 3.5",
144
+ "answer_start": 953,
145
+ "answer_end": 965,
146
+ "answer_category": null
147
+ }
148
+ ],
149
+ "is_impossible": false
150
+ },
151
+ {
152
+ "question": "What is the minimum score requirement for China Gao San?",
153
+ "id": 1006615,
154
+ "answers": [
155
+ {
156
+ "answer_id": 890152,
157
+ "document_id": 1514544,
158
+ "question_id": 1006615,
159
+ "text": "80%",
160
+ "answer_start": 990,
161
+ "answer_end": 993,
162
+ "answer_category": null
163
+ }
164
+ ],
165
+ "is_impossible": false
166
+ },
167
+ {
168
+ "question": "What is the minimum score requirement for GCC Thanawiya Amma?",
169
+ "id": 1006616,
170
+ "answers": [
171
+ {
172
+ "answer_id": 890153,
173
+ "document_id": 1514544,
174
+ "question_id": 1006616,
175
+ "text": "along with the completion of the first year of a bachelor's program, requires a minimum score of 65%",
176
+ "answer_start": 1060,
177
+ "answer_end": 1160,
178
+ "answer_category": null
179
+ }
180
+ ],
181
+ "is_impossible": false
182
+ },
183
+ {
184
+ "question": "What is the minimum score requirement for Indian and Pakistan Year 12 qualifications?",
185
+ "id": 1006617,
186
+ "answers": [
187
+ {
188
+ "answer_id": 890154,
189
+ "document_id": 1514544,
190
+ "question_id": 1006617,
191
+ "text": "65%",
192
+ "answer_start": 1232,
193
+ "answer_end": 1235,
194
+ "answer_category": null
195
+ }
196
+ ],
197
+ "is_impossible": false
198
+ },
199
+ {
200
+ "question": "What is the minimum score requirement for Indonesian SMA III qualifications?",
201
+ "id": 1006618,
202
+ "answers": [
203
+ {
204
+ "answer_id": 890155,
205
+ "document_id": 1514544,
206
+ "question_id": 1006618,
207
+ "text": "74%",
208
+ "answer_start": 1302,
209
+ "answer_end": 1305,
210
+ "answer_category": null
211
+ }
212
+ ],
213
+ "is_impossible": false
214
+ },
215
+ {
216
+ "question": "What is the minimum score requirement for Iran High School Diploma qualifications?",
217
+ "id": 1006619,
218
+ "answers": [
219
+ {
220
+ "answer_id": 890156,
221
+ "document_id": 1514544,
222
+ "question_id": 1006619,
223
+ "text": "along with a pre-university degree (1 year), requires a minimum score of 65%",
224
+ "answer_start": 1333,
225
+ "answer_end": 1409,
226
+ "answer_category": null
227
+ }
228
+ ],
229
+ "is_impossible": false
230
+ },
231
+ {
232
+ "question": "How are International Baccalaureate IB Diploma scores evaluated for admission?",
233
+ "id": 1006620,
234
+ "answers": [
235
+ {
236
+ "answer_id": 890157,
237
+ "document_id": 1514544,
238
+ "question_id": 1006620,
239
+ "text": "based on the performance in 6 subjects, with a minimum requirement of 24 points",
240
+ "answer_start": 1471,
241
+ "answer_end": 1550,
242
+ "answer_category": null
243
+ }
244
+ ],
245
+ "is_impossible": false
246
+ },
247
+ {
248
+ "question": "What grade is required for Kenya KCSE qualifications?",
249
+ "id": 1006621,
250
+ "answers": [
251
+ {
252
+ "answer_id": 890158,
253
+ "document_id": 1514544,
254
+ "question_id": 1006621,
255
+ "text": "grade of B",
256
+ "answer_start": 1617,
257
+ "answer_end": 1627,
258
+ "answer_category": null
259
+ }
260
+ ],
261
+ "is_impossible": false
262
+ },
263
+ {
264
+ "question": "What is the minimum score requirement for Ontario CPU qualifications?",
265
+ "id": 1006622,
266
+ "answers": [
267
+ {
268
+ "answer_id": 890159,
269
+ "document_id": 1514544,
270
+ "question_id": 1006622,
271
+ "text": "70%",
272
+ "answer_start": 1708,
273
+ "answer_end": 1711,
274
+ "answer_category": null
275
+ }
276
+ ],
277
+ "is_impossible": false
278
+ },
279
+ {
280
+ "question": "What is the minimum score requirement for Sri Lankan A Levels?",
281
+ "id": 1006623,
282
+ "answers": [
283
+ {
284
+ "answer_id": 890160,
285
+ "document_id": 1514544,
286
+ "question_id": 1006623,
287
+ "text": "score of 7",
288
+ "answer_start": 1755,
289
+ "answer_end": 1765,
290
+ "answer_category": null
291
+ }
292
+ ],
293
+ "is_impossible": false
294
+ },
295
+ {
296
+ "question": "What score is required for Vietnam Senior High School Year 12 qualifications?",
297
+ "id": 1006624,
298
+ "answers": [
299
+ {
300
+ "answer_id": 890161,
301
+ "document_id": 1514544,
302
+ "question_id": 1006624,
303
+ "text": "score of 7.0",
304
+ "answer_start": 1813,
305
+ "answer_end": 1825,
306
+ "answer_category": null
307
+ }
308
+ ],
309
+ "is_impossible": false
310
+ }
311
+ ],
312
+ "context": "The Bachelor of Computer Science program at Swinburne University has specific academic requirements for prospective students. These requirements ensure that students have the background knowledge needed to excel in their studies. The academic requirements for admission into the program vary depending on the country or educational system.\n\nFor the pre-requisite, either MA (Mathematics) or AM (Applied Mathematics) is required. For STPM (Sijil Tinggi Persekolahan Malaysia), a minimum of 2P grades is required. UEC (Unified Examination Certificate) requires a minimum of 5B grades, including the pre-requisite subjects.For 'A' Levels, incorporating Cambridge, CGE, UK, Malaysia, Singapore, and UK, a minimum of 3 'A' Level passes is required. For ATAR, a minimum score of 70 is required. On the other hand, for the Australian Foundation program, a minimum overall percentage of 65% is necessary. Bangladesh Higher School Certificate requires a minimum grade of 3.5.\n\nFor China Gao San, an 80% score is required. GCC (Gulf Cooperation Council) Thanawiya Amma, along with the completion of the first year of a bachelor's program, requires a minimum score of 65%. Indian and Pakistan Year 12 qualifications require a minimum score of 65%. Indonesian SMA III qualifications necessitate a minimum score of 74%. Iran High School Diploma, along with a pre-university degree (1 year), requires a minimum score of 65%. International Baccalaureate IB Diploma scores are evaluated based on the performance in 6 subjects, with a minimum requirement of 24 points. Kenya KCSE (Kenya Certificate of Secondary Education) requires a grade of B.Ontario CPU (Canadian Pre-University) qualifications require a minimum score of 70%. Sri Lankan A Levels necessitate a minimum score of 7. Vietnam Senior High School Year 12 requires a score of 7.0.\n",
313
+ "document_id": 1514544
314
+ }
315
+ ]
316
+ },
317
+ {
318
+ "paragraphs": [
319
+ {
320
+ "qas": [
321
+ {
322
+ "question": "What is the duration of the Object Oriented Programming course?",
323
+ "id": 1006727,
324
+ "answers": [
325
+ {
326
+ "answer_id": 890264,
327
+ "document_id": 1514554,
328
+ "question_id": 1006727,
329
+ "text": "one semester, which is 12 weeks",
330
+ "answer_start": 149,
331
+ "answer_end": 180,
332
+ "answer_category": null
333
+ }
334
+ ],
335
+ "is_impossible": false
336
+ },
337
+ {
338
+ "question": "How many hours of face-to-face and blended learning are expected in the Object Oriented Programming unit?",
339
+ "id": 1006728,
340
+ "answers": [
341
+ {
342
+ "answer_id": 890265,
343
+ "document_id": 1514554,
344
+ "question_id": 1006728,
345
+ "text": "36 hours",
346
+ "answer_start": 186,
347
+ "answer_end": 194,
348
+ "answer_category": null
349
+ }
350
+ ],
351
+ "is_impossible": false
352
+ },
353
+ {
354
+ "question": "What are the prerequisites for the Object Oriented Programming unit?",
355
+ "id": 1006730,
356
+ "answers": [
357
+ {
358
+ "answer_id": 890267,
359
+ "document_id": 1514554,
360
+ "question_id": 1006730,
361
+ "text": "Introduction to Programming, Technical Software Development, Algorithmic Problem Solving, or Introduction to Programming in .NET",
362
+ "answer_start": 327,
363
+ "answer_end": 455,
364
+ "answer_category": null
365
+ }
366
+ ],
367
+ "is_impossible": false
368
+ },
369
+ {
370
+ "question": "What are the aim and objectives of the Object Oriented Programming unit?",
371
+ "id": 1006732,
372
+ "answers": [
373
+ {
374
+ "answer_id": 890269,
375
+ "document_id": 1514554,
376
+ "question_id": 1006732,
377
+ "text": "introduce students to object-oriented programming and design",
378
+ "answer_start": 522,
379
+ "answer_end": 582,
380
+ "answer_category": null
381
+ }
382
+ ],
383
+ "is_impossible": false
384
+ },
385
+ {
386
+ "question": "What does the content of the Object Oriented Programming unit include?",
387
+ "id": 1006735,
388
+ "answers": [
389
+ {
390
+ "answer_id": 890272,
391
+ "document_id": 1514554,
392
+ "question_id": 1006735,
393
+ "text": "designing, writing, compiling, documenting, and testing programs, programming language syntax, object-oriented programming principles, and object-oriented design",
394
+ "answer_start": 618,
395
+ "answer_end": 779,
396
+ "answer_category": null
397
+ }
398
+ ],
399
+ "is_impossible": false
400
+ },
401
+ {
402
+ "question": "What are students able to do upon completing the Object Oriented Programming unit?",
403
+ "id": 1006738,
404
+ "answers": [
405
+ {
406
+ "answer_id": 890275,
407
+ "document_id": 1514554,
408
+ "question_id": 1006738,
409
+ "text": "explain the principles of the object-oriented programming paradigm, specifically including abstraction, encapsulation, inheritance, and polymorphism, use an object-oriented programming language and associated class libraries to develop object-oriented programs, design, develop, test and debug programs using object-oriented principles in conjunction with an integrated development environment, construct appropriate diagrams and textual descriptions to communicate the static structure and dynamic behaviour of an object-oriented solution, and lastly describe and explain the factors that contribute to an excellent object-oriented solution",
410
+ "answer_start": 838,
411
+ "answer_end": 1479,
412
+ "answer_category": null
413
+ }
414
+ ],
415
+ "is_impossible": false
416
+ },
417
+ {
418
+ "question": "How is the assessment of the Object Oriented Programming unit conducted?",
419
+ "id": 1006740,
420
+ "answers": [
421
+ {
422
+ "answer_id": 890277,
423
+ "document_id": 1514554,
424
+ "question_id": 1006740,
425
+ "text": "entirely based on the student portfolio",
426
+ "answer_start": 1596,
427
+ "answer_end": 1635,
428
+ "answer_category": null
429
+ }
430
+ ],
431
+ "is_impossible": false
432
+ }
433
+ ],
434
+ "context": "Object Oriented Programming is one of the core units offered in the Bachelor of Computer Science program at Swinburne. The Duration of the course is one semester, which is 12 weeks, and 36 hours of face-to-face and blended are expected to be spent in this unit. There are prerequisites for this unit, such that either one from Introduction to Programming, Technical Software Development, Algorithmic Problem Solving, or Introduction to Programming in .NET should be completed. \n\nThe aim and objectives of this unit are to introduce students to object-oriented programming and design. The content of this unit includes designing, writing, compiling, documenting, and testing programs, programming language syntax, object-oriented programming principles, and object-oriented design. \n\nUpon the completion of this unit, students are able to explain the principles of the object-oriented programming paradigm, specifically including abstraction, encapsulation, inheritance, and polymorphism, use an object-oriented programming language and associated class libraries to develop object-oriented programs, design, develop, test and debug programs using object-oriented principles in conjunction with an integrated development environment, construct appropriate diagrams and textual descriptions to communicate the static structure and dynamic behaviour of an object-oriented solution, and lastly describe and explain the factors that contribute to an excellent object-oriented solution, reflecting on students’ own experiences and drawing upon accepted good practices. \n\nThe assessment of this unit is entirely based on the student portfolio.\n",
435
+ "document_id": 1514554
436
+ }
437
+ ]
438
+ },
439
+ {
440
+ "paragraphs": [
441
+ {
442
+ "qas": [
443
+ {
444
+ "question": "What units are included in the Data Science major?",
445
+ "id": 1006667,
446
+ "answers": [
447
+ {
448
+ "answer_id": 890202,
449
+ "document_id": 1514546,
450
+ "question_id": 1006667,
451
+ "text": "data science principles, big data architecture and application, data visualization, software deployment and evolution, Cloud Computing Architecture, Computing Technology Design Project, Computing Technology Innovation Project, and Software Architecture and Design",
452
+ "answer_start": 2203,
453
+ "answer_end": 2466,
454
+ "answer_category": null
455
+ }
456
+ ],
457
+ "is_impossible": false
458
+ },
459
+ {
460
+ "question": "What units are part of the Internet of Things (IoT) major?",
461
+ "id": 1006666,
462
+ "answers": [
463
+ {
464
+ "answer_id": 890201,
465
+ "document_id": 1514546,
466
+ "question_id": 1006666,
467
+ "text": "IoT Programming, Software Development for Mobile Devices, Software Architecture and Design, Network Administration, Advanced Web Development, Creating Web Application, Computing technology Design Project, and Computing Technology Innovation Project",
468
+ "answer_start": 1794,
469
+ "answer_end": 2042,
470
+ "answer_category": null
471
+ }
472
+ ],
473
+ "is_impossible": false
474
+ },
475
+ {
476
+ "question": "What are some examples of core units in the program?",
477
+ "id": 1006655,
478
+ "answers": [
479
+ {
480
+ "answer_id": 890190,
481
+ "document_id": 1514546,
482
+ "question_id": 1006655,
483
+ "text": "Object-oriented Programming, Computing Technology Inquiry Project, Networks and Switching, Computer Systems, Technology in an Indigenous Context Project, and also Computing Technology Project A and B",
484
+ "answer_start": 376,
485
+ "answer_end": 575,
486
+ "answer_category": null
487
+ }
488
+ ],
489
+ "is_impossible": false
490
+ },
491
+ {
492
+ "question": "How many majors are available for students for Swinburne's Bachelor of Computer Science program?",
493
+ "id": 1006660,
494
+ "answers": [
495
+ {
496
+ "answer_id": 890195,
497
+ "document_id": 1514546,
498
+ "question_id": 1006660,
499
+ "text": "5 majors",
500
+ "answer_start": 695,
501
+ "answer_end": 703,
502
+ "answer_category": null
503
+ }
504
+ ],
505
+ "is_impossible": false
506
+ },
507
+ {
508
+ "question": "What are the different types of units in the Bachelor of Computer Science program at Swinburne?",
509
+ "id": 1006653,
510
+ "answers": [
511
+ {
512
+ "answer_id": 890188,
513
+ "document_id": 1514546,
514
+ "question_id": 1006653,
515
+ "text": "core units, major-specific units, and options for electives, minors, or second majors",
516
+ "answer_start": 217,
517
+ "answer_end": 302,
518
+ "answer_category": null
519
+ }
520
+ ],
521
+ "is_impossible": false
522
+ },
523
+ {
524
+ "question": "What are the majors offered in Swinburne's Bachelor of Computer Science program?",
525
+ "id": 1006662,
526
+ "answers": [
527
+ {
528
+ "answer_id": 890197,
529
+ "document_id": 1514546,
530
+ "question_id": 1006662,
531
+ "text": "Software Development, Cybersecurity, Internet of Things, Data Science, and Artificial Intelligence",
532
+ "answer_start": 763,
533
+ "answer_end": 861,
534
+ "answer_category": null
535
+ }
536
+ ],
537
+ "is_impossible": false
538
+ },
539
+ {
540
+ "question": "What are the units included in the Software Development major?",
541
+ "id": 1006663,
542
+ "answers": [
543
+ {
544
+ "answer_id": 890198,
545
+ "document_id": 1514546,
546
+ "question_id": 1006663,
547
+ "text": "Computing Technology Design Project, Computing Technology Innovation Project, Data Structures and Patterns, Interface Design and Development, Concurrent Programming, Software Testing and Reliability, Software Architecture and Design, and Cloud Computing Architecture",
548
+ "answer_start": 936,
549
+ "answer_end": 1202,
550
+ "answer_category": null
551
+ }
552
+ ],
553
+ "is_impossible": false
554
+ },
555
+ {
556
+ "question": "What units are offered in the Cybersecurity major?",
557
+ "id": 1006664,
558
+ "answers": [
559
+ {
560
+ "answer_id": 890199,
561
+ "document_id": 1514546,
562
+ "question_id": 1006664,
563
+ "text": "Computing Technology Design Project, Computing Technology Innovation Project, Software Architecture and Design, Cloud Computing Architecture, Malware Analysis, IT Security, Network Routing Principles, and Network Security and Resilience",
564
+ "answer_start": 1347,
565
+ "answer_end": 1583,
566
+ "answer_category": null
567
+ }
568
+ ],
569
+ "is_impossible": false
570
+ },
571
+ {
572
+ "question": "Which units are offered in the Artificial Intelligence major?",
573
+ "id": 1006668,
574
+ "answers": [
575
+ {
576
+ "answer_id": 890203,
577
+ "document_id": 1514546,
578
+ "question_id": 1006668,
579
+ "text": "Introduction to Artificial Intelligence, Intelligent Systems, Applied Machine Learning, Artificial Intelligence for Engineering, Cloud Computing Architecture, Computing technology Design Project, Computing Technology Innovation Project, and Software Architecture and Design",
580
+ "answer_start": 2674,
581
+ "answer_end": 2947,
582
+ "answer_category": null
583
+ }
584
+ ],
585
+ "is_impossible": false
586
+ },
587
+ {
588
+ "question": "What options do students have for customization within the program?",
589
+ "id": 1006670,
590
+ "answers": [
591
+ {
592
+ "answer_id": 890205,
593
+ "document_id": 1514546,
594
+ "question_id": 1006670,
595
+ "text": "students have the flexibility to choose electives, minor programs, or a second major from a wide range of options",
596
+ "answer_start": 3065,
597
+ "answer_end": 3178,
598
+ "answer_category": null
599
+ }
600
+ ],
601
+ "is_impossible": false
602
+ },
603
+ {
604
+ "question": "What co-major/minor option is available to students?",
605
+ "id": 1006672,
606
+ "answers": [
607
+ {
608
+ "answer_id": 890207,
609
+ "document_id": 1514546,
610
+ "question_id": 1006672,
611
+ "text": "co-major/minor in Social Media",
612
+ "answer_start": 3256,
613
+ "answer_end": 3286,
614
+ "answer_category": null
615
+ }
616
+ ],
617
+ "is_impossible": false
618
+ },
619
+ {
620
+ "question": "What minor program is available in the Bachelor of Computer Science program?",
621
+ "id": 1006673,
622
+ "answers": [
623
+ {
624
+ "answer_id": 890208,
625
+ "document_id": 1514546,
626
+ "question_id": 1006673,
627
+ "text": "minor in Big Data Analytics",
628
+ "answer_start": 3221,
629
+ "answer_end": 3248,
630
+ "answer_category": null
631
+ }
632
+ ],
633
+ "is_impossible": false
634
+ }
635
+ ],
636
+ "context": "The Bachelor of Computer Science program at Swinburne University offers a diverse range of units to provide students with comprehensive knowledge and skills in various areas of specialization. The program consists of core units, major-specific units, and options for electives, minors, or second majors.\n\nIn the core units, students will delve into fundamental topics such as Object-oriented Programming, Computing Technology Inquiry Project, Networks and Switching, Computer Systems, Technology in an Indigenous Context Project, and also Computing Technology Project A and B. These units lay the foundation for a strong understanding of computer science principles and technologies.\n\nThere are 5 majors available for students to choose to be majored on, such as Software Development, Cybersecurity, Internet of Things, Data Science, and Artificial Intelligence. For the major in Software Development, students will study units such as Computing Technology Design Project, Computing Technology Innovation Project, Data Structures and Patterns, Interface Design and Development, Concurrent Programming, Software Testing and Reliability, Software Architecture and Design, and Cloud Computing Architecture. These units focus on developing expertise in software development, architecture, and design. \n\nThe major in Cybersecurity offers units such as Computing Technology Design Project, Computing Technology Innovation Project, Software Architecture and Design, Cloud Computing Architecture, Malware Analysis, IT Security, Network Routing Principles, and Network Security and Resilience. These units equip students with the necessary knowledge and skills to protect computer systems and networks from potential threats and attacks. In the Internet of Things (IoT) major, students will learn about IoT Programming, Software Development for Mobile Devices, Software Architecture and Design, Network Administration, Advanced Web Development, Creating Web Application, Computing technology Design Project, and Computing Technology Innovation Project. These units explore the intersection of technology, connectivity, and data in the context of IoT applications. \n\nThe Data Science major includes units such as data science principles, big data architecture and application, data visualization, software deployment and evolution, Cloud Computing Architecture, Computing Technology Design Project, Computing Technology Innovation Project, and Software Architecture and Design. These units focus on extracting insights from data, analysing large datasets, and applying data-driven solutions in various domains. For the Artificial Intelligence major, students will study units such as Introduction to Artificial Intelligence, Intelligent Systems, Applied Machine Learning, Artificial Intelligence for Engineering, Cloud Computing Architecture, Computing technology Design Project, Computing Technology Innovation Project, and Software Architecture and Design. These units delve into the theory and applications of AI, machine learning, and intelligent systems.\n\nAdditionally, students have the flexibility to choose electives, minor programs, or a second major from a wide range of options. These include cybersecurity electives, a minor in Big Data Analytics, and a co-major/minor in Social Media. These choices allow students to customize their learning experience and explore specific areas of interest.\n",
637
+ "document_id": 1514546
638
+ }
639
+ ]
640
+ },
641
+ {
642
+ "paragraphs": [
643
+ {
644
+ "qas": [
645
+ {
646
+ "question": "What is the purpose of the admission requirements at Swinburne University?",
647
+ "id": 1006328,
648
+ "answers": [
649
+ {
650
+ "answer_id": 889821,
651
+ "document_id": 1514387,
652
+ "question_id": 1006328,
653
+ "text": "ensure that students are well-prepared for their academic journey",
654
+ "answer_start": 83,
655
+ "answer_end": 148,
656
+ "answer_category": null
657
+ }
658
+ ],
659
+ "is_impossible": false
660
+ },
661
+ {
662
+ "question": "Does meeting the minimum entry requirements guarantee automatic selection at Swinburne University?",
663
+ "id": 1006329,
664
+ "answers": [
665
+ {
666
+ "answer_id": 889822,
667
+ "document_id": 1514387,
668
+ "question_id": 1006329,
669
+ "text": "does not guarantee automatic selection",
670
+ "answer_start": 217,
671
+ "answer_end": 255,
672
+ "answer_category": null
673
+ }
674
+ ],
675
+ "is_impossible": false
676
+ },
677
+ {
678
+ "question": "What factors are considered in the selection process at Swinburne University?",
679
+ "id": 1006333,
680
+ "answers": [
681
+ {
682
+ "answer_id": 889826,
683
+ "document_id": 1514387,
684
+ "question_id": 1006333,
685
+ "text": "formal academic qualifications and results, course prerequisites, English language requirements, legal and administrative requirements, availability of student places and learning resources, and certain courses may involve an assessment of your personal capabilities and aptitude",
686
+ "answer_start": 341,
687
+ "answer_end": 620,
688
+ "answer_category": null
689
+ }
690
+ ],
691
+ "is_impossible": false
692
+ }
693
+ ],
694
+ "context": "The admission requirements for our courses at Swinburne University are designed to ensure that students are well-prepared for their academic journey. While meeting the minimum entry requirements is a crucial step, it does not guarantee automatic selection.\n\nThe selection process involves a thorough assessment of various factors, including formal academic qualifications and results, course prerequisites, English language requirements, legal and administrative requirements, availability of student places and learning resources, and certain courses may involve an assessment of your personal capabilities and aptitude.\n",
695
+ "document_id": 1514387
696
+ }
697
+ ]
698
+ },
699
+ {
700
+ "paragraphs": [
701
+ {
702
+ "qas": [
703
+ {
704
+ "question": "What specializations are available within the Bachelor of Computer Science program at Swinburne?",
705
+ "id": 1006102,
706
+ "answers": [
707
+ {
708
+ "answer_id": 889592,
709
+ "document_id": 1514383,
710
+ "question_id": 1006102,
711
+ "text": "cybersecurity, internet of things, or software development",
712
+ "answer_start": 527,
713
+ "answer_end": 585,
714
+ "answer_category": null
715
+ }
716
+ ],
717
+ "is_impossible": false
718
+ },
719
+ {
720
+ "question": "What is the focus of the Bachelor of Computer Science program at Swinburne?",
721
+ "id": 1006088,
722
+ "answers": [
723
+ {
724
+ "answer_id": 889578,
725
+ "document_id": 1514383,
726
+ "question_id": 1006088,
727
+ "text": "application development involving mobile devices and web-based systems, with an emphasis on creating effective human-computer interfaces",
728
+ "answer_start": 273,
729
+ "answer_end": 409,
730
+ "answer_category": null
731
+ }
732
+ ],
733
+ "is_impossible": false
734
+ },
735
+ {
736
+ "question": "What is the duration of the Bachelor of Computer Science program at Swinburne?",
737
+ "id": 1006099,
738
+ "answers": [
739
+ {
740
+ "answer_id": 889589,
741
+ "document_id": 1514383,
742
+ "question_id": 1006099,
743
+ "text": "three years",
744
+ "answer_start": 1326,
745
+ "answer_end": 1337,
746
+ "answer_category": null
747
+ }
748
+ ],
749
+ "is_impossible": false
750
+ },
751
+ {
752
+ "question": "In which industries does the Bachelor of Computer Science program at Swinburne prepare students for careers?",
753
+ "id": 1006109,
754
+ "answers": [
755
+ {
756
+ "answer_id": 889599,
757
+ "document_id": 1514383,
758
+ "question_id": 1006109,
759
+ "text": "areas such as defence, aerospace, and medicine, where complex and safety-critical software is in demand",
760
+ "answer_start": 868,
761
+ "answer_end": 971,
762
+ "answer_category": null
763
+ }
764
+ ],
765
+ "is_impossible": false
766
+ },
767
+ {
768
+ "question": "What are the intakes for the Bachelor of Computer Science program at Swinburne?",
769
+ "id": 1006110,
770
+ "answers": [
771
+ {
772
+ "answer_id": 889600,
773
+ "document_id": 1514383,
774
+ "question_id": 1006110,
775
+ "text": "January, February, and September",
776
+ "answer_start": 1134,
777
+ "answer_end": 1166,
778
+ "answer_category": null
779
+ }
780
+ ],
781
+ "is_impossible": false
782
+ },
783
+ {
784
+ "question": "How much are the annual fees for Malaysian students in the Bachelor of Computer Science program at Swinburne?",
785
+ "id": 1006118,
786
+ "answers": [
787
+ {
788
+ "answer_id": 889609,
789
+ "document_id": 1514383,
790
+ "question_id": 1006118,
791
+ "text": "RM26,448",
792
+ "answer_start": 2706,
793
+ "answer_end": 2714,
794
+ "answer_category": null
795
+ }
796
+ ],
797
+ "is_impossible": false
798
+ },
799
+ {
800
+ "question": "How much are the annual fees for international students in the Bachelor of Computer Science program at Swinburne?",
801
+ "id": 1006120,
802
+ "answers": [
803
+ {
804
+ "answer_id": 889611,
805
+ "document_id": 1514383,
806
+ "question_id": 1006120,
807
+ "text": "RM33,496",
808
+ "answer_start": 2757,
809
+ "answer_end": 2765,
810
+ "answer_category": null
811
+ }
812
+ ],
813
+ "is_impossible": false
814
+ },
815
+ {
816
+ "question": "Are scholarships available for students in the Bachelor of Computer Science program at Swinburne?",
817
+ "id": 1006121,
818
+ "answers": [
819
+ {
820
+ "answer_id": 889612,
821
+ "document_id": 1514383,
822
+ "question_id": 1006121,
823
+ "text": "available to both commencing and current students",
824
+ "answer_start": 2884,
825
+ "answer_end": 2933,
826
+ "answer_category": null
827
+ }
828
+ ],
829
+ "is_impossible": false
830
+ },
831
+ {
832
+ "question": "What are the typical career opportunities for graduates of the Bachelor of Computer Science program at Swinburne?",
833
+ "id": 1006123,
834
+ "answers": [
835
+ {
836
+ "answer_id": 889614,
837
+ "document_id": 1514383,
838
+ "question_id": 1006123,
839
+ "text": "organizations engaged in medium- to large-scale software development",
840
+ "answer_start": 3151,
841
+ "answer_end": 3219,
842
+ "answer_category": null
843
+ }
844
+ ],
845
+ "is_impossible": false
846
+ },
847
+ {
848
+ "question": "How is Swinburne's Bachelor of Computer Science program designed?",
849
+ "id": 1006125,
850
+ "answers": [
851
+ {
852
+ "answer_id": 889616,
853
+ "document_id": 1514383,
854
+ "question_id": 1006125,
855
+ "text": "modern approach to the analysis, design, and implementation of large-scale systems, recognizing its importance in the field of software development",
856
+ "answer_start": 81,
857
+ "answer_end": 228,
858
+ "answer_category": null
859
+ }
860
+ ],
861
+ "is_impossible": false
862
+ },
863
+ {
864
+ "question": "How many units are required to complete the Bachelor of Computer Science program at Swinburne?",
865
+ "id": 1006128,
866
+ "answers": [
867
+ {
868
+ "answer_id": 889619,
869
+ "document_id": 1514383,
870
+ "question_id": 1006128,
871
+ "text": "24 units (300 credit points)",
872
+ "answer_start": 2125,
873
+ "answer_end": 2153,
874
+ "answer_category": null
875
+ }
876
+ ],
877
+ "is_impossible": false
878
+ },
879
+ {
880
+ "question": "How many units are in the core studies of the Bachelor of Computer Science program at Swinburne?",
881
+ "id": 1006129,
882
+ "answers": [
883
+ {
884
+ "answer_id": 889620,
885
+ "document_id": 1514383,
886
+ "question_id": 1006129,
887
+ "text": "eight units (100 credit points)",
888
+ "answer_start": 2169,
889
+ "answer_end": 2200,
890
+ "answer_category": null
891
+ }
892
+ ],
893
+ "is_impossible": false
894
+ },
895
+ {
896
+ "question": "How many units are in the major study of the Bachelor of Computer Science program at Swinburne?",
897
+ "id": 1006130,
898
+ "answers": [
899
+ {
900
+ "answer_id": 889621,
901
+ "document_id": 1514383,
902
+ "question_id": 1006130,
903
+ "text": "eight units (100 credit points)",
904
+ "answer_start": 2327,
905
+ "answer_end": 2358,
906
+ "answer_category": null
907
+ }
908
+ ],
909
+ "is_impossible": false
910
+ },
911
+ {
912
+ "question": "How many units are in the other studies of the Bachelor of Computer Science program at Swinburne?",
913
+ "id": 1006131,
914
+ "answers": [
915
+ {
916
+ "answer_id": 889622,
917
+ "document_id": 1514383,
918
+ "question_id": 1006131,
919
+ "text": "eight units (100 credit points)",
920
+ "answer_start": 2451,
921
+ "answer_end": 2482,
922
+ "answer_category": null
923
+ }
924
+ ],
925
+ "is_impossible": false
926
+ },
927
+ {
928
+ "question": "What are the course objectives of the Bachelor of Computer Science program at Swinburne?",
929
+ "id": 1006143,
930
+ "answers": [
931
+ {
932
+ "answer_id": 889634,
933
+ "document_id": 1514383,
934
+ "question_id": 1006143,
935
+ "text": "acquired a range of essential skills and knowledge. These include the ability to apply computer science and software development principles in diverse contexts, using critical thinking and judgment. Students will be proficient in utilizing contemporary methods and tools for scoping, analysing, designing, constructing, verifying, and operating software systems. Effective communication, teamwork, and project management skills are also emphasized throughout the program. Students will develop professionalism, integrity, and ethical conduct, while gaining an awareness of global professional practices.",
936
+ "answer_start": 1474,
937
+ "answer_end": 2077,
938
+ "answer_category": null
939
+ }
940
+ ],
941
+ "is_impossible": false
942
+ },
943
+ {
944
+ "question": "What is the emphasis of the program regarding technology and methods in the field?",
945
+ "id": 1006320,
946
+ "answers": [
947
+ {
948
+ "answer_id": 889813,
949
+ "document_id": 1514383,
950
+ "question_id": 1006320,
951
+ "text": "staying up-to-date with the latest technology and methods in the field",
952
+ "answer_start": 627,
953
+ "answer_end": 697,
954
+ "answer_category": null
955
+ }
956
+ ],
957
+ "is_impossible": false
958
+ }
959
+ ],
960
+ "context": "The Bachelor of Computer Science program at Swinburne Sarawak is designed with a modern approach to the analysis, design, and implementation of large-scale systems, recognizing its importance in the field of software development. This program offers a specialized focus on application development involving mobile devices and web-based systems, with an emphasis on creating effective human-computer interfaces. Students have the opportunity to choose a specialization that aligns with their interests and future goals, such as cybersecurity, internet of things, or software development.\nThe program places a strong emphasis on staying up-to-date with the latest technology and methods in the field. It provides students with a comprehensive understanding of software development, preparing them for careers in various industries. The program caters to applications in areas such as defence, aerospace, and medicine, where complex and safety-critical software is in demand. It also addresses the needs of businesses requiring extensive computer support, including banking and manufacturing sectors.\nThe program has specific intakes in January, February, and September, providing flexibility for students to begin their studies at different times throughout the year. The duration of the Bachelor of Computer Science program is three years, ensuring that students receive a thorough and comprehensive education in the field.\nUpon completion of the program, students will have acquired a range of essential skills and knowledge. These include the ability to apply computer science and software development principles in diverse contexts, using critical thinking and judgment. Students will be proficient in utilizing contemporary methods and tools for scoping, analysing, designing, constructing, verifying, and operating software systems. Effective communication, teamwork, and project management skills are also emphasized throughout the program. Students will develop professionalism, integrity, and ethical conduct, while gaining an awareness of global professional practices.\nThe program's structure consists of a total of 24 units (300 credit points). This includes eight units (100 credit points) in core studies, providing a solid foundation in computer science principles. Additionally, students are required to complete eight units (100 credit points) in a major study, enabling them to specialize in a specific area of interest. The remaining eight units (100 credit points) are dedicated to other studies, offering flexibility for students to explore additional subjects of their choice.\nRegarding fees, the annual tuition fee for Malaysian students in the Bachelor of Computer Science program is RM26,448, while international students are charged RM33,496 annually. Swinburne University offers scholarships to support students in their educational journey. Scholarships are available to both commencing and current students, with a focus on providing opportunities, promoting equity, and recognizing excellence and achievement.\nGraduates of the Bachelor of Computer Science program from Swinburne University are well-prepared for careers in organizations engaged in medium- to large-scale software development. Initially, graduates often find employment in technical areas such as programming, systems analysis, design, and internet systems development. As their experience grows, they have the potential to progress into project leadership and management positions, equipped with the necessary skills and knowledge gained from the program.\nOverall, the Bachelor of Computer Science program at Swinburne University offers a comprehensive education in computer science, equipping students with the skills and knowledge required for success in the field of software development. The program's emphasis on modern approaches, practical skills, and industry relevance ensures that graduates are well-prepared to meet the demands of the ever-evolving technology landscape.\n",
961
+ "document_id": 1514383
962
+ }
963
+ ]
964
+ },
965
+ {
966
+ "paragraphs": [
967
+ {
968
+ "qas": [
969
+ {
970
+ "question": "What are the English language qualification requirements for the Bachelor of Computer Science program at Swinburne?",
971
+ "id": 1006360,
972
+ "answers": [
973
+ {
974
+ "answer_id": 889853,
975
+ "document_id": 1514389,
976
+ "question_id": 1006360,
977
+ "text": "Various English language qualifications and their corresponding minimum scores",
978
+ "answer_start": 261,
979
+ "answer_end": 339,
980
+ "answer_category": null
981
+ }
982
+ ],
983
+ "is_impossible": false
984
+ },
985
+ {
986
+ "question": "What is the minimum overall score required for the IELTS test for admission into the program?",
987
+ "id": 1006365,
988
+ "answers": [
989
+ {
990
+ "answer_id": 889858,
991
+ "document_id": 1514389,
992
+ "question_id": 1006365,
993
+ "text": "6.0 is required, with no individual band score falling below 6.0",
994
+ "answer_start": 478,
995
+ "answer_end": 542,
996
+ "answer_category": null
997
+ }
998
+ ],
999
+ "is_impossible": false
1000
+ },
1001
+ {
1002
+ "question": "What is the minimum score required for the TOEFL iBT test in the Bachelor of Computer Science program?",
1003
+ "id": 1006368,
1004
+ "answers": [
1005
+ {
1006
+ "answer_id": 889861,
1007
+ "document_id": 1514389,
1008
+ "question_id": 1006368,
1009
+ "text": "score of 64",
1010
+ "answer_start": 675,
1011
+ "answer_end": 686,
1012
+ "answer_category": null
1013
+ }
1014
+ ],
1015
+ "is_impossible": false
1016
+ },
1017
+ {
1018
+ "question": "Are there specific minimum scores required for different sections of the TOEFL iBT test?",
1019
+ "id": 1006369,
1020
+ "answers": [
1021
+ {
1022
+ "answer_id": 889862,
1023
+ "document_id": 1514389,
1024
+ "question_id": 1006369,
1025
+ "text": "no less than 13 in reading, 12 in listening, 18 in speaking, and 21 in writing",
1026
+ "answer_start": 693,
1027
+ "answer_end": 771,
1028
+ "answer_category": null
1029
+ }
1030
+ ],
1031
+ "is_impossible": false
1032
+ },
1033
+ {
1034
+ "question": "What is the minimum result required for the PTE Academic test?",
1035
+ "id": 1006370,
1036
+ "answers": [
1037
+ {
1038
+ "answer_id": 889863,
1039
+ "document_id": 1514389,
1040
+ "question_id": 1006370,
1041
+ "text": "50, with no communicative skill score falling below 50",
1042
+ "answer_start": 862,
1043
+ "answer_end": 916,
1044
+ "answer_category": null
1045
+ }
1046
+ ],
1047
+ "is_impossible": false
1048
+ },
1049
+ {
1050
+ "question": "What grade is required for the SPM qualification in English Language?",
1051
+ "id": 1006371,
1052
+ "answers": [
1053
+ {
1054
+ "answer_id": 889864,
1055
+ "document_id": 1514389,
1056
+ "question_id": 1006371,
1057
+ "text": "grade of C",
1058
+ "answer_start": 981,
1059
+ "answer_end": 991,
1060
+ "answer_category": null
1061
+ }
1062
+ ],
1063
+ "is_impossible": false
1064
+ },
1065
+ {
1066
+ "question": "What grades are required for the UEC qualification in English?",
1067
+ "id": 1006373,
1068
+ "answers": [
1069
+ {
1070
+ "answer_id": 889866,
1071
+ "document_id": 1514389,
1072
+ "question_id": 1006373,
1073
+ "text": "A1 and A2 grades",
1074
+ "answer_start": 1064,
1075
+ "answer_end": 1080,
1076
+ "answer_category": null
1077
+ }
1078
+ ],
1079
+ "is_impossible": false
1080
+ },
1081
+ {
1082
+ "question": "What grade is required for the 1119 qualification in English Language subject?",
1083
+ "id": 1006374,
1084
+ "answers": [
1085
+ {
1086
+ "answer_id": 889867,
1087
+ "document_id": 1514389,
1088
+ "question_id": 1006374,
1089
+ "text": "score of C",
1090
+ "answer_start": 1084,
1091
+ "answer_end": 1094,
1092
+ "answer_category": null
1093
+ }
1094
+ ],
1095
+ "is_impossible": false
1096
+ },
1097
+ {
1098
+ "question": "What is the minimum score required for the MUET test?",
1099
+ "id": 1006375,
1100
+ "answers": [
1101
+ {
1102
+ "answer_id": 889868,
1103
+ "document_id": 1514389,
1104
+ "question_id": 1006375,
1105
+ "text": "score of 4",
1106
+ "answer_start": 1211,
1107
+ "answer_end": 1221,
1108
+ "answer_category": null
1109
+ }
1110
+ ],
1111
+ "is_impossible": false
1112
+ },
1113
+ {
1114
+ "question": "What is the minimum grade required for GCE 'O' Level qualifications in English?",
1115
+ "id": 1006376,
1116
+ "answers": [
1117
+ {
1118
+ "answer_id": 889869,
1119
+ "document_id": 1514389,
1120
+ "question_id": 1006376,
1121
+ "text": "grade of C",
1122
+ "answer_start": 1274,
1123
+ "answer_end": 1284,
1124
+ "answer_category": null
1125
+ }
1126
+ ],
1127
+ "is_impossible": false
1128
+ },
1129
+ {
1130
+ "question": "What is the minimum grade required for GCE 'A' Level and AS Level qualifications in English?",
1131
+ "id": 1006377,
1132
+ "answers": [
1133
+ {
1134
+ "answer_id": 889870,
1135
+ "document_id": 1514389,
1136
+ "question_id": 1006377,
1137
+ "text": "grade of C",
1138
+ "answer_start": 1274,
1139
+ "answer_end": 1284,
1140
+ "answer_category": null
1141
+ }
1142
+ ],
1143
+ "is_impossible": false
1144
+ },
1145
+ {
1146
+ "question": "What is the minimum grade required for the International Baccalaureate qualifications in English?",
1147
+ "id": 1006378,
1148
+ "answers": [
1149
+ {
1150
+ "answer_id": 889871,
1151
+ "document_id": 1514389,
1152
+ "question_id": 1006378,
1153
+ "text": "minimum Grade 4 in English A or B at Standard Level or Higher Level",
1154
+ "answer_start": 1397,
1155
+ "answer_end": 1464,
1156
+ "answer_category": null
1157
+ }
1158
+ ],
1159
+ "is_impossible": false
1160
+ },
1161
+ {
1162
+ "question": "What is the minimum required level for the Common European Framework?",
1163
+ "id": 1006385,
1164
+ "answers": [
1165
+ {
1166
+ "answer_id": 889878,
1167
+ "document_id": 1514389,
1168
+ "question_id": 1006385,
1169
+ "text": "B2 level",
1170
+ "answer_start": 1542,
1171
+ "answer_end": 1550,
1172
+ "answer_category": null
1173
+ }
1174
+ ],
1175
+ "is_impossible": false
1176
+ },
1177
+ {
1178
+ "question": "What is the minimum score required for the C1 Advanced qualification?",
1179
+ "id": 1006387,
1180
+ "answers": [
1181
+ {
1182
+ "answer_id": 889880,
1183
+ "document_id": 1514389,
1184
+ "question_id": 1006387,
1185
+ "text": "score of 169, with no band score falling below 169",
1186
+ "answer_start": 1653,
1187
+ "answer_end": 1703,
1188
+ "answer_category": null
1189
+ }
1190
+ ],
1191
+ "is_impossible": false
1192
+ },
1193
+ {
1194
+ "question": "What is the overall score range required for the Linguaskill General qualification?",
1195
+ "id": 1006391,
1196
+ "answers": [
1197
+ {
1198
+ "answer_id": 889884,
1199
+ "document_id": 1514389,
1200
+ "question_id": 1006391,
1201
+ "text": "score of 160-179, with no band score less than 160",
1202
+ "answer_start": 1763,
1203
+ "answer_end": 1813,
1204
+ "answer_category": null
1205
+ }
1206
+ ],
1207
+ "is_impossible": false
1208
+ },
1209
+ {
1210
+ "question": "What is the minimum grade required for STPM 920 English Literature?",
1211
+ "id": 1006393,
1212
+ "answers": [
1213
+ {
1214
+ "answer_id": 889886,
1215
+ "document_id": 1514389,
1216
+ "question_id": 1006393,
1217
+ "text": "grade of C",
1218
+ "answer_start": 1896,
1219
+ "answer_end": 1906,
1220
+ "answer_category": null
1221
+ }
1222
+ ],
1223
+ "is_impossible": false
1224
+ },
1225
+ {
1226
+ "question": "What is the minimum required grade for the Sri Lanka O Level qualifications?",
1227
+ "id": 1006394,
1228
+ "answers": [
1229
+ {
1230
+ "answer_id": 889887,
1231
+ "document_id": 1514389,
1232
+ "question_id": 1006394,
1233
+ "text": "no specific requirement",
1234
+ "answer_start": 2026,
1235
+ "answer_end": 2049,
1236
+ "answer_category": null
1237
+ }
1238
+ ],
1239
+ "is_impossible": false
1240
+ },
1241
+ {
1242
+ "question": "Is the Duolingo English Test recognized for Malaysian students?",
1243
+ "id": 1006397,
1244
+ "answers": [
1245
+ {
1246
+ "answer_id": 889890,
1247
+ "document_id": 1514389,
1248
+ "question_id": 1006397,
1249
+ "text": "recognized, with an overall score of 95-100",
1250
+ "answer_start": 2114,
1251
+ "answer_end": 2157,
1252
+ "answer_category": null
1253
+ }
1254
+ ],
1255
+ "is_impossible": false
1256
+ }
1257
+ ],
1258
+ "context": "The Bachelor of Computer Science program at Swinburne University has specific English language qualification requirements for prospective students. These requirements ensure that students have the necessary language skills to succeed in their academic studies. Various English language qualifications and their corresponding minimum scores are recognized for admission into the program.\n\nFor the IELTS (International English Language Testing System), a minimum overall score of 6.0 is required, with no individual band score falling below 6.0. Similarly, the TOEFL iBT (Test of English as a Foreign Language internet-based test) or TOEFL Home Edition Test requires a minimum score of 64, with no less than 13 in reading, 12 in listening, 18 in speaking, and 21 in writing.\n\nThe PTE Academic (Pearson Test of English Academic) requires a minimum overall score of 50, with no communicative skill score falling below 50. The SPM (Sijil Pelajaran Malaysia) qualification should have a grade of C, while the UEC (Unified Examination Certificate) qualification requires A1 and A2 grades. A score of C is required for the 1119 English Language subject.\n\nThe MUET (Malaysian University English Test) requires a minimum score of 4. GCE 'O' Level qualifications should have a minimum grade of C, while GCE 'A' Level and AS Level qualifications are recognized as well. For the International Baccalaureate, a minimum Grade 4 in English A or B at Standard Level or Higher Level is required.\n\nThe Common European Framework recognizes qualifications at the B2 level. The C1 Advanced qualification (formerly known as Cambridge English Advanced: CAE) requires a minimum score of 169, with no band score falling below 169. The Linguaskill General qualification requires an overall score of 160-179, with no band score less than 160.\n\nFor STPM (Sijil Tinggi Persekolahan Malaysia) 920 English Literature, a minimum grade of C is required. Sri Lanka O Level qualifications in either English Language or Appreciation of English Literacy Text have no specific requirement.\n\nFinally, for Malaysian students, the Duolingo English Test is recognized, with an overall score of 95-100.\n\nThese English language qualification requirements ensure that students in the Bachelor of Computer Science program at Swinburne University have the necessary language proficiency to actively engage in their coursework and contribute effectively to the learning environment.\n",
1259
+ "document_id": 1514389
1260
+ }
1261
+ ]
1262
+ }
1263
+ ]
1264
+ }
data/context1.txt ADDED
@@ -0,0 +1,15 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ The Bachelor of Computer Science program at Swinburne Sarawak is designed with a modern approach to the analysis, design, and implementation of large-scale systems, recognizing its importance in the field of software development. This program offers a specialized focus on application development involving mobile devices and web-based systems, with an emphasis on creating effective human-computer interfaces. Students have the opportunity to choose a specialization that aligns with their interests and future goals, such as cybersecurity, internet of things, or software development.
2
+
3
+ The program places a strong emphasis on staying up-to-date with the latest technology and methods in the field. It provides students with a comprehensive understanding of software development, preparing them for careers in various industries. The program caters to applications in areas such as defence, aerospace, and medicine, where complex and safety-critical software is in demand. It also addresses the needs of businesses requiring extensive computer support, including banking and manufacturing sectors.
4
+
5
+ The program has specific intakes in January, February, and September, providing flexibility for students to begin their studies at different times throughout the year. The duration of the Bachelor of Computer Science program is three years, ensuring that students receive a thorough and comprehensive education in the field.
6
+
7
+ Upon completion of the program, students will have acquired a range of essential skills and knowledge. These include the ability to apply computer science and software development principles in diverse contexts, using critical thinking and judgment. Students will be proficient in utilizing contemporary methods and tools for scoping, analysing, designing, constructing, verifying, and operating software systems. Effective communication, teamwork, and project management skills are also emphasized throughout the program. Students will develop professionalism, integrity, and ethical conduct, while gaining an awareness of global professional practices.
8
+
9
+ The program's structure consists of a total of 24 units (300 credit points). This includes eight units (100 credit points) in core studies, providing a solid foundation in computer science principles. Additionally, students are required to complete eight units (100 credit points) in a major study, enabling them to specialize in a specific area of interest. The remaining eight units (100 credit points) are dedicated to other studies, offering flexibility for students to explore additional subjects of their choice.
10
+
11
+ Regarding fees, the annual tuition fee for Malaysian students in the Bachelor of Computer Science program is RM26,448, while international students are charged RM33,496 annually. Swinburne University offers scholarships to support students in their educational journey. Scholarships are available to both commencing and current students, with a focus on providing opportunities, promoting equity, and recognizing excellence and achievement.
12
+
13
+ Graduates of the Bachelor of Computer Science program from Swinburne University are well-prepared for careers in organizations engaged in medium- to large-scale software development. Initially, graduates often find employment in technical areas such as programming, systems analysis, design, and internet systems development. As their experience grows, they have the potential to progress into project leadership and management positions, equipped with the necessary skills and knowledge gained from the program.
14
+
15
+ Overall, the Bachelor of Computer Science program at Swinburne University offers a comprehensive education in computer science, equipping students with the skills and knowledge required for success in the field of software development. The program's emphasis on modern approaches, practical skills, and industry relevance ensures that graduates are well-prepared to meet the demands of the ever-evolving technology landscape.
data/context2.txt ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ The admission requirements for our courses at Swinburne University are designed to ensure that students are well-prepared for their academic journey. While meeting the minimum entry requirements is a crucial step, it does not guarantee automatic selection.
2
+
3
+ The selection process involves a thorough assessment of various factors, including formal academic qualifications and results, course prerequisites, English language requirements, legal and administrative requirements, availability of student places and learning resources, and certain courses may involve an assessment of your personal capabilities and aptitude.
data/context3.txt ADDED
@@ -0,0 +1,15 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ The Bachelor of Computer Science program at Swinburne University has specific English language qualification requirements for prospective students. These requirements ensure that students have the necessary language skills to succeed in their academic studies. Various English language qualifications and their corresponding minimum scores are recognized for admission into the program.
2
+
3
+ For the IELTS (International English Language Testing System), a minimum overall score of 6.0 is required, with no individual band score falling below 6.0. Similarly, the TOEFL iBT (Test of English as a Foreign Language internet-based test) or TOEFL Home Edition Test requires a minimum score of 64, with no less than 13 in reading, 12 in listening, 18 in speaking, and 21 in writing.
4
+
5
+ The PTE Academic (Pearson Test of English Academic) requires a minimum overall score of 50, with no communicative skill score falling below 50. The SPM (Sijil Pelajaran Malaysia) qualification should have a grade of C, while the UEC (Unified Examination Certificate) qualification requires A1 and A2 grades. A score of C is required for the 1119 English Language subject.
6
+
7
+ The MUET (Malaysian University English Test) requires a minimum score of 4. GCE 'O' Level qualifications should have a minimum grade of C, while GCE 'A' Level and AS Level qualifications are recognized as well. For the International Baccalaureate, a minimum Grade 4 in English A or B at Standard Level or Higher Level is required.
8
+
9
+ The Common European Framework recognizes qualifications at the B2 level. The C1 Advanced qualification (formerly known as Cambridge English Advanced: CAE) requires a minimum score of 169, with no band score falling below 169. The Linguaskill General qualification requires an overall score of 160-179, with no band score less than 160.
10
+
11
+ For STPM (Sijil Tinggi Persekolahan Malaysia) 920 English Literature, a minimum grade of C is required. Sri Lanka O Level qualifications in either English Language or Appreciation of English Literacy Text have no specific requirement.
12
+
13
+ Finally, for Malaysian students, the Duolingo English Test is recognized, with an overall score of 95-100.
14
+
15
+ These English language qualification requirements ensure that students in the Bachelor of Computer Science program at Swinburne University have the necessary language proficiency to actively engage in their coursework and contribute effectively to the learning environment.
data/context4.txt ADDED
@@ -0,0 +1,5 @@
 
 
 
 
 
 
1
+ The Bachelor of Computer Science program at Swinburne University has specific academic requirements for prospective students. These requirements ensure that students have the background knowledge needed to excel in their studies. The academic requirements for admission into the program vary depending on the country or educational system.
2
+
3
+ For the pre-requisite, either MA (Mathematics) or AM (Applied Mathematics) is required. For STPM (Sijil Tinggi Persekolahan Malaysia), a minimum of 2P grades is required. UEC (Unified Examination Certificate) requires a minimum of 5B grades, including the pre-requisite subjects.For 'A' Levels, incorporating Cambridge, CGE, UK, Malaysia, Singapore, and UK, a minimum of 3 'A' Level passes is required. For ATAR, a minimum score of 70 is required. On the other hand, for the Australian Foundation program, a minimum overall percentage of 65% is necessary. Bangladesh Higher School Certificate requires a minimum grade of 3.5.
4
+
5
+ For China Gao San, an 80% score is required. GCC (Gulf Cooperation Council) Thanawiya Amma, along with the completion of the first year of a bachelor's program, requires a minimum score of 65%. Indian and Pakistan Year 12 qualifications require a minimum score of 65%. Indonesian SMA III qualifications necessitate a minimum score of 74%. Iran High School Diploma, along with a pre-university degree (1 year), requires a minimum score of 65%. International Baccalaureate IB Diploma scores are evaluated based on the performance in 6 subjects, with a minimum requirement of 24 points. Kenya KCSE (Kenya Certificate of Secondary Education) requires a grade of B.Ontario CPU (Canadian Pre-University) qualifications require a minimum score of 70%. Sri Lankan A Levels necessitate a minimum score of 7. Vietnam Senior High School Year 12 requires a score of 7.0.
data/context5.txt ADDED
@@ -0,0 +1,11 @@
 
 
 
 
 
 
 
 
 
 
 
 
1
+ The Bachelor of Computer Science program at Swinburne University offers a diverse range of units to provide students with comprehensive knowledge and skills in various areas of specialization. The program consists of core units, major-specific units, and options for electives, minors, or second majors.
2
+
3
+ In the core units, students will delve into fundamental topics such as Object-oriented Programming, Computing Technology Inquiry Project, Networks and Switching, Computer Systems, Technology in an Indigenous Context Project, and also Computing Technology Project A and B. These units lay the foundation for a strong understanding of computer science principles and technologies.
4
+
5
+ There are 5 majors available for students to choose to be majored on, such as Software Development, Cybersecurity, Internet of Things, Data Science, and Artificial Intelligence. For the major in Software Development, students will study units such as Computing Technology Design Project, Computing Technology Innovation Project, Data Structures and Patterns, Interface Design and Development, Concurrent Programming, Software Testing and Reliability, Software Architecture and Design, and Cloud Computing Architecture. These units focus on developing expertise in software development, architecture, and design.
6
+
7
+ The major in Cybersecurity offers units such as Computing Technology Design Project, Computing Technology Innovation Project, Software Architecture and Design, Cloud Computing Architecture, Malware Analysis, IT Security, Network Routing Principles, and Network Security and Resilience. These units equip students with the necessary knowledge and skills to protect computer systems and networks from potential threats and attacks. In the Internet of Things (IoT) major, students will learn about IoT Programming, Software Development for Mobile Devices, Software Architecture and Design, Network Administration, Advanced Web Development, Creating Web Application, Computing technology Design Project, and Computing Technology Innovation Project. These units explore the intersection of technology, connectivity, and data in the context of IoT applications.
8
+
9
+ The Data Science major includes units such as data science principles, big data architecture and application, data visualization, software deployment and evolution, Cloud Computing Architecture, Computing Technology Design Project, Computing Technology Innovation Project, and Software Architecture and Design. These units focus on extracting insights from data, analysing large datasets, and applying data-driven solutions in various domains. For the Artificial Intelligence major, students will study units such as Introduction to Artificial Intelligence, Intelligent Systems, Applied Machine Learning, Artificial Intelligence for Engineering, Cloud Computing Architecture, Computing technology Design Project, Computing Technology Innovation Project, and Software Architecture and Design. These units delve into the theory and applications of AI, machine learning, and intelligent systems.
10
+
11
+ Additionally, students have the flexibility to choose electives, minor programs, or a second major from a wide range of options. These include cybersecurity electives, a minor in Big Data Analytics, and a co-major/minor in Social Media. These choices allow students to customize their learning experience and explore specific areas of interest.
data/context6.txt ADDED
@@ -0,0 +1,7 @@
 
 
 
 
 
 
 
 
1
+ Object Oriented Programming is one of the core units offered in the Bachelor of Computer Science program at Swinburne. The Duration of the course is one semester, which is 12 weeks, and 36 hours of face-to-face and blended are expected to be spent in this unit. There are prerequisites for this unit, such that either one from Introduction to Programming, Technical Software Development, Algorithmic Problem Solving, or Introduction to Programming in .NET should be completed.
2
+
3
+ The aim and objectives of this unit are to introduce students to object-oriented programming and design. The content of this unit includes designing, writing, compiling, documenting, and testing programs, programming language syntax, object-oriented programming principles, and object-oriented design.
4
+
5
+ Upon the completion of this unit, students are able to explain the principles of the object-oriented programming paradigm, specifically including abstraction, encapsulation, inheritance, and polymorphism, use an object-oriented programming language and associated class libraries to develop object-oriented programs, design, develop, test and debug programs using object-oriented principles in conjunction with an integrated development environment, construct appropriate diagrams and textual descriptions to communicate the static structure and dynamic behaviour of an object-oriented solution, and lastly describe and explain the factors that contribute to an excellent object-oriented solution, reflecting on students’ own experiences and drawing upon accepted good practices.
6
+
7
+ The assessment of this unit is entirely based on the student portfolio.
data/full_context.txt ADDED
@@ -0,0 +1,36 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ The Bachelor of Computer Science program at Swinburne Sarawak is designed with a modern approach to the analysis, design, and implementation of large-scale systems, recognizing its importance in the field of software development. This program offers a specialized focus on application development involving mobile devices and web-based systems, with an emphasis on creating effective human-computer interfaces. Students have the opportunity to choose a specialization that aligns with their interests and future goals, such as cybersecurity, internet of things, or software development.
2
+ The program places a strong emphasis on staying up-to-date with the latest technology and methods in the field. It provides students with a comprehensive understanding of software development, preparing them for careers in various industries. The program caters to applications in areas such as defence, aerospace, and medicine, where complex and safety-critical software is in demand. It also addresses the needs of businesses requiring extensive computer support, including banking and manufacturing sectors.
3
+ The program has specific intakes in January, February, and September, providing flexibility for students to begin their studies at different times throughout the year. The duration of the Bachelor of Computer Science program is three years, ensuring that students receive a thorough and comprehensive education in the field.
4
+ Upon completion of the program, students will have acquired a range of essential skills and knowledge. These include the ability to apply computer science and software development principles in diverse contexts, using critical thinking and judgment. Students will be proficient in utilizing contemporary methods and tools for scoping, analysing, designing, constructing, verifying, and operating software systems. Effective communication, teamwork, and project management skills are also emphasized throughout the program. Students will develop professionalism, integrity, and ethical conduct, while gaining an awareness of global professional practices.
5
+ The program's structure consists of a total of 24 units (300 credit points). This includes eight units (100 credit points) in core studies, providing a solid foundation in computer science principles. Additionally, students are required to complete eight units (100 credit points) in a major study, enabling them to specialize in a specific area of interest. The remaining eight units (100 credit points) are dedicated to other studies, offering flexibility for students to explore additional subjects of their choice.
6
+ Regarding fees, the annual tuition fee for Malaysian students in the Bachelor of Computer Science program is RM26,448, while international students are charged RM33,496 annually. Swinburne University offers scholarships to support students in their educational journey. Scholarships are available to both commencing and current students, with a focus on providing opportunities, promoting equity, and recognizing excellence and achievement.
7
+ Graduates of the Bachelor of Computer Science program from Swinburne University are well-prepared for careers in organizations engaged in medium- to large-scale software development. Initially, graduates often find employment in technical areas such as programming, systems analysis, design, and internet systems development. As their experience grows, they have the potential to progress into project leadership and management positions, equipped with the necessary skills and knowledge gained from the program.
8
+ Overall, the Bachelor of Computer Science program at Swinburne University offers a comprehensive education in computer science, equipping students with the skills and knowledge required for success in the field of software development. The program's emphasis on modern approaches, practical skills, and industry relevance ensures that graduates are well-prepared to meet the demands of the ever-evolving technology landscape.
9
+
10
+ The admission requirements for our courses at Swinburne University are designed to ensure that students are well-prepared for their academic journey. While meeting the minimum entry requirements is a crucial step, it does not guarantee automatic selection.
11
+ The selection process involves a thorough assessment of various factors, including formal academic qualifications and results, course prerequisites, English language requirements, legal and administrative requirements, availability of student places and learning resources, and certain courses may involve an assessment of your personal capabilities and aptitude.
12
+
13
+ The Bachelor of Computer Science program at Swinburne University has specific English language qualification requirements for prospective students. These requirements ensure that students have the necessary language skills to succeed in their academic studies. Various English language qualifications and their corresponding minimum scores are recognized for admission into the program.
14
+ For the IELTS (International English Language Testing System), a minimum overall score of 6.0 is required, with no individual band score falling below 6.0. Similarly, the TOEFL iBT (Test of English as a Foreign Language internet-based test) or TOEFL Home Edition Test requires a minimum score of 64, with no less than 13 in reading, 12 in listening, 18 in speaking, and 21 in writing.
15
+ The PTE Academic (Pearson Test of English Academic) requires a minimum overall score of 50, with no communicative skill score falling below 50. The SPM (Sijil Pelajaran Malaysia) qualification should have a grade of C, while the UEC (Unified Examination Certificate) qualification requires A1 and A2 grades. A score of C is required for the 1119 English Language subject.
16
+ The MUET (Malaysian University English Test) requires a minimum score of 4. GCE 'O' Level qualifications should have a minimum grade of C, while GCE 'A' Level and AS Level qualifications are recognized as well. For the International Baccalaureate, a minimum Grade 4 in English A or B at Standard Level or Higher Level is required.
17
+ The Common European Framework recognizes qualifications at the B2 level. The C1 Advanced qualification (formerly known as Cambridge English Advanced: CAE) requires a minimum score of 169, with no band score falling below 169. The Linguaskill General qualification requires an overall score of 160-179, with no band score less than 160.
18
+ For STPM (Sijil Tinggi Persekolahan Malaysia) 920 English Literature, a minimum grade of C is required. Sri Lanka O Level qualifications in either English Language or Appreciation of English Literacy Text have no specific requirement.
19
+ Finally, for Malaysian students, the Duolingo English Test is recognized, with an overall score of 95-100.
20
+ These English language qualification requirements ensure that students in the Bachelor of Computer Science program at Swinburne University have the necessary language proficiency to actively engage in their coursework and contribute effectively to the learning environment.
21
+
22
+ The Bachelor of Computer Science program at Swinburne University has specific academic requirements for prospective students. These requirements ensure that students have the background knowledge needed to excel in their studies. The academic requirements for admission into the program vary depending on the country or educational system.
23
+ For the pre-requisite, either MA (Mathematics) or AM (Applied Mathematics) is required. For STPM (Sijil Tinggi Persekolahan Malaysia), a minimum of 2P grades is required. UEC (Unified Examination Certificate) requires a minimum of 5B grades, including the pre-requisite subjects.For 'A' Levels, incorporating Cambridge, CGE, UK, Malaysia, Singapore, and UK, a minimum of 3 'A' Level passes is required. For ATAR, a minimum score of 70 is required. On the other hand, for the Australian Foundation program, a minimum overall percentage of 65% is necessary. Bangladesh Higher School Certificate requires a minimum grade of 3.5.
24
+ For China Gao San, an 80% score is required. GCC (Gulf Cooperation Council) Thanawiya Amma, along with the completion of the first year of a bachelor's program, requires a minimum score of 65%. Indian and Pakistan Year 12 qualifications require a minimum score of 65%. Indonesian SMA III qualifications necessitate a minimum score of 74%. Iran High School Diploma, along with a pre-university degree (1 year), requires a minimum score of 65%. International Baccalaureate IB Diploma scores are evaluated based on the performance in 6 subjects, with a minimum requirement of 24 points. Kenya KCSE (Kenya Certificate of Secondary Education) requires a grade of B.Ontario CPU (Canadian Pre-University) qualifications require a minimum score of 70%. Sri Lankan A Levels necessitate a minimum score of 7. Vietnam Senior High School Year 12 requires a score of 7.0.
25
+
26
+ The Bachelor of Computer Science program at Swinburne University offers a diverse range of units to provide students with comprehensive knowledge and skills in various areas of specialization. The program consists of core units, major-specific units, and options for electives, minors, or second majors.
27
+ In the core units, students will delve into fundamental topics such as Object-oriented Programming, Computing Technology Inquiry Project, Networks and Switching, Computer Systems, Technology in an Indigenous Context Project, and also Computing Technology Project A and B. These units lay the foundation for a strong understanding of computer science principles and technologies.
28
+ There are 5 majors available for students to choose to be majored on, such as Software Development, Cybersecurity, Internet of Things, Data Science, and Artificial Intelligence. For the major in Software Development, students will study units such as Computing Technology Design Project, Computing Technology Innovation Project, Data Structures and Patterns, Interface Design and Development, Concurrent Programming, Software Testing and Reliability, Software Architecture and Design, and Cloud Computing Architecture. These units focus on developing expertise in software development, architecture, and design.
29
+ The major in Cybersecurity offers units such as Computing Technology Design Project, Computing Technology Innovation Project, Software Architecture and Design, Cloud Computing Architecture, Malware Analysis, IT Security, Network Routing Principles, and Network Security and Resilience. These units equip students with the necessary knowledge and skills to protect computer systems and networks from potential threats and attacks. In the Internet of Things (IoT) major, students will learn about IoT Programming, Software Development for Mobile Devices, Software Architecture and Design, Network Administration, Advanced Web Development, Creating Web Application, Computing technology Design Project, and Computing Technology Innovation Project. These units explore the intersection of technology, connectivity, and data in the context of IoT applications.
30
+ The Data Science major includes units such as data science principles, big data architecture and application, data visualization, software deployment and evolution, Cloud Computing Architecture, Computing Technology Design Project, Computing Technology Innovation Project, and Software Architecture and Design. These units focus on extracting insights from data, analysing large datasets, and applying data-driven solutions in various domains. For the Artificial Intelligence major, students will study units such as Introduction to Artificial Intelligence, Intelligent Systems, Applied Machine Learning, Artificial Intelligence for Engineering, Cloud Computing Architecture, Computing technology Design Project, Computing Technology Innovation Project, and Software Architecture and Design. These units delve into the theory and applications of AI, machine learning, and intelligent systems.
31
+ Additionally, students have the flexibility to choose electives, minor programs, or a second major from a wide range of options. These include cybersecurity electives, a minor in Big Data Analytics, and a co-major/minor in Social Media. These choices allow students to customize their learning experience and explore specific areas of interest.
32
+
33
+ Object Oriented Programming is one of the core units offered in the Bachelor of Computer Science program at Swinburne. The Duration of the course is one semester, which is 12 weeks, and 36 hours of face-to-face and blended are expected to be spent in this unit. There are prerequisites for this unit, such that either one from Introduction to Programming, Technical Software Development, Algorithmic Problem Solving, or Introduction to Programming in .NET should be completed.
34
+ The aim and objectives of this unit are to introduce students to object-oriented programming and design. The content of this unit includes designing, writing, compiling, documenting, and testing programs, programming language syntax, object-oriented programming principles, and object-oriented design.
35
+ Upon the completion of this unit, students are able to explain the principles of the object-oriented programming paradigm, specifically including abstraction, encapsulation, inheritance, and polymorphism, use an object-oriented programming language and associated class libraries to develop object-oriented programs, design, develop, test and debug programs using object-oriented principles in conjunction with an integrated development environment, construct appropriate diagrams and textual descriptions to communicate the static structure and dynamic behaviour of an object-oriented solution, and lastly describe and explain the factors that contribute to an excellent object-oriented solution, reflecting on students’ own experiences and drawing upon accepted good practices.
36
+ The assessment of this unit is entirely based on the student portfolio.
data/list_of_context.txt ADDED
@@ -0,0 +1,9 @@
 
 
 
 
 
 
 
 
 
 
1
+ context1 - Main page (https://www.swinburne.edu.my/courses/bachelor-of-computer-science.php)
2
+ context2 - General Admission Requirements (https://www.swinburne.edu.my/study/admission/entry-requirements.php)
3
+ context3 - English Language Requirements (https://www.swinburne.edu.my/study/admission/english-language-requirement.php)
4
+ context4 - Academic Requirements (https://www.swinburne.edu.my/study/admission/academic-requirement.php)
5
+ context5 - Units Available from Main page (https://www.swinburne.edu.my/courses/bachelor-of-computer-science.php)
6
+ context6 - OOP unit (https://www.swinburne.edu.au/study/courses/units/Object-Oriented-Programming-COS20007/international)
7
+
8
+
9
+
data/xxx.txt ADDED
@@ -0,0 +1,36 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ Bachelor of Computer Science
2
+ We believe a modern approach to the analysis, design and implementation of large-scale systems is essential for a career in software development. That’s why we offer computer science at Swinburne.
3
+ We offer a focus on application development involving mobile devices and web-based systems, with an emphasis on the design and implementation of effective human–computer interfaces. It’s just a matter of choosing the specialisation that suits your future: cybersecurity, internet of things or software development.
4
+ The Bachelor of Computer Science involves the use of the most up-to-date technology and methods, and includes a major emphasis on software development. The course is oriented towards applications in areas such as defence, aerospace and medicine, where complex software plays a major role and often of a safety-critical nature; as well as in businesses that require extensive computer support, such as banking and manufacturing.
5
+
6
+ INTAKES: January, February, September
7
+
8
+ DURATION: 3 years
9
+
10
+ Course objectives
11
+ Students who successfully complete this course will be able to:
12
+ - Apply a broad and coherent knowledge of computer science and software development in diverse contexts and domains using critical thinking and judgment
13
+ - Apply appropriate methods and contemporary tools to the scoping, analysis, design, construction, verification and operation of software systems
14
+ - Communicate proficiently to a variety of audiences, function as an effective member or leader of a team, and use the basic tools and practices of project management within project work
15
+ - Demonstrate professionalism, integrity, ethical conduct, professional accountability and an awareness of professional practice in a global context
16
+ - Apply problem analysis and decision-making methodologies to identify, design and implement solutions to industry relevant problems with intellectual independence
17
+ - Reflect on personal performance, learning, and self-management processes as a means of continued professional development and lifelong learning.
18
+
19
+ Course structure
20
+ For the completion of the Bachelor of Computer Science, students are required to complete a total of 24 units (300 credit points) consisting of:
21
+ 8 units in core studies (100 credit points)
22
+ 8 units in major study (100 credit points)
23
+ 8 units in other studies (100 credit points)
24
+
25
+ Fees & scholarships
26
+ Fee for Malaysian students: RM26,448 annual
27
+ Fee for International students: RM33,496 annual
28
+
29
+ At Swinburne scholarships are about providing opportunity, promoting equity and recognising excellence and achievement. Scholarships are available for both commencing and current students.
30
+
31
+ Career opportunities
32
+ Graduates typically find employment in organisations engaged in medium- to large-scale software development. Initially graduates are usually employed in technical areas such as programming and systems analysis and design, internet systems development. They are well-prepared for progression into project leadership and management positions as their experience develops.
33
+
34
+
35
+
36
+
document_retriever_prototype.ipynb ADDED
@@ -0,0 +1,588 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "cells": [
3
+ {
4
+ "cell_type": "code",
5
+ "execution_count": 1,
6
+ "id": "64ccc9ea",
7
+ "metadata": {
8
+ "collapsed": true
9
+ },
10
+ "outputs": [
11
+ {
12
+ "name": "stdout",
13
+ "output_type": "stream",
14
+ "text": [
15
+ "Note: you may need to restart the kernel to use updated packages.\n"
16
+ ]
17
+ },
18
+ {
19
+ "name": "stderr",
20
+ "output_type": "stream",
21
+ "text": [
22
+ "WARNING: Ignoring invalid distribution -rotobuf (c:\\users\\user\\anaconda3\\envs\\tf\\lib\\site-packages)\n",
23
+ "WARNING: Ignoring invalid distribution -illow (c:\\users\\user\\anaconda3\\envs\\tf\\lib\\site-packages)\n",
24
+ "WARNING: Ignoring invalid distribution -cipy (c:\\users\\user\\anaconda3\\envs\\tf\\lib\\site-packages)\n",
25
+ "WARNING: Ignoring invalid distribution -rotobuf (c:\\users\\user\\anaconda3\\envs\\tf\\lib\\site-packages)\n",
26
+ "WARNING: Ignoring invalid distribution -illow (c:\\users\\user\\anaconda3\\envs\\tf\\lib\\site-packages)\n",
27
+ "WARNING: Ignoring invalid distribution -cipy (c:\\users\\user\\anaconda3\\envs\\tf\\lib\\site-packages)\n",
28
+ "WARNING: Ignoring invalid distribution -rotobuf (c:\\users\\user\\anaconda3\\envs\\tf\\lib\\site-packages)\n",
29
+ "WARNING: Ignoring invalid distribution -illow (c:\\users\\user\\anaconda3\\envs\\tf\\lib\\site-packages)\n",
30
+ "WARNING: Ignoring invalid distribution -cipy (c:\\users\\user\\anaconda3\\envs\\tf\\lib\\site-packages)\n",
31
+ "WARNING: Ignoring invalid distribution -rotobuf (c:\\users\\user\\anaconda3\\envs\\tf\\lib\\site-packages)\n",
32
+ "WARNING: Ignoring invalid distribution -illow (c:\\users\\user\\anaconda3\\envs\\tf\\lib\\site-packages)\n",
33
+ "WARNING: Ignoring invalid distribution -cipy (c:\\users\\user\\anaconda3\\envs\\tf\\lib\\site-packages)\n",
34
+ "WARNING: Ignoring invalid distribution -rotobuf (c:\\users\\user\\anaconda3\\envs\\tf\\lib\\site-packages)\n",
35
+ "WARNING: Ignoring invalid distribution -illow (c:\\users\\user\\anaconda3\\envs\\tf\\lib\\site-packages)\n",
36
+ "WARNING: Ignoring invalid distribution -cipy (c:\\users\\user\\anaconda3\\envs\\tf\\lib\\site-packages)\n",
37
+ "WARNING: Ignoring invalid distribution -rotobuf (c:\\users\\user\\anaconda3\\envs\\tf\\lib\\site-packages)\n",
38
+ "WARNING: Ignoring invalid distribution -illow (c:\\users\\user\\anaconda3\\envs\\tf\\lib\\site-packages)\n",
39
+ "WARNING: Ignoring invalid distribution -cipy (c:\\users\\user\\anaconda3\\envs\\tf\\lib\\site-packages)\n",
40
+ "WARNING: Ignoring invalid distribution -rotobuf (c:\\users\\user\\anaconda3\\envs\\tf\\lib\\site-packages)\n",
41
+ "WARNING: Ignoring invalid distribution -illow (c:\\users\\user\\anaconda3\\envs\\tf\\lib\\site-packages)\n",
42
+ "WARNING: Ignoring invalid distribution -cipy (c:\\users\\user\\anaconda3\\envs\\tf\\lib\\site-packages)\n",
43
+ "WARNING: Ignoring invalid distribution -rotobuf (c:\\users\\user\\anaconda3\\envs\\tf\\lib\\site-packages)\n",
44
+ "WARNING: Ignoring invalid distribution -illow (c:\\users\\user\\anaconda3\\envs\\tf\\lib\\site-packages)\n",
45
+ "WARNING: Ignoring invalid distribution -cipy (c:\\users\\user\\anaconda3\\envs\\tf\\lib\\site-packages)\n",
46
+ "WARNING: Ignoring invalid distribution -rotobuf (c:\\users\\user\\anaconda3\\envs\\tf\\lib\\site-packages)\n",
47
+ "WARNING: Ignoring invalid distribution -illow (c:\\users\\user\\anaconda3\\envs\\tf\\lib\\site-packages)\n",
48
+ "WARNING: Ignoring invalid distribution -cipy (c:\\users\\user\\anaconda3\\envs\\tf\\lib\\site-packages)\n",
49
+ "WARNING: Ignoring invalid distribution -rotobuf (c:\\users\\user\\anaconda3\\envs\\tf\\lib\\site-packages)\n",
50
+ "WARNING: Ignoring invalid distribution -illow (c:\\users\\user\\anaconda3\\envs\\tf\\lib\\site-packages)\n",
51
+ "WARNING: Ignoring invalid distribution -cipy (c:\\users\\user\\anaconda3\\envs\\tf\\lib\\site-packages)\n",
52
+ "WARNING: Ignoring invalid distribution -rotobuf (c:\\users\\user\\anaconda3\\envs\\tf\\lib\\site-packages)\n",
53
+ "WARNING: Ignoring invalid distribution -illow (c:\\users\\user\\anaconda3\\envs\\tf\\lib\\site-packages)\n",
54
+ "WARNING: Ignoring invalid distribution -cipy (c:\\users\\user\\anaconda3\\envs\\tf\\lib\\site-packages)\n",
55
+ "WARNING: Ignoring invalid distribution -rotobuf (c:\\users\\user\\anaconda3\\envs\\tf\\lib\\site-packages)\n",
56
+ "WARNING: Ignoring invalid distribution -illow (c:\\users\\user\\anaconda3\\envs\\tf\\lib\\site-packages)\n",
57
+ "WARNING: Ignoring invalid distribution -cipy (c:\\users\\user\\anaconda3\\envs\\tf\\lib\\site-packages)\n",
58
+ "WARNING: Ignoring invalid distribution -rotobuf (c:\\users\\user\\anaconda3\\envs\\tf\\lib\\site-packages)\n",
59
+ "WARNING: Ignoring invalid distribution -illow (c:\\users\\user\\anaconda3\\envs\\tf\\lib\\site-packages)\n",
60
+ "WARNING: Ignoring invalid distribution -cipy (c:\\users\\user\\anaconda3\\envs\\tf\\lib\\site-packages)\n",
61
+ "WARNING: Ignoring invalid distribution -rotobuf (c:\\users\\user\\anaconda3\\envs\\tf\\lib\\site-packages)\n",
62
+ "WARNING: Ignoring invalid distribution -illow (c:\\users\\user\\anaconda3\\envs\\tf\\lib\\site-packages)\n",
63
+ "WARNING: Ignoring invalid distribution -cipy (c:\\users\\user\\anaconda3\\envs\\tf\\lib\\site-packages)\n",
64
+ "WARNING: Ignoring invalid distribution -rotobuf (c:\\users\\user\\anaconda3\\envs\\tf\\lib\\site-packages)\n",
65
+ "WARNING: Ignoring invalid distribution -illow (c:\\users\\user\\anaconda3\\envs\\tf\\lib\\site-packages)\n",
66
+ "WARNING: Ignoring invalid distribution -cipy (c:\\users\\user\\anaconda3\\envs\\tf\\lib\\site-packages)\n",
67
+ "WARNING: Ignoring invalid distribution -rotobuf (c:\\users\\user\\anaconda3\\envs\\tf\\lib\\site-packages)\n",
68
+ "WARNING: Ignoring invalid distribution -illow (c:\\users\\user\\anaconda3\\envs\\tf\\lib\\site-packages)\n",
69
+ "WARNING: Ignoring invalid distribution -cipy (c:\\users\\user\\anaconda3\\envs\\tf\\lib\\site-packages)\n"
70
+ ]
71
+ }
72
+ ],
73
+ "source": [
74
+ "pip -q install langchain openai tiktoken PyPDF2 faiss-cpu"
75
+ ]
76
+ },
77
+ {
78
+ "cell_type": "code",
79
+ "execution_count": 2,
80
+ "id": "fc761f23",
81
+ "metadata": {},
82
+ "outputs": [
83
+ {
84
+ "name": "stdout",
85
+ "output_type": "stream",
86
+ "text": [
87
+ "Name: langchain\n",
88
+ "Version: 0.0.188\n",
89
+ "Summary: Building applications with LLMs through composability\n",
90
+ "Home-page: https://www.github.com/hwchase17/langchain\n",
91
+ "Author: \n",
92
+ "Author-email: \n",
93
+ "License: MIT\n",
94
+ "Location: c:\\users\\user\\anaconda3\\envs\\tf\\lib\\site-packages\n",
95
+ "Requires: aiohttp, async-timeout, dataclasses-json, numexpr, numpy, openapi-schema-pydantic, pydantic, PyYAML, requests, SQLAlchemy, tenacity\n",
96
+ "Required-by: \n",
97
+ "Note: you may need to restart the kernel to use updated packages.\n"
98
+ ]
99
+ },
100
+ {
101
+ "name": "stderr",
102
+ "output_type": "stream",
103
+ "text": [
104
+ "WARNING: Ignoring invalid distribution -rotobuf (c:\\users\\user\\anaconda3\\envs\\tf\\lib\\site-packages)\n",
105
+ "WARNING: Ignoring invalid distribution -illow (c:\\users\\user\\anaconda3\\envs\\tf\\lib\\site-packages)\n",
106
+ "WARNING: Ignoring invalid distribution -cipy (c:\\users\\user\\anaconda3\\envs\\tf\\lib\\site-packages)\n"
107
+ ]
108
+ }
109
+ ],
110
+ "source": [
111
+ "pip show langchain"
112
+ ]
113
+ },
114
+ {
115
+ "cell_type": "code",
116
+ "execution_count": 23,
117
+ "id": "7f96dbe2",
118
+ "metadata": {},
119
+ "outputs": [],
120
+ "source": [
121
+ "import os\n",
122
+ "from langchain.embeddings.openai import OpenAIEmbeddings\n",
123
+ "from langchain.text_splitter import CharacterTextSplitter\n",
124
+ "from langchain.vectorstores import FAISS \n",
125
+ "\n",
126
+ "os.environ[\"OPENAI_API_KEY\"] = \"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\""
127
+ ]
128
+ },
129
+ {
130
+ "cell_type": "code",
131
+ "execution_count": 8,
132
+ "id": "5a7c1d57",
133
+ "metadata": {},
134
+ "outputs": [],
135
+ "source": [
136
+ "with open(\"./data/full_context.txt\", \"r\") as file1:\n",
137
+ " doc = file1.read()\n"
138
+ ]
139
+ },
140
+ {
141
+ "cell_type": "code",
142
+ "execution_count": 10,
143
+ "id": "5abfc8a5",
144
+ "metadata": {},
145
+ "outputs": [
146
+ {
147
+ "data": {
148
+ "text/plain": [
149
+ "13882"
150
+ ]
151
+ },
152
+ "execution_count": 10,
153
+ "metadata": {},
154
+ "output_type": "execute_result"
155
+ }
156
+ ],
157
+ "source": [
158
+ "len(doc)"
159
+ ]
160
+ },
161
+ {
162
+ "cell_type": "code",
163
+ "execution_count": null,
164
+ "id": "50419dc7",
165
+ "metadata": {},
166
+ "outputs": [],
167
+ "source": []
168
+ },
169
+ {
170
+ "cell_type": "markdown",
171
+ "id": "57aea36d",
172
+ "metadata": {},
173
+ "source": [
174
+ "## Text Splitter"
175
+ ]
176
+ },
177
+ {
178
+ "cell_type": "code",
179
+ "execution_count": 15,
180
+ "id": "8babdb6d",
181
+ "metadata": {},
182
+ "outputs": [],
183
+ "source": [
184
+ "# Splitting up the text into smaller chunks for indexing\n",
185
+ "text_splitter = CharacterTextSplitter( \n",
186
+ " separator = \"\\n\",\n",
187
+ " chunk_size = 1000,\n",
188
+ " chunk_overlap = 200, #striding over the text\n",
189
+ " length_function = len,\n",
190
+ ")\n",
191
+ "texts = text_splitter.split_text(doc)"
192
+ ]
193
+ },
194
+ {
195
+ "cell_type": "code",
196
+ "execution_count": 16,
197
+ "id": "361ae58a",
198
+ "metadata": {},
199
+ "outputs": [
200
+ {
201
+ "data": {
202
+ "text/plain": [
203
+ "18"
204
+ ]
205
+ },
206
+ "execution_count": 16,
207
+ "metadata": {},
208
+ "output_type": "execute_result"
209
+ }
210
+ ],
211
+ "source": [
212
+ "len(texts)"
213
+ ]
214
+ },
215
+ {
216
+ "cell_type": "code",
217
+ "execution_count": 19,
218
+ "id": "d35f16e5",
219
+ "metadata": {},
220
+ "outputs": [
221
+ {
222
+ "data": {
223
+ "text/plain": [
224
+ "'The Bachelor of Computer Science program at Swinburne Sarawak is designed with a modern approach to the analysis, design, and implementation of large-scale systems, recognizing its importance in the field of software development. This program offers a specialized focus on application development involving mobile devices and web-based systems, with an emphasis on creating effective human-computer interfaces. Students have the opportunity to choose a specialization that aligns with their interests and future goals, such as cybersecurity, internet of things, or software development.'"
225
+ ]
226
+ },
227
+ "execution_count": 19,
228
+ "metadata": {},
229
+ "output_type": "execute_result"
230
+ }
231
+ ],
232
+ "source": [
233
+ "texts[0]"
234
+ ]
235
+ },
236
+ {
237
+ "cell_type": "code",
238
+ "execution_count": null,
239
+ "id": "8a161ebe",
240
+ "metadata": {},
241
+ "outputs": [],
242
+ "source": []
243
+ },
244
+ {
245
+ "cell_type": "markdown",
246
+ "id": "fca36537",
247
+ "metadata": {},
248
+ "source": [
249
+ "## Create Embeddings"
250
+ ]
251
+ },
252
+ {
253
+ "cell_type": "code",
254
+ "execution_count": 24,
255
+ "id": "05602606",
256
+ "metadata": {},
257
+ "outputs": [],
258
+ "source": [
259
+ "# Download embeddings from OpenAI\n",
260
+ "embeddings = OpenAIEmbeddings()"
261
+ ]
262
+ },
263
+ {
264
+ "cell_type": "code",
265
+ "execution_count": 37,
266
+ "id": "f4825600",
267
+ "metadata": {
268
+ "collapsed": true
269
+ },
270
+ "outputs": [
271
+ {
272
+ "name": "stderr",
273
+ "output_type": "stream",
274
+ "text": [
275
+ "Retrying langchain.embeddings.openai.embed_with_retry.<locals>._embed_with_retry in 4.0 seconds as it raised RateLimitError: You exceeded your current quota, please check your plan and billing details..\n",
276
+ "Retrying langchain.embeddings.openai.embed_with_retry.<locals>._embed_with_retry in 4.0 seconds as it raised RateLimitError: You exceeded your current quota, please check your plan and billing details..\n",
277
+ "Retrying langchain.embeddings.openai.embed_with_retry.<locals>._embed_with_retry in 4.0 seconds as it raised RateLimitError: You exceeded your current quota, please check your plan and billing details..\n",
278
+ "Retrying langchain.embeddings.openai.embed_with_retry.<locals>._embed_with_retry in 8.0 seconds as it raised RateLimitError: You exceeded your current quota, please check your plan and billing details..\n",
279
+ "Retrying langchain.embeddings.openai.embed_with_retry.<locals>._embed_with_retry in 10.0 seconds as it raised RateLimitError: You exceeded your current quota, please check your plan and billing details..\n"
280
+ ]
281
+ },
282
+ {
283
+ "ename": "RateLimitError",
284
+ "evalue": "You exceeded your current quota, please check your plan and billing details.",
285
+ "output_type": "error",
286
+ "traceback": [
287
+ "\u001b[1;31m---------------------------------------------------------------------------\u001b[0m",
288
+ "\u001b[1;31mRateLimitError\u001b[0m Traceback (most recent call last)",
289
+ "Cell \u001b[1;32mIn[37], line 1\u001b[0m\n\u001b[1;32m----> 1\u001b[0m docsearch \u001b[38;5;241m=\u001b[39m \u001b[43mFAISS\u001b[49m\u001b[38;5;241;43m.\u001b[39;49m\u001b[43mfrom_texts\u001b[49m\u001b[43m(\u001b[49m\u001b[43mtexts\u001b[49m\u001b[43m,\u001b[49m\u001b[43m \u001b[49m\u001b[43membeddings\u001b[49m\u001b[43m)\u001b[49m\n",
290
+ "File \u001b[1;32m~\\anaconda3\\envs\\tf\\lib\\site-packages\\langchain\\vectorstores\\faiss.py:425\u001b[0m, in \u001b[0;36mFAISS.from_texts\u001b[1;34m(cls, texts, embedding, metadatas, ids, **kwargs)\u001b[0m\n\u001b[0;32m 399\u001b[0m \u001b[38;5;129m@classmethod\u001b[39m\n\u001b[0;32m 400\u001b[0m \u001b[38;5;28;01mdef\u001b[39;00m \u001b[38;5;21mfrom_texts\u001b[39m(\n\u001b[0;32m 401\u001b[0m \u001b[38;5;28mcls\u001b[39m,\n\u001b[1;32m (...)\u001b[0m\n\u001b[0;32m 406\u001b[0m \u001b[38;5;241m*\u001b[39m\u001b[38;5;241m*\u001b[39mkwargs: Any,\n\u001b[0;32m 407\u001b[0m ) \u001b[38;5;241m-\u001b[39m\u001b[38;5;241m>\u001b[39m FAISS:\n\u001b[0;32m 408\u001b[0m \u001b[38;5;124;03m\"\"\"Construct FAISS wrapper from raw documents.\u001b[39;00m\n\u001b[0;32m 409\u001b[0m \n\u001b[0;32m 410\u001b[0m \u001b[38;5;124;03m This is a user friendly interface that:\u001b[39;00m\n\u001b[1;32m (...)\u001b[0m\n\u001b[0;32m 423\u001b[0m \u001b[38;5;124;03m faiss = FAISS.from_texts(texts, embeddings)\u001b[39;00m\n\u001b[0;32m 424\u001b[0m \u001b[38;5;124;03m \"\"\"\u001b[39;00m\n\u001b[1;32m--> 425\u001b[0m embeddings \u001b[38;5;241m=\u001b[39m \u001b[43membedding\u001b[49m\u001b[38;5;241;43m.\u001b[39;49m\u001b[43membed_documents\u001b[49m\u001b[43m(\u001b[49m\u001b[43mtexts\u001b[49m\u001b[43m)\u001b[49m\n\u001b[0;32m 426\u001b[0m \u001b[38;5;28;01mreturn\u001b[39;00m \u001b[38;5;28mcls\u001b[39m\u001b[38;5;241m.\u001b[39m__from(\n\u001b[0;32m 427\u001b[0m texts,\n\u001b[0;32m 428\u001b[0m embeddings,\n\u001b[1;32m (...)\u001b[0m\n\u001b[0;32m 432\u001b[0m \u001b[38;5;241m*\u001b[39m\u001b[38;5;241m*\u001b[39mkwargs,\n\u001b[0;32m 433\u001b[0m )\n",
291
+ "File \u001b[1;32m~\\anaconda3\\envs\\tf\\lib\\site-packages\\langchain\\embeddings\\openai.py:297\u001b[0m, in \u001b[0;36mOpenAIEmbeddings.embed_documents\u001b[1;34m(self, texts, chunk_size)\u001b[0m\n\u001b[0;32m 285\u001b[0m \u001b[38;5;124;03m\"\"\"Call out to OpenAI's embedding endpoint for embedding search docs.\u001b[39;00m\n\u001b[0;32m 286\u001b[0m \n\u001b[0;32m 287\u001b[0m \u001b[38;5;124;03mArgs:\u001b[39;00m\n\u001b[1;32m (...)\u001b[0m\n\u001b[0;32m 293\u001b[0m \u001b[38;5;124;03m List of embeddings, one for each text.\u001b[39;00m\n\u001b[0;32m 294\u001b[0m \u001b[38;5;124;03m\"\"\"\u001b[39;00m\n\u001b[0;32m 295\u001b[0m \u001b[38;5;66;03m# NOTE: to keep things simple, we assume the list may contain texts longer\u001b[39;00m\n\u001b[0;32m 296\u001b[0m \u001b[38;5;66;03m# than the maximum context and use length-safe embedding function.\u001b[39;00m\n\u001b[1;32m--> 297\u001b[0m \u001b[38;5;28;01mreturn\u001b[39;00m \u001b[38;5;28;43mself\u001b[39;49m\u001b[38;5;241;43m.\u001b[39;49m\u001b[43m_get_len_safe_embeddings\u001b[49m\u001b[43m(\u001b[49m\u001b[43mtexts\u001b[49m\u001b[43m,\u001b[49m\u001b[43m \u001b[49m\u001b[43mengine\u001b[49m\u001b[38;5;241;43m=\u001b[39;49m\u001b[38;5;28;43mself\u001b[39;49m\u001b[38;5;241;43m.\u001b[39;49m\u001b[43mdeployment\u001b[49m\u001b[43m)\u001b[49m\n",
292
+ "File \u001b[1;32m~\\anaconda3\\envs\\tf\\lib\\site-packages\\langchain\\embeddings\\openai.py:233\u001b[0m, in \u001b[0;36mOpenAIEmbeddings._get_len_safe_embeddings\u001b[1;34m(self, texts, engine, chunk_size)\u001b[0m\n\u001b[0;32m 231\u001b[0m _chunk_size \u001b[38;5;241m=\u001b[39m chunk_size \u001b[38;5;129;01mor\u001b[39;00m \u001b[38;5;28mself\u001b[39m\u001b[38;5;241m.\u001b[39mchunk_size\n\u001b[0;32m 232\u001b[0m \u001b[38;5;28;01mfor\u001b[39;00m i \u001b[38;5;129;01min\u001b[39;00m \u001b[38;5;28mrange\u001b[39m(\u001b[38;5;241m0\u001b[39m, \u001b[38;5;28mlen\u001b[39m(tokens), _chunk_size):\n\u001b[1;32m--> 233\u001b[0m response \u001b[38;5;241m=\u001b[39m \u001b[43membed_with_retry\u001b[49m\u001b[43m(\u001b[49m\n\u001b[0;32m 234\u001b[0m \u001b[43m \u001b[49m\u001b[38;5;28;43mself\u001b[39;49m\u001b[43m,\u001b[49m\n\u001b[0;32m 235\u001b[0m \u001b[43m \u001b[49m\u001b[38;5;28;43minput\u001b[39;49m\u001b[38;5;241;43m=\u001b[39;49m\u001b[43mtokens\u001b[49m\u001b[43m[\u001b[49m\u001b[43mi\u001b[49m\u001b[43m \u001b[49m\u001b[43m:\u001b[49m\u001b[43m \u001b[49m\u001b[43mi\u001b[49m\u001b[43m \u001b[49m\u001b[38;5;241;43m+\u001b[39;49m\u001b[43m \u001b[49m\u001b[43m_chunk_size\u001b[49m\u001b[43m]\u001b[49m\u001b[43m,\u001b[49m\n\u001b[0;32m 236\u001b[0m \u001b[43m \u001b[49m\u001b[43mengine\u001b[49m\u001b[38;5;241;43m=\u001b[39;49m\u001b[38;5;28;43mself\u001b[39;49m\u001b[38;5;241;43m.\u001b[39;49m\u001b[43mdeployment\u001b[49m\u001b[43m,\u001b[49m\n\u001b[0;32m 237\u001b[0m \u001b[43m \u001b[49m\u001b[43mrequest_timeout\u001b[49m\u001b[38;5;241;43m=\u001b[39;49m\u001b[38;5;28;43mself\u001b[39;49m\u001b[38;5;241;43m.\u001b[39;49m\u001b[43mrequest_timeout\u001b[49m\u001b[43m,\u001b[49m\n\u001b[0;32m 238\u001b[0m \u001b[43m \u001b[49m\u001b[43mheaders\u001b[49m\u001b[38;5;241;43m=\u001b[39;49m\u001b[38;5;28;43mself\u001b[39;49m\u001b[38;5;241;43m.\u001b[39;49m\u001b[43mheaders\u001b[49m\u001b[43m,\u001b[49m\n\u001b[0;32m 239\u001b[0m \u001b[43m \u001b[49m\u001b[43m)\u001b[49m\n\u001b[0;32m 240\u001b[0m batched_embeddings \u001b[38;5;241m+\u001b[39m\u001b[38;5;241m=\u001b[39m [r[\u001b[38;5;124m\"\u001b[39m\u001b[38;5;124membedding\u001b[39m\u001b[38;5;124m\"\u001b[39m] \u001b[38;5;28;01mfor\u001b[39;00m r \u001b[38;5;129;01min\u001b[39;00m response[\u001b[38;5;124m\"\u001b[39m\u001b[38;5;124mdata\u001b[39m\u001b[38;5;124m\"\u001b[39m]]\n\u001b[0;32m 242\u001b[0m results: List[List[List[\u001b[38;5;28mfloat\u001b[39m]]] \u001b[38;5;241m=\u001b[39m [[] \u001b[38;5;28;01mfor\u001b[39;00m _ \u001b[38;5;129;01min\u001b[39;00m \u001b[38;5;28mrange\u001b[39m(\u001b[38;5;28mlen\u001b[39m(texts))]\n",
293
+ "File \u001b[1;32m~\\anaconda3\\envs\\tf\\lib\\site-packages\\langchain\\embeddings\\openai.py:64\u001b[0m, in \u001b[0;36membed_with_retry\u001b[1;34m(embeddings, **kwargs)\u001b[0m\n\u001b[0;32m 60\u001b[0m \u001b[38;5;129m@retry_decorator\u001b[39m\n\u001b[0;32m 61\u001b[0m \u001b[38;5;28;01mdef\u001b[39;00m \u001b[38;5;21m_embed_with_retry\u001b[39m(\u001b[38;5;241m*\u001b[39m\u001b[38;5;241m*\u001b[39mkwargs: Any) \u001b[38;5;241m-\u001b[39m\u001b[38;5;241m>\u001b[39m Any:\n\u001b[0;32m 62\u001b[0m \u001b[38;5;28;01mreturn\u001b[39;00m embeddings\u001b[38;5;241m.\u001b[39mclient\u001b[38;5;241m.\u001b[39mcreate(\u001b[38;5;241m*\u001b[39m\u001b[38;5;241m*\u001b[39mkwargs)\n\u001b[1;32m---> 64\u001b[0m \u001b[38;5;28;01mreturn\u001b[39;00m _embed_with_retry(\u001b[38;5;241m*\u001b[39m\u001b[38;5;241m*\u001b[39mkwargs)\n",
294
+ "File \u001b[1;32m~\\anaconda3\\envs\\tf\\lib\\site-packages\\tenacity\\__init__.py:289\u001b[0m, in \u001b[0;36mBaseRetrying.wraps.<locals>.wrapped_f\u001b[1;34m(*args, **kw)\u001b[0m\n\u001b[0;32m 287\u001b[0m \u001b[38;5;129m@functools\u001b[39m\u001b[38;5;241m.\u001b[39mwraps(f)\n\u001b[0;32m 288\u001b[0m \u001b[38;5;28;01mdef\u001b[39;00m \u001b[38;5;21mwrapped_f\u001b[39m(\u001b[38;5;241m*\u001b[39margs: t\u001b[38;5;241m.\u001b[39mAny, \u001b[38;5;241m*\u001b[39m\u001b[38;5;241m*\u001b[39mkw: t\u001b[38;5;241m.\u001b[39mAny) \u001b[38;5;241m-\u001b[39m\u001b[38;5;241m>\u001b[39m t\u001b[38;5;241m.\u001b[39mAny:\n\u001b[1;32m--> 289\u001b[0m \u001b[38;5;28;01mreturn\u001b[39;00m \u001b[38;5;28mself\u001b[39m(f, \u001b[38;5;241m*\u001b[39margs, \u001b[38;5;241m*\u001b[39m\u001b[38;5;241m*\u001b[39mkw)\n",
295
+ "File \u001b[1;32m~\\anaconda3\\envs\\tf\\lib\\site-packages\\tenacity\\__init__.py:379\u001b[0m, in \u001b[0;36mRetrying.__call__\u001b[1;34m(self, fn, *args, **kwargs)\u001b[0m\n\u001b[0;32m 377\u001b[0m retry_state \u001b[38;5;241m=\u001b[39m RetryCallState(retry_object\u001b[38;5;241m=\u001b[39m\u001b[38;5;28mself\u001b[39m, fn\u001b[38;5;241m=\u001b[39mfn, args\u001b[38;5;241m=\u001b[39margs, kwargs\u001b[38;5;241m=\u001b[39mkwargs)\n\u001b[0;32m 378\u001b[0m \u001b[38;5;28;01mwhile\u001b[39;00m \u001b[38;5;28;01mTrue\u001b[39;00m:\n\u001b[1;32m--> 379\u001b[0m do \u001b[38;5;241m=\u001b[39m \u001b[38;5;28;43mself\u001b[39;49m\u001b[38;5;241;43m.\u001b[39;49m\u001b[43miter\u001b[49m\u001b[43m(\u001b[49m\u001b[43mretry_state\u001b[49m\u001b[38;5;241;43m=\u001b[39;49m\u001b[43mretry_state\u001b[49m\u001b[43m)\u001b[49m\n\u001b[0;32m 380\u001b[0m \u001b[38;5;28;01mif\u001b[39;00m \u001b[38;5;28misinstance\u001b[39m(do, DoAttempt):\n\u001b[0;32m 381\u001b[0m \u001b[38;5;28;01mtry\u001b[39;00m:\n",
296
+ "File \u001b[1;32m~\\anaconda3\\envs\\tf\\lib\\site-packages\\tenacity\\__init__.py:325\u001b[0m, in \u001b[0;36mBaseRetrying.iter\u001b[1;34m(self, retry_state)\u001b[0m\n\u001b[0;32m 323\u001b[0m retry_exc \u001b[38;5;241m=\u001b[39m \u001b[38;5;28mself\u001b[39m\u001b[38;5;241m.\u001b[39mretry_error_cls(fut)\n\u001b[0;32m 324\u001b[0m \u001b[38;5;28;01mif\u001b[39;00m \u001b[38;5;28mself\u001b[39m\u001b[38;5;241m.\u001b[39mreraise:\n\u001b[1;32m--> 325\u001b[0m \u001b[38;5;28;01mraise\u001b[39;00m \u001b[43mretry_exc\u001b[49m\u001b[38;5;241;43m.\u001b[39;49m\u001b[43mreraise\u001b[49m\u001b[43m(\u001b[49m\u001b[43m)\u001b[49m\n\u001b[0;32m 326\u001b[0m \u001b[38;5;28;01mraise\u001b[39;00m retry_exc \u001b[38;5;28;01mfrom\u001b[39;00m \u001b[38;5;21;01mfut\u001b[39;00m\u001b[38;5;21;01m.\u001b[39;00m\u001b[38;5;21;01mexception\u001b[39;00m()\n\u001b[0;32m 328\u001b[0m \u001b[38;5;28;01mif\u001b[39;00m \u001b[38;5;28mself\u001b[39m\u001b[38;5;241m.\u001b[39mwait:\n",
297
+ "File \u001b[1;32m~\\anaconda3\\envs\\tf\\lib\\site-packages\\tenacity\\__init__.py:158\u001b[0m, in \u001b[0;36mRetryError.reraise\u001b[1;34m(self)\u001b[0m\n\u001b[0;32m 156\u001b[0m \u001b[38;5;28;01mdef\u001b[39;00m \u001b[38;5;21mreraise\u001b[39m(\u001b[38;5;28mself\u001b[39m) \u001b[38;5;241m-\u001b[39m\u001b[38;5;241m>\u001b[39m t\u001b[38;5;241m.\u001b[39mNoReturn:\n\u001b[0;32m 157\u001b[0m \u001b[38;5;28;01mif\u001b[39;00m \u001b[38;5;28mself\u001b[39m\u001b[38;5;241m.\u001b[39mlast_attempt\u001b[38;5;241m.\u001b[39mfailed:\n\u001b[1;32m--> 158\u001b[0m \u001b[38;5;28;01mraise\u001b[39;00m \u001b[38;5;28;43mself\u001b[39;49m\u001b[38;5;241;43m.\u001b[39;49m\u001b[43mlast_attempt\u001b[49m\u001b[38;5;241;43m.\u001b[39;49m\u001b[43mresult\u001b[49m\u001b[43m(\u001b[49m\u001b[43m)\u001b[49m\n\u001b[0;32m 159\u001b[0m \u001b[38;5;28;01mraise\u001b[39;00m \u001b[38;5;28mself\u001b[39m\n",
298
+ "File \u001b[1;32m~\\anaconda3\\envs\\tf\\lib\\concurrent\\futures\\_base.py:451\u001b[0m, in \u001b[0;36mFuture.result\u001b[1;34m(self, timeout)\u001b[0m\n\u001b[0;32m 449\u001b[0m \u001b[38;5;28;01mraise\u001b[39;00m CancelledError()\n\u001b[0;32m 450\u001b[0m \u001b[38;5;28;01melif\u001b[39;00m \u001b[38;5;28mself\u001b[39m\u001b[38;5;241m.\u001b[39m_state \u001b[38;5;241m==\u001b[39m FINISHED:\n\u001b[1;32m--> 451\u001b[0m \u001b[38;5;28;01mreturn\u001b[39;00m \u001b[38;5;28;43mself\u001b[39;49m\u001b[38;5;241;43m.\u001b[39;49m\u001b[43m__get_result\u001b[49m\u001b[43m(\u001b[49m\u001b[43m)\u001b[49m\n\u001b[0;32m 453\u001b[0m \u001b[38;5;28mself\u001b[39m\u001b[38;5;241m.\u001b[39m_condition\u001b[38;5;241m.\u001b[39mwait(timeout)\n\u001b[0;32m 455\u001b[0m \u001b[38;5;28;01mif\u001b[39;00m \u001b[38;5;28mself\u001b[39m\u001b[38;5;241m.\u001b[39m_state \u001b[38;5;129;01min\u001b[39;00m [CANCELLED, CANCELLED_AND_NOTIFIED]:\n",
299
+ "File \u001b[1;32m~\\anaconda3\\envs\\tf\\lib\\concurrent\\futures\\_base.py:403\u001b[0m, in \u001b[0;36mFuture.__get_result\u001b[1;34m(self)\u001b[0m\n\u001b[0;32m 401\u001b[0m \u001b[38;5;28;01mif\u001b[39;00m \u001b[38;5;28mself\u001b[39m\u001b[38;5;241m.\u001b[39m_exception:\n\u001b[0;32m 402\u001b[0m \u001b[38;5;28;01mtry\u001b[39;00m:\n\u001b[1;32m--> 403\u001b[0m \u001b[38;5;28;01mraise\u001b[39;00m \u001b[38;5;28mself\u001b[39m\u001b[38;5;241m.\u001b[39m_exception\n\u001b[0;32m 404\u001b[0m \u001b[38;5;28;01mfinally\u001b[39;00m:\n\u001b[0;32m 405\u001b[0m \u001b[38;5;66;03m# Break a reference cycle with the exception in self._exception\u001b[39;00m\n\u001b[0;32m 406\u001b[0m \u001b[38;5;28mself\u001b[39m \u001b[38;5;241m=\u001b[39m \u001b[38;5;28;01mNone\u001b[39;00m\n",
300
+ "File \u001b[1;32m~\\anaconda3\\envs\\tf\\lib\\site-packages\\tenacity\\__init__.py:382\u001b[0m, in \u001b[0;36mRetrying.__call__\u001b[1;34m(self, fn, *args, **kwargs)\u001b[0m\n\u001b[0;32m 380\u001b[0m \u001b[38;5;28;01mif\u001b[39;00m \u001b[38;5;28misinstance\u001b[39m(do, DoAttempt):\n\u001b[0;32m 381\u001b[0m \u001b[38;5;28;01mtry\u001b[39;00m:\n\u001b[1;32m--> 382\u001b[0m result \u001b[38;5;241m=\u001b[39m fn(\u001b[38;5;241m*\u001b[39margs, \u001b[38;5;241m*\u001b[39m\u001b[38;5;241m*\u001b[39mkwargs)\n\u001b[0;32m 383\u001b[0m \u001b[38;5;28;01mexcept\u001b[39;00m \u001b[38;5;167;01mBaseException\u001b[39;00m: \u001b[38;5;66;03m# noqa: B902\u001b[39;00m\n\u001b[0;32m 384\u001b[0m retry_state\u001b[38;5;241m.\u001b[39mset_exception(sys\u001b[38;5;241m.\u001b[39mexc_info()) \u001b[38;5;66;03m# type: ignore[arg-type]\u001b[39;00m\n",
301
+ "File \u001b[1;32m~\\anaconda3\\envs\\tf\\lib\\site-packages\\langchain\\embeddings\\openai.py:62\u001b[0m, in \u001b[0;36membed_with_retry.<locals>._embed_with_retry\u001b[1;34m(**kwargs)\u001b[0m\n\u001b[0;32m 60\u001b[0m \u001b[38;5;129m@retry_decorator\u001b[39m\n\u001b[0;32m 61\u001b[0m \u001b[38;5;28;01mdef\u001b[39;00m \u001b[38;5;21m_embed_with_retry\u001b[39m(\u001b[38;5;241m*\u001b[39m\u001b[38;5;241m*\u001b[39mkwargs: Any) \u001b[38;5;241m-\u001b[39m\u001b[38;5;241m>\u001b[39m Any:\n\u001b[1;32m---> 62\u001b[0m \u001b[38;5;28;01mreturn\u001b[39;00m embeddings\u001b[38;5;241m.\u001b[39mclient\u001b[38;5;241m.\u001b[39mcreate(\u001b[38;5;241m*\u001b[39m\u001b[38;5;241m*\u001b[39mkwargs)\n",
302
+ "File \u001b[1;32m~\\anaconda3\\envs\\tf\\lib\\site-packages\\openai\\api_resources\\embedding.py:33\u001b[0m, in \u001b[0;36mEmbedding.create\u001b[1;34m(cls, *args, **kwargs)\u001b[0m\n\u001b[0;32m 31\u001b[0m \u001b[38;5;28;01mwhile\u001b[39;00m \u001b[38;5;28;01mTrue\u001b[39;00m:\n\u001b[0;32m 32\u001b[0m \u001b[38;5;28;01mtry\u001b[39;00m:\n\u001b[1;32m---> 33\u001b[0m response \u001b[38;5;241m=\u001b[39m \u001b[38;5;28msuper\u001b[39m()\u001b[38;5;241m.\u001b[39mcreate(\u001b[38;5;241m*\u001b[39margs, \u001b[38;5;241m*\u001b[39m\u001b[38;5;241m*\u001b[39mkwargs)\n\u001b[0;32m 35\u001b[0m \u001b[38;5;66;03m# If a user specifies base64, we'll just return the encoded string.\u001b[39;00m\n\u001b[0;32m 36\u001b[0m \u001b[38;5;66;03m# This is only for the default case.\u001b[39;00m\n\u001b[0;32m 37\u001b[0m \u001b[38;5;28;01mif\u001b[39;00m \u001b[38;5;129;01mnot\u001b[39;00m user_provided_encoding_format:\n",
303
+ "File \u001b[1;32m~\\anaconda3\\envs\\tf\\lib\\site-packages\\openai\\api_resources\\abstract\\engine_api_resource.py:153\u001b[0m, in \u001b[0;36mEngineAPIResource.create\u001b[1;34m(cls, api_key, api_base, api_type, request_id, api_version, organization, **params)\u001b[0m\n\u001b[0;32m 127\u001b[0m \u001b[38;5;129m@classmethod\u001b[39m\n\u001b[0;32m 128\u001b[0m \u001b[38;5;28;01mdef\u001b[39;00m \u001b[38;5;21mcreate\u001b[39m(\n\u001b[0;32m 129\u001b[0m \u001b[38;5;28mcls\u001b[39m,\n\u001b[1;32m (...)\u001b[0m\n\u001b[0;32m 136\u001b[0m \u001b[38;5;241m*\u001b[39m\u001b[38;5;241m*\u001b[39mparams,\n\u001b[0;32m 137\u001b[0m ):\n\u001b[0;32m 138\u001b[0m (\n\u001b[0;32m 139\u001b[0m deployment_id,\n\u001b[0;32m 140\u001b[0m engine,\n\u001b[1;32m (...)\u001b[0m\n\u001b[0;32m 150\u001b[0m api_key, api_base, api_type, api_version, organization, \u001b[38;5;241m*\u001b[39m\u001b[38;5;241m*\u001b[39mparams\n\u001b[0;32m 151\u001b[0m )\n\u001b[1;32m--> 153\u001b[0m response, _, api_key \u001b[38;5;241m=\u001b[39m \u001b[43mrequestor\u001b[49m\u001b[38;5;241;43m.\u001b[39;49m\u001b[43mrequest\u001b[49m\u001b[43m(\u001b[49m\n\u001b[0;32m 154\u001b[0m \u001b[43m \u001b[49m\u001b[38;5;124;43m\"\u001b[39;49m\u001b[38;5;124;43mpost\u001b[39;49m\u001b[38;5;124;43m\"\u001b[39;49m\u001b[43m,\u001b[49m\n\u001b[0;32m 155\u001b[0m \u001b[43m \u001b[49m\u001b[43murl\u001b[49m\u001b[43m,\u001b[49m\n\u001b[0;32m 156\u001b[0m \u001b[43m \u001b[49m\u001b[43mparams\u001b[49m\u001b[38;5;241;43m=\u001b[39;49m\u001b[43mparams\u001b[49m\u001b[43m,\u001b[49m\n\u001b[0;32m 157\u001b[0m \u001b[43m \u001b[49m\u001b[43mheaders\u001b[49m\u001b[38;5;241;43m=\u001b[39;49m\u001b[43mheaders\u001b[49m\u001b[43m,\u001b[49m\n\u001b[0;32m 158\u001b[0m \u001b[43m \u001b[49m\u001b[43mstream\u001b[49m\u001b[38;5;241;43m=\u001b[39;49m\u001b[43mstream\u001b[49m\u001b[43m,\u001b[49m\n\u001b[0;32m 159\u001b[0m \u001b[43m \u001b[49m\u001b[43mrequest_id\u001b[49m\u001b[38;5;241;43m=\u001b[39;49m\u001b[43mrequest_id\u001b[49m\u001b[43m,\u001b[49m\n\u001b[0;32m 160\u001b[0m \u001b[43m \u001b[49m\u001b[43mrequest_timeout\u001b[49m\u001b[38;5;241;43m=\u001b[39;49m\u001b[43mrequest_timeout\u001b[49m\u001b[43m,\u001b[49m\n\u001b[0;32m 161\u001b[0m \u001b[43m \u001b[49m\u001b[43m)\u001b[49m\n\u001b[0;32m 163\u001b[0m \u001b[38;5;28;01mif\u001b[39;00m stream:\n\u001b[0;32m 164\u001b[0m \u001b[38;5;66;03m# must be an iterator\u001b[39;00m\n\u001b[0;32m 165\u001b[0m \u001b[38;5;28;01massert\u001b[39;00m \u001b[38;5;129;01mnot\u001b[39;00m \u001b[38;5;28misinstance\u001b[39m(response, OpenAIResponse)\n",
304
+ "File \u001b[1;32m~\\anaconda3\\envs\\tf\\lib\\site-packages\\openai\\api_requestor.py:230\u001b[0m, in \u001b[0;36mAPIRequestor.request\u001b[1;34m(self, method, url, params, headers, files, stream, request_id, request_timeout)\u001b[0m\n\u001b[0;32m 209\u001b[0m \u001b[38;5;28;01mdef\u001b[39;00m \u001b[38;5;21mrequest\u001b[39m(\n\u001b[0;32m 210\u001b[0m \u001b[38;5;28mself\u001b[39m,\n\u001b[0;32m 211\u001b[0m method,\n\u001b[1;32m (...)\u001b[0m\n\u001b[0;32m 218\u001b[0m request_timeout: Optional[Union[\u001b[38;5;28mfloat\u001b[39m, Tuple[\u001b[38;5;28mfloat\u001b[39m, \u001b[38;5;28mfloat\u001b[39m]]] \u001b[38;5;241m=\u001b[39m \u001b[38;5;28;01mNone\u001b[39;00m,\n\u001b[0;32m 219\u001b[0m ) \u001b[38;5;241m-\u001b[39m\u001b[38;5;241m>\u001b[39m Tuple[Union[OpenAIResponse, Iterator[OpenAIResponse]], \u001b[38;5;28mbool\u001b[39m, \u001b[38;5;28mstr\u001b[39m]:\n\u001b[0;32m 220\u001b[0m result \u001b[38;5;241m=\u001b[39m \u001b[38;5;28mself\u001b[39m\u001b[38;5;241m.\u001b[39mrequest_raw(\n\u001b[0;32m 221\u001b[0m method\u001b[38;5;241m.\u001b[39mlower(),\n\u001b[0;32m 222\u001b[0m url,\n\u001b[1;32m (...)\u001b[0m\n\u001b[0;32m 228\u001b[0m request_timeout\u001b[38;5;241m=\u001b[39mrequest_timeout,\n\u001b[0;32m 229\u001b[0m )\n\u001b[1;32m--> 230\u001b[0m resp, got_stream \u001b[38;5;241m=\u001b[39m \u001b[38;5;28;43mself\u001b[39;49m\u001b[38;5;241;43m.\u001b[39;49m\u001b[43m_interpret_response\u001b[49m\u001b[43m(\u001b[49m\u001b[43mresult\u001b[49m\u001b[43m,\u001b[49m\u001b[43m \u001b[49m\u001b[43mstream\u001b[49m\u001b[43m)\u001b[49m\n\u001b[0;32m 231\u001b[0m \u001b[38;5;28;01mreturn\u001b[39;00m resp, got_stream, \u001b[38;5;28mself\u001b[39m\u001b[38;5;241m.\u001b[39mapi_key\n",
305
+ "File \u001b[1;32m~\\anaconda3\\envs\\tf\\lib\\site-packages\\openai\\api_requestor.py:624\u001b[0m, in \u001b[0;36mAPIRequestor._interpret_response\u001b[1;34m(self, result, stream)\u001b[0m\n\u001b[0;32m 616\u001b[0m \u001b[38;5;28;01mreturn\u001b[39;00m (\n\u001b[0;32m 617\u001b[0m \u001b[38;5;28mself\u001b[39m\u001b[38;5;241m.\u001b[39m_interpret_response_line(\n\u001b[0;32m 618\u001b[0m line, result\u001b[38;5;241m.\u001b[39mstatus_code, result\u001b[38;5;241m.\u001b[39mheaders, stream\u001b[38;5;241m=\u001b[39m\u001b[38;5;28;01mTrue\u001b[39;00m\n\u001b[0;32m 619\u001b[0m )\n\u001b[0;32m 620\u001b[0m \u001b[38;5;28;01mfor\u001b[39;00m line \u001b[38;5;129;01min\u001b[39;00m parse_stream(result\u001b[38;5;241m.\u001b[39miter_lines())\n\u001b[0;32m 621\u001b[0m ), \u001b[38;5;28;01mTrue\u001b[39;00m\n\u001b[0;32m 622\u001b[0m \u001b[38;5;28;01melse\u001b[39;00m:\n\u001b[0;32m 623\u001b[0m \u001b[38;5;28;01mreturn\u001b[39;00m (\n\u001b[1;32m--> 624\u001b[0m \u001b[38;5;28;43mself\u001b[39;49m\u001b[38;5;241;43m.\u001b[39;49m\u001b[43m_interpret_response_line\u001b[49m\u001b[43m(\u001b[49m\n\u001b[0;32m 625\u001b[0m \u001b[43m \u001b[49m\u001b[43mresult\u001b[49m\u001b[38;5;241;43m.\u001b[39;49m\u001b[43mcontent\u001b[49m\u001b[38;5;241;43m.\u001b[39;49m\u001b[43mdecode\u001b[49m\u001b[43m(\u001b[49m\u001b[38;5;124;43m\"\u001b[39;49m\u001b[38;5;124;43mutf-8\u001b[39;49m\u001b[38;5;124;43m\"\u001b[39;49m\u001b[43m)\u001b[49m\u001b[43m,\u001b[49m\n\u001b[0;32m 626\u001b[0m \u001b[43m \u001b[49m\u001b[43mresult\u001b[49m\u001b[38;5;241;43m.\u001b[39;49m\u001b[43mstatus_code\u001b[49m\u001b[43m,\u001b[49m\n\u001b[0;32m 627\u001b[0m \u001b[43m \u001b[49m\u001b[43mresult\u001b[49m\u001b[38;5;241;43m.\u001b[39;49m\u001b[43mheaders\u001b[49m\u001b[43m,\u001b[49m\n\u001b[0;32m 628\u001b[0m \u001b[43m \u001b[49m\u001b[43mstream\u001b[49m\u001b[38;5;241;43m=\u001b[39;49m\u001b[38;5;28;43;01mFalse\u001b[39;49;00m\u001b[43m,\u001b[49m\n\u001b[0;32m 629\u001b[0m \u001b[43m \u001b[49m\u001b[43m)\u001b[49m,\n\u001b[0;32m 630\u001b[0m \u001b[38;5;28;01mFalse\u001b[39;00m,\n\u001b[0;32m 631\u001b[0m )\n",
306
+ "File \u001b[1;32m~\\anaconda3\\envs\\tf\\lib\\site-packages\\openai\\api_requestor.py:687\u001b[0m, in \u001b[0;36mAPIRequestor._interpret_response_line\u001b[1;34m(self, rbody, rcode, rheaders, stream)\u001b[0m\n\u001b[0;32m 685\u001b[0m stream_error \u001b[38;5;241m=\u001b[39m stream \u001b[38;5;129;01mand\u001b[39;00m \u001b[38;5;124m\"\u001b[39m\u001b[38;5;124merror\u001b[39m\u001b[38;5;124m\"\u001b[39m \u001b[38;5;129;01min\u001b[39;00m resp\u001b[38;5;241m.\u001b[39mdata\n\u001b[0;32m 686\u001b[0m \u001b[38;5;28;01mif\u001b[39;00m stream_error \u001b[38;5;129;01mor\u001b[39;00m \u001b[38;5;129;01mnot\u001b[39;00m \u001b[38;5;241m200\u001b[39m \u001b[38;5;241m<\u001b[39m\u001b[38;5;241m=\u001b[39m rcode \u001b[38;5;241m<\u001b[39m \u001b[38;5;241m300\u001b[39m:\n\u001b[1;32m--> 687\u001b[0m \u001b[38;5;28;01mraise\u001b[39;00m \u001b[38;5;28mself\u001b[39m\u001b[38;5;241m.\u001b[39mhandle_error_response(\n\u001b[0;32m 688\u001b[0m rbody, rcode, resp\u001b[38;5;241m.\u001b[39mdata, rheaders, stream_error\u001b[38;5;241m=\u001b[39mstream_error\n\u001b[0;32m 689\u001b[0m )\n\u001b[0;32m 690\u001b[0m \u001b[38;5;28;01mreturn\u001b[39;00m resp\n",
307
+ "\u001b[1;31mRateLimitError\u001b[0m: You exceeded your current quota, please check your plan and billing details."
308
+ ]
309
+ }
310
+ ],
311
+ "source": [
312
+ "docsearch = FAISS.from_texts(texts, embeddings)"
313
+ ]
314
+ },
315
+ {
316
+ "cell_type": "code",
317
+ "execution_count": null,
318
+ "id": "8f4cf500",
319
+ "metadata": {},
320
+ "outputs": [],
321
+ "source": []
322
+ },
323
+ {
324
+ "cell_type": "code",
325
+ "execution_count": 45,
326
+ "id": "46e77ed0",
327
+ "metadata": {},
328
+ "outputs": [
329
+ {
330
+ "data": {
331
+ "text/plain": [
332
+ "OpenAIEmbeddings(client=<class 'openai.api_resources.embedding.Embedding'>, model='text-embedding-ada-002', deployment='text-embedding-ada-002', openai_api_version=None, openai_api_base=None, openai_api_type=None, openai_proxy=None, embedding_ctx_length=8191, openai_api_key=None, openai_organization=None, allowed_special=set(), disallowed_special='all', chunk_size=1000, max_retries=6, request_timeout=None, headers=None)"
333
+ ]
334
+ },
335
+ "execution_count": 45,
336
+ "metadata": {},
337
+ "output_type": "execute_result"
338
+ }
339
+ ],
340
+ "source": [
341
+ "embeddings"
342
+ ]
343
+ },
344
+ {
345
+ "cell_type": "code",
346
+ "execution_count": 38,
347
+ "id": "f910d861",
348
+ "metadata": {},
349
+ "outputs": [
350
+ {
351
+ "data": {
352
+ "text/plain": [
353
+ "langchain.vectorstores.faiss.FAISS"
354
+ ]
355
+ },
356
+ "execution_count": 38,
357
+ "metadata": {},
358
+ "output_type": "execute_result"
359
+ }
360
+ ],
361
+ "source": [
362
+ "type(docsearch)"
363
+ ]
364
+ },
365
+ {
366
+ "cell_type": "code",
367
+ "execution_count": 27,
368
+ "id": "b7929f68",
369
+ "metadata": {},
370
+ "outputs": [
371
+ {
372
+ "data": {
373
+ "text/plain": [
374
+ "<bound method OpenAIEmbeddings.embed_query of OpenAIEmbeddings(client=<class 'openai.api_resources.embedding.Embedding'>, model='text-embedding-ada-002', deployment='text-embedding-ada-002', openai_api_version=None, openai_api_base=None, openai_api_type=None, openai_proxy=None, embedding_ctx_length=8191, openai_api_key=None, openai_organization=None, allowed_special=set(), disallowed_special='all', chunk_size=1000, max_retries=6, request_timeout=None, headers=None)>"
375
+ ]
376
+ },
377
+ "execution_count": 27,
378
+ "metadata": {},
379
+ "output_type": "execute_result"
380
+ }
381
+ ],
382
+ "source": [
383
+ "docsearch.embedding_function"
384
+ ]
385
+ },
386
+ {
387
+ "cell_type": "code",
388
+ "execution_count": 30,
389
+ "id": "032edfd9",
390
+ "metadata": {},
391
+ "outputs": [
392
+ {
393
+ "data": {
394
+ "text/plain": [
395
+ "4"
396
+ ]
397
+ },
398
+ "execution_count": 30,
399
+ "metadata": {},
400
+ "output_type": "execute_result"
401
+ }
402
+ ],
403
+ "source": [
404
+ "query = \"What is the duration of the Bachelor of Computer Science program?\"\n",
405
+ "docs = docsearch.similarity_search(query)\n",
406
+ "len(docs)"
407
+ ]
408
+ },
409
+ {
410
+ "cell_type": "code",
411
+ "execution_count": 33,
412
+ "id": "c967f4ff",
413
+ "metadata": {},
414
+ "outputs": [
415
+ {
416
+ "data": {
417
+ "text/plain": [
418
+ "Document(page_content='The program places a strong emphasis on staying up-to-date with the latest technology and methods in the field. It provides students with a comprehensive understanding of software development, preparing them for careers in various industries. The program caters to applications in areas such as defence, aerospace, and medicine, where complex and safety-critical software is in demand. It also addresses the needs of businesses requiring extensive computer support, including banking and manufacturing sectors.\\nThe program has specific intakes in January, February, and September, providing flexibility for students to begin their studies at different times throughout the year. The duration of the Bachelor of Computer Science program is three years, ensuring that students receive a thorough and comprehensive education in the field.', metadata={})"
419
+ ]
420
+ },
421
+ "execution_count": 33,
422
+ "metadata": {},
423
+ "output_type": "execute_result"
424
+ }
425
+ ],
426
+ "source": [
427
+ "docs[0]"
428
+ ]
429
+ },
430
+ {
431
+ "cell_type": "code",
432
+ "execution_count": null,
433
+ "id": "47200bbe",
434
+ "metadata": {},
435
+ "outputs": [],
436
+ "source": []
437
+ },
438
+ {
439
+ "cell_type": "markdown",
440
+ "id": "043dc234",
441
+ "metadata": {},
442
+ "source": [
443
+ "## Initialize qa model"
444
+ ]
445
+ },
446
+ {
447
+ "cell_type": "code",
448
+ "execution_count": 42,
449
+ "id": "55f56a6d",
450
+ "metadata": {},
451
+ "outputs": [
452
+ {
453
+ "ename": "RuntimeError",
454
+ "evalue": "Failed to import transformers.pipelines because of the following error (look up to see its traceback):\n[WinError 182] The operating system cannot run %1. Error loading \"C:\\Users\\User\\anaconda3\\envs\\tf\\lib\\site-packages\\torch\\lib\\shm.dll\" or one of its dependencies.",
455
+ "output_type": "error",
456
+ "traceback": [
457
+ "\u001b[1;31m---------------------------------------------------------------------------\u001b[0m",
458
+ "\u001b[1;31mOSError\u001b[0m Traceback (most recent call last)",
459
+ "File \u001b[1;32m~\\anaconda3\\envs\\tf\\lib\\site-packages\\transformers\\utils\\import_utils.py:1093\u001b[0m, in \u001b[0;36m_LazyModule._get_module\u001b[1;34m(self, module_name)\u001b[0m\n\u001b[0;32m 1092\u001b[0m \u001b[38;5;28;01mtry\u001b[39;00m:\n\u001b[1;32m-> 1093\u001b[0m \u001b[38;5;28;01mreturn\u001b[39;00m \u001b[43mimportlib\u001b[49m\u001b[38;5;241;43m.\u001b[39;49m\u001b[43mimport_module\u001b[49m\u001b[43m(\u001b[49m\u001b[38;5;124;43m\"\u001b[39;49m\u001b[38;5;124;43m.\u001b[39;49m\u001b[38;5;124;43m\"\u001b[39;49m\u001b[43m \u001b[49m\u001b[38;5;241;43m+\u001b[39;49m\u001b[43m \u001b[49m\u001b[43mmodule_name\u001b[49m\u001b[43m,\u001b[49m\u001b[43m \u001b[49m\u001b[38;5;28;43mself\u001b[39;49m\u001b[38;5;241;43m.\u001b[39;49m\u001b[38;5;18;43m__name__\u001b[39;49m\u001b[43m)\u001b[49m\n\u001b[0;32m 1094\u001b[0m \u001b[38;5;28;01mexcept\u001b[39;00m \u001b[38;5;167;01mException\u001b[39;00m \u001b[38;5;28;01mas\u001b[39;00m e:\n",
460
+ "File \u001b[1;32m~\\anaconda3\\envs\\tf\\lib\\importlib\\__init__.py:126\u001b[0m, in \u001b[0;36mimport_module\u001b[1;34m(name, package)\u001b[0m\n\u001b[0;32m 125\u001b[0m level \u001b[38;5;241m+\u001b[39m\u001b[38;5;241m=\u001b[39m \u001b[38;5;241m1\u001b[39m\n\u001b[1;32m--> 126\u001b[0m \u001b[38;5;28;01mreturn\u001b[39;00m \u001b[43m_bootstrap\u001b[49m\u001b[38;5;241;43m.\u001b[39;49m\u001b[43m_gcd_import\u001b[49m\u001b[43m(\u001b[49m\u001b[43mname\u001b[49m\u001b[43m[\u001b[49m\u001b[43mlevel\u001b[49m\u001b[43m:\u001b[49m\u001b[43m]\u001b[49m\u001b[43m,\u001b[49m\u001b[43m \u001b[49m\u001b[43mpackage\u001b[49m\u001b[43m,\u001b[49m\u001b[43m \u001b[49m\u001b[43mlevel\u001b[49m\u001b[43m)\u001b[49m\n",
461
+ "File \u001b[1;32m<frozen importlib._bootstrap>:1050\u001b[0m, in \u001b[0;36m_gcd_import\u001b[1;34m(name, package, level)\u001b[0m\n",
462
+ "File \u001b[1;32m<frozen importlib._bootstrap>:1027\u001b[0m, in \u001b[0;36m_find_and_load\u001b[1;34m(name, import_)\u001b[0m\n",
463
+ "File \u001b[1;32m<frozen importlib._bootstrap>:1006\u001b[0m, in \u001b[0;36m_find_and_load_unlocked\u001b[1;34m(name, import_)\u001b[0m\n",
464
+ "File \u001b[1;32m<frozen importlib._bootstrap>:688\u001b[0m, in \u001b[0;36m_load_unlocked\u001b[1;34m(spec)\u001b[0m\n",
465
+ "File \u001b[1;32m<frozen importlib._bootstrap_external>:883\u001b[0m, in \u001b[0;36mexec_module\u001b[1;34m(self, module)\u001b[0m\n",
466
+ "File \u001b[1;32m<frozen importlib._bootstrap>:241\u001b[0m, in \u001b[0;36m_call_with_frames_removed\u001b[1;34m(f, *args, **kwds)\u001b[0m\n",
467
+ "File \u001b[1;32m~\\anaconda3\\envs\\tf\\lib\\site-packages\\transformers\\pipelines\\__init__.py:48\u001b[0m\n\u001b[0;32m 40\u001b[0m \u001b[38;5;28;01mfrom\u001b[39;00m \u001b[38;5;21;01m.\u001b[39;00m\u001b[38;5;21;01m.\u001b[39;00m\u001b[38;5;21;01mutils\u001b[39;00m \u001b[38;5;28;01mimport\u001b[39;00m (\n\u001b[0;32m 41\u001b[0m HUGGINGFACE_CO_RESOLVE_ENDPOINT,\n\u001b[0;32m 42\u001b[0m is_kenlm_available,\n\u001b[1;32m (...)\u001b[0m\n\u001b[0;32m 46\u001b[0m logging,\n\u001b[0;32m 47\u001b[0m )\n\u001b[1;32m---> 48\u001b[0m \u001b[38;5;28;01mfrom\u001b[39;00m \u001b[38;5;21;01m.\u001b[39;00m\u001b[38;5;21;01maudio_classification\u001b[39;00m \u001b[38;5;28;01mimport\u001b[39;00m AudioClassificationPipeline\n\u001b[0;32m 49\u001b[0m \u001b[38;5;28;01mfrom\u001b[39;00m \u001b[38;5;21;01m.\u001b[39;00m\u001b[38;5;21;01mautomatic_speech_recognition\u001b[39;00m \u001b[38;5;28;01mimport\u001b[39;00m AutomaticSpeechRecognitionPipeline\n",
468
+ "File \u001b[1;32m~\\anaconda3\\envs\\tf\\lib\\site-packages\\transformers\\pipelines\\audio_classification.py:22\u001b[0m\n\u001b[0;32m 21\u001b[0m \u001b[38;5;28;01mfrom\u001b[39;00m \u001b[38;5;21;01m.\u001b[39;00m\u001b[38;5;21;01m.\u001b[39;00m\u001b[38;5;21;01mutils\u001b[39;00m \u001b[38;5;28;01mimport\u001b[39;00m add_end_docstrings, is_torch_available, logging\n\u001b[1;32m---> 22\u001b[0m \u001b[38;5;28;01mfrom\u001b[39;00m \u001b[38;5;21;01m.\u001b[39;00m\u001b[38;5;21;01mbase\u001b[39;00m \u001b[38;5;28;01mimport\u001b[39;00m PIPELINE_INIT_ARGS, Pipeline\n\u001b[0;32m 25\u001b[0m \u001b[38;5;28;01mif\u001b[39;00m is_torch_available():\n",
469
+ "File \u001b[1;32m~\\anaconda3\\envs\\tf\\lib\\site-packages\\transformers\\pipelines\\base.py:34\u001b[0m\n\u001b[0;32m 33\u001b[0m \u001b[38;5;28;01mfrom\u001b[39;00m \u001b[38;5;21;01m.\u001b[39;00m\u001b[38;5;21;01m.\u001b[39;00m\u001b[38;5;21;01mfeature_extraction_utils\u001b[39;00m \u001b[38;5;28;01mimport\u001b[39;00m PreTrainedFeatureExtractor\n\u001b[1;32m---> 34\u001b[0m \u001b[38;5;28;01mfrom\u001b[39;00m \u001b[38;5;21;01m.\u001b[39;00m\u001b[38;5;21;01m.\u001b[39;00m\u001b[38;5;21;01mmodelcard\u001b[39;00m \u001b[38;5;28;01mimport\u001b[39;00m ModelCard\n\u001b[0;32m 35\u001b[0m \u001b[38;5;28;01mfrom\u001b[39;00m \u001b[38;5;21;01m.\u001b[39;00m\u001b[38;5;21;01m.\u001b[39;00m\u001b[38;5;21;01mmodels\u001b[39;00m\u001b[38;5;21;01m.\u001b[39;00m\u001b[38;5;21;01mauto\u001b[39;00m\u001b[38;5;21;01m.\u001b[39;00m\u001b[38;5;21;01mconfiguration_auto\u001b[39;00m \u001b[38;5;28;01mimport\u001b[39;00m AutoConfig\n",
470
+ "File \u001b[1;32m~\\anaconda3\\envs\\tf\\lib\\site-packages\\transformers\\modelcard.py:47\u001b[0m\n\u001b[0;32m 32\u001b[0m \u001b[38;5;28;01mfrom\u001b[39;00m \u001b[38;5;21;01m.\u001b[39;00m\u001b[38;5;21;01mmodels\u001b[39;00m\u001b[38;5;21;01m.\u001b[39;00m\u001b[38;5;21;01mauto\u001b[39;00m\u001b[38;5;21;01m.\u001b[39;00m\u001b[38;5;21;01mmodeling_auto\u001b[39;00m \u001b[38;5;28;01mimport\u001b[39;00m (\n\u001b[0;32m 33\u001b[0m MODEL_FOR_AUDIO_CLASSIFICATION_MAPPING_NAMES,\n\u001b[0;32m 34\u001b[0m MODEL_FOR_CAUSAL_LM_MAPPING_NAMES,\n\u001b[1;32m (...)\u001b[0m\n\u001b[0;32m 45\u001b[0m MODEL_FOR_TOKEN_CLASSIFICATION_MAPPING_NAMES,\n\u001b[0;32m 46\u001b[0m )\n\u001b[1;32m---> 47\u001b[0m \u001b[38;5;28;01mfrom\u001b[39;00m \u001b[38;5;21;01m.\u001b[39;00m\u001b[38;5;21;01mtraining_args\u001b[39;00m \u001b[38;5;28;01mimport\u001b[39;00m ParallelMode\n\u001b[0;32m 48\u001b[0m \u001b[38;5;28;01mfrom\u001b[39;00m \u001b[38;5;21;01m.\u001b[39;00m\u001b[38;5;21;01mutils\u001b[39;00m \u001b[38;5;28;01mimport\u001b[39;00m (\n\u001b[0;32m 49\u001b[0m MODEL_CARD_NAME,\n\u001b[0;32m 50\u001b[0m cached_file,\n\u001b[1;32m (...)\u001b[0m\n\u001b[0;32m 56\u001b[0m logging,\n\u001b[0;32m 57\u001b[0m )\n",
471
+ "File \u001b[1;32m~\\anaconda3\\envs\\tf\\lib\\site-packages\\transformers\\training_args.py:28\u001b[0m\n\u001b[0;32m 26\u001b[0m \u001b[38;5;28;01mfrom\u001b[39;00m \u001b[38;5;21;01mpackaging\u001b[39;00m \u001b[38;5;28;01mimport\u001b[39;00m version\n\u001b[1;32m---> 28\u001b[0m \u001b[38;5;28;01mfrom\u001b[39;00m \u001b[38;5;21;01m.\u001b[39;00m\u001b[38;5;21;01mdebug_utils\u001b[39;00m \u001b[38;5;28;01mimport\u001b[39;00m DebugOption\n\u001b[0;32m 29\u001b[0m \u001b[38;5;28;01mfrom\u001b[39;00m \u001b[38;5;21;01m.\u001b[39;00m\u001b[38;5;21;01mtrainer_utils\u001b[39;00m \u001b[38;5;28;01mimport\u001b[39;00m (\n\u001b[0;32m 30\u001b[0m EvaluationStrategy,\n\u001b[0;32m 31\u001b[0m FSDPOption,\n\u001b[1;32m (...)\u001b[0m\n\u001b[0;32m 35\u001b[0m ShardedDDPOption,\n\u001b[0;32m 36\u001b[0m )\n",
472
+ "File \u001b[1;32m~\\anaconda3\\envs\\tf\\lib\\site-packages\\transformers\\debug_utils.py:21\u001b[0m\n\u001b[0;32m 20\u001b[0m \u001b[38;5;28;01mif\u001b[39;00m is_torch_available():\n\u001b[1;32m---> 21\u001b[0m \u001b[38;5;28;01mimport\u001b[39;00m \u001b[38;5;21;01mtorch\u001b[39;00m\n\u001b[0;32m 24\u001b[0m logger \u001b[38;5;241m=\u001b[39m logging\u001b[38;5;241m.\u001b[39mget_logger(\u001b[38;5;18m__name__\u001b[39m)\n",
473
+ "File \u001b[1;32m~\\anaconda3\\envs\\tf\\lib\\site-packages\\torch\\__init__.py:122\u001b[0m\n\u001b[0;32m 121\u001b[0m err\u001b[38;5;241m.\u001b[39mstrerror \u001b[38;5;241m+\u001b[39m\u001b[38;5;241m=\u001b[39m \u001b[38;5;124mf\u001b[39m\u001b[38;5;124m'\u001b[39m\u001b[38;5;124m Error loading \u001b[39m\u001b[38;5;124m\"\u001b[39m\u001b[38;5;132;01m{\u001b[39;00mdll\u001b[38;5;132;01m}\u001b[39;00m\u001b[38;5;124m\"\u001b[39m\u001b[38;5;124m or one of its dependencies.\u001b[39m\u001b[38;5;124m'\u001b[39m\n\u001b[1;32m--> 122\u001b[0m \u001b[38;5;28;01mraise\u001b[39;00m err\n\u001b[0;32m 123\u001b[0m \u001b[38;5;28;01melif\u001b[39;00m res \u001b[38;5;129;01mis\u001b[39;00m \u001b[38;5;129;01mnot\u001b[39;00m \u001b[38;5;28;01mNone\u001b[39;00m:\n",
474
+ "\u001b[1;31mOSError\u001b[0m: [WinError 182] The operating system cannot run %1. Error loading \"C:\\Users\\User\\anaconda3\\envs\\tf\\lib\\site-packages\\torch\\lib\\shm.dll\" or one of its dependencies.",
475
+ "\nThe above exception was the direct cause of the following exception:\n",
476
+ "\u001b[1;31mRuntimeError\u001b[0m Traceback (most recent call last)",
477
+ "Cell \u001b[1;32mIn[42], line 1\u001b[0m\n\u001b[1;32m----> 1\u001b[0m \u001b[38;5;28;01mfrom\u001b[39;00m \u001b[38;5;21;01mtransformers\u001b[39;00m \u001b[38;5;28;01mimport\u001b[39;00m TFAutoModelForQuestionAnswering, pipeline\n",
478
+ "File \u001b[1;32m<frozen importlib._bootstrap>:1075\u001b[0m, in \u001b[0;36m_handle_fromlist\u001b[1;34m(module, fromlist, import_, recursive)\u001b[0m\n",
479
+ "File \u001b[1;32m~\\anaconda3\\envs\\tf\\lib\\site-packages\\transformers\\utils\\import_utils.py:1083\u001b[0m, in \u001b[0;36m_LazyModule.__getattr__\u001b[1;34m(self, name)\u001b[0m\n\u001b[0;32m 1081\u001b[0m value \u001b[38;5;241m=\u001b[39m \u001b[38;5;28mself\u001b[39m\u001b[38;5;241m.\u001b[39m_get_module(name)\n\u001b[0;32m 1082\u001b[0m \u001b[38;5;28;01melif\u001b[39;00m name \u001b[38;5;129;01min\u001b[39;00m \u001b[38;5;28mself\u001b[39m\u001b[38;5;241m.\u001b[39m_class_to_module\u001b[38;5;241m.\u001b[39mkeys():\n\u001b[1;32m-> 1083\u001b[0m module \u001b[38;5;241m=\u001b[39m \u001b[38;5;28;43mself\u001b[39;49m\u001b[38;5;241;43m.\u001b[39;49m\u001b[43m_get_module\u001b[49m\u001b[43m(\u001b[49m\u001b[38;5;28;43mself\u001b[39;49m\u001b[38;5;241;43m.\u001b[39;49m\u001b[43m_class_to_module\u001b[49m\u001b[43m[\u001b[49m\u001b[43mname\u001b[49m\u001b[43m]\u001b[49m\u001b[43m)\u001b[49m\n\u001b[0;32m 1084\u001b[0m value \u001b[38;5;241m=\u001b[39m \u001b[38;5;28mgetattr\u001b[39m(module, name)\n\u001b[0;32m 1085\u001b[0m \u001b[38;5;28;01melse\u001b[39;00m:\n",
480
+ "File \u001b[1;32m~\\anaconda3\\envs\\tf\\lib\\site-packages\\transformers\\utils\\import_utils.py:1095\u001b[0m, in \u001b[0;36m_LazyModule._get_module\u001b[1;34m(self, module_name)\u001b[0m\n\u001b[0;32m 1093\u001b[0m \u001b[38;5;28;01mreturn\u001b[39;00m importlib\u001b[38;5;241m.\u001b[39mimport_module(\u001b[38;5;124m\"\u001b[39m\u001b[38;5;124m.\u001b[39m\u001b[38;5;124m\"\u001b[39m \u001b[38;5;241m+\u001b[39m module_name, \u001b[38;5;28mself\u001b[39m\u001b[38;5;241m.\u001b[39m\u001b[38;5;18m__name__\u001b[39m)\n\u001b[0;32m 1094\u001b[0m \u001b[38;5;28;01mexcept\u001b[39;00m \u001b[38;5;167;01mException\u001b[39;00m \u001b[38;5;28;01mas\u001b[39;00m e:\n\u001b[1;32m-> 1095\u001b[0m \u001b[38;5;28;01mraise\u001b[39;00m \u001b[38;5;167;01mRuntimeError\u001b[39;00m(\n\u001b[0;32m 1096\u001b[0m \u001b[38;5;124mf\u001b[39m\u001b[38;5;124m\"\u001b[39m\u001b[38;5;124mFailed to import \u001b[39m\u001b[38;5;132;01m{\u001b[39;00m\u001b[38;5;28mself\u001b[39m\u001b[38;5;241m.\u001b[39m\u001b[38;5;18m__name__\u001b[39m\u001b[38;5;132;01m}\u001b[39;00m\u001b[38;5;124m.\u001b[39m\u001b[38;5;132;01m{\u001b[39;00mmodule_name\u001b[38;5;132;01m}\u001b[39;00m\u001b[38;5;124m because of the following error (look up to see its\u001b[39m\u001b[38;5;124m\"\u001b[39m\n\u001b[0;32m 1097\u001b[0m \u001b[38;5;124mf\u001b[39m\u001b[38;5;124m\"\u001b[39m\u001b[38;5;124m traceback):\u001b[39m\u001b[38;5;130;01m\\n\u001b[39;00m\u001b[38;5;132;01m{\u001b[39;00me\u001b[38;5;132;01m}\u001b[39;00m\u001b[38;5;124m\"\u001b[39m\n\u001b[0;32m 1098\u001b[0m ) \u001b[38;5;28;01mfrom\u001b[39;00m \u001b[38;5;21;01me\u001b[39;00m\n",
481
+ "\u001b[1;31mRuntimeError\u001b[0m: Failed to import transformers.pipelines because of the following error (look up to see its traceback):\n[WinError 182] The operating system cannot run %1. Error loading \"C:\\Users\\User\\anaconda3\\envs\\tf\\lib\\site-packages\\torch\\lib\\shm.dll\" or one of its dependencies."
482
+ ]
483
+ }
484
+ ],
485
+ "source": [
486
+ "from transformers import TFAutoModelForQuestionAnswering, pipeline"
487
+ ]
488
+ },
489
+ {
490
+ "cell_type": "code",
491
+ "execution_count": null,
492
+ "id": "7635f071",
493
+ "metadata": {},
494
+ "outputs": [],
495
+ "source": [
496
+ "# Load model\n",
497
+ "model = TFAutoModelForQuestionAnswering.from_pretrained(\"models/bert_finetuned_model\")\n",
498
+ "\n",
499
+ "# Initialize Transformer pipeline with our own model and tokenizer\n",
500
+ "question_answerer = pipeline(\"question-answering\", model=model, tokenizer=tokenizer)"
501
+ ]
502
+ },
503
+ {
504
+ "cell_type": "code",
505
+ "execution_count": null,
506
+ "id": "a9eafb4c",
507
+ "metadata": {},
508
+ "outputs": [],
509
+ "source": []
510
+ },
511
+ {
512
+ "cell_type": "code",
513
+ "execution_count": null,
514
+ "id": "1f9d86a2",
515
+ "metadata": {},
516
+ "outputs": [],
517
+ "source": []
518
+ },
519
+ {
520
+ "cell_type": "markdown",
521
+ "id": "e8df00d8",
522
+ "metadata": {},
523
+ "source": [
524
+ "## Overall QA chatbot application (backend)"
525
+ ]
526
+ },
527
+ {
528
+ "cell_type": "code",
529
+ "execution_count": null,
530
+ "id": "7961a777",
531
+ "metadata": {},
532
+ "outputs": [],
533
+ "source": [
534
+ "# Get in a question about Bachelor of Computer Science program at Swinburne\n",
535
+ "question = 'What is the duration of the Bachelor of Computer Science program?'\n",
536
+ "\n",
537
+ "docs = docsearch.similarity_search(question)\n",
538
+ "\n",
539
+ "question_answerer(question=question, context = docs[0])\n"
540
+ ]
541
+ },
542
+ {
543
+ "cell_type": "code",
544
+ "execution_count": null,
545
+ "id": "61cda0db",
546
+ "metadata": {},
547
+ "outputs": [],
548
+ "source": []
549
+ },
550
+ {
551
+ "cell_type": "code",
552
+ "execution_count": null,
553
+ "id": "09f68e08",
554
+ "metadata": {},
555
+ "outputs": [],
556
+ "source": []
557
+ },
558
+ {
559
+ "cell_type": "code",
560
+ "execution_count": null,
561
+ "id": "5a0b4755",
562
+ "metadata": {},
563
+ "outputs": [],
564
+ "source": []
565
+ }
566
+ ],
567
+ "metadata": {
568
+ "kernelspec": {
569
+ "display_name": "Python 3 (ipykernel)",
570
+ "language": "python",
571
+ "name": "python3"
572
+ },
573
+ "language_info": {
574
+ "codemirror_mode": {
575
+ "name": "ipython",
576
+ "version": 3
577
+ },
578
+ "file_extension": ".py",
579
+ "mimetype": "text/x-python",
580
+ "name": "python",
581
+ "nbconvert_exporter": "python",
582
+ "pygments_lexer": "ipython3",
583
+ "version": "3.10.9"
584
+ }
585
+ },
586
+ "nbformat": 4,
587
+ "nbformat_minor": 5
588
+ }