Spaces:
Sleeping
Sleeping
TahaFawzyElshrif commited on
Commit ·
e60c76d
1
Parent(s): 1d0a7da
uploaded files
Browse files- agent/rag/rag.py +1 -2
agent/rag/rag.py
CHANGED
|
@@ -6,10 +6,9 @@ import pandas as pd
|
|
| 6 |
class rag_text_chooser:
|
| 7 |
def __init__(self,data_rag):
|
| 8 |
self.data_rag = pd.read_excel(data_rag)
|
| 9 |
-
print(self.data_rag)
|
| 10 |
|
| 11 |
self.corpus, self.answers = self.get_questions_Answers()
|
| 12 |
-
print(self.
|
| 13 |
self.model = SentenceTransformer('sentence-transformers/paraphrase-multilingual-MiniLM-L12-v2')
|
| 14 |
print(self.model)
|
| 15 |
self.corpus_embeddings = self.model.encode(self.corpus)
|
|
|
|
| 6 |
class rag_text_chooser:
|
| 7 |
def __init__(self,data_rag):
|
| 8 |
self.data_rag = pd.read_excel(data_rag)
|
|
|
|
| 9 |
|
| 10 |
self.corpus, self.answers = self.get_questions_Answers()
|
| 11 |
+
print("answers", self.answers)
|
| 12 |
self.model = SentenceTransformer('sentence-transformers/paraphrase-multilingual-MiniLM-L12-v2')
|
| 13 |
print(self.model)
|
| 14 |
self.corpus_embeddings = self.model.encode(self.corpus)
|