quoc-khanh commited on
Commit
ac2f7bd
·
verified ·
1 Parent(s): d1ab55d

Update file_loader.py

Browse files
Files changed (1) hide show
  1. file_loader.py +6 -6
file_loader.py CHANGED
@@ -61,15 +61,15 @@ def get_vectorstore():
61
  print('Feeding .json files')
62
 
63
  # Xử lý FAQ
64
- # FAQ_path = "syllabus_nct_word_format/FAQ.json"
65
- # FAQ_splits = get_json_splits_only(FAQ_path)
66
- # all_splits += FAQ_splits
67
 
68
 
69
 
70
- # FAQ_path = "syllabus_nct_word_format/FAQ2.json"
71
- # FAQ_splits = get_json_splits_only(FAQ_path)
72
- # all_splits += FAQ_splits
73
 
74
  # Lưu vào vectorstore với nhúng từ Google GenAI
75
  # embedding = GoogleGenerativeAIEmbeddings(model="models/text-embedding-004")
 
61
  print('Feeding .json files')
62
 
63
  # Xử lý FAQ
64
+ FAQ_path = "syllabus_nct_word_format/FAQ.json"
65
+ FAQ_splits = get_json_splits_only(FAQ_path)
66
+ all_splits += FAQ_splits
67
 
68
 
69
 
70
+ FAQ_path = "syllabus_nct_word_format/FAQ2.json"
71
+ FAQ_splits = get_json_splits_only(FAQ_path)
72
+ all_splits += FAQ_splits
73
 
74
  # Lưu vào vectorstore với nhúng từ Google GenAI
75
  # embedding = GoogleGenerativeAIEmbeddings(model="models/text-embedding-004")