Update djezzy.py
Browse files
djezzy.py
CHANGED
@@ -1,4 +1,4 @@
|
|
1 |
-
|
2 |
!pip install -U bitsandbytes
|
3 |
!pip install -U peft
|
4 |
!pip install -U accelerate
|
@@ -39,9 +39,10 @@ import pandas as pd
|
|
39 |
import os
|
40 |
from langchain.vectorstores import FAISS
|
41 |
from sklearn.metrics.pairwise import cosine_similarity
|
|
|
|
|
42 |
def load_data(text_filename='docs_text.json', embeddings_filename='docs_embeddings.json'):
|
43 |
-
|
44 |
-
import pickle
|
45 |
|
46 |
|
47 |
with open(text_filename, 'r', encoding='utf-8') as f:
|
|
|
1 |
+
|
2 |
!pip install -U bitsandbytes
|
3 |
!pip install -U peft
|
4 |
!pip install -U accelerate
|
|
|
39 |
import os
|
40 |
from langchain.vectorstores import FAISS
|
41 |
from sklearn.metrics.pairwise import cosine_similarity
|
42 |
+
import json
|
43 |
+
import pickle
|
44 |
def load_data(text_filename='docs_text.json', embeddings_filename='docs_embeddings.json'):
|
45 |
+
|
|
|
46 |
|
47 |
|
48 |
with open(text_filename, 'r', encoding='utf-8') as f:
|