LalitMahale
commited on
Commit
Β·
8863a1e
1
Parent(s):
f631f81
move to home folder
Browse files
data/answer.pkl β answer.pkl
RENAMED
|
File without changes
|
main.py
CHANGED
|
@@ -24,10 +24,10 @@ import os
|
|
| 24 |
def process(user_query:str):
|
| 25 |
# dump_user_question(user_query)
|
| 26 |
user_embedding = GetEmbedding([user_query]).user_query_emb()
|
| 27 |
-
with open(r"
|
| 28 |
load_embedding = pickle.load(f)
|
| 29 |
|
| 30 |
-
with open(r"
|
| 31 |
ans = pickle.load(f)
|
| 32 |
similarity_scores = cosine_similarity(user_embedding, load_embedding)
|
| 33 |
index = np.argmax(similarity_scores)
|
|
|
|
| 24 |
def process(user_query:str):
|
| 25 |
# dump_user_question(user_query)
|
| 26 |
user_embedding = GetEmbedding([user_query]).user_query_emb()
|
| 27 |
+
with open(r"question_embedding_latest.pkl","rb") as f:
|
| 28 |
load_embedding = pickle.load(f)
|
| 29 |
|
| 30 |
+
with open(r"answer.pkl","rb") as f:
|
| 31 |
ans = pickle.load(f)
|
| 32 |
similarity_scores = cosine_similarity(user_embedding, load_embedding)
|
| 33 |
index = np.argmax(similarity_scores)
|
data/question_data.pkl β question_data.pkl
RENAMED
|
File without changes
|
data/question_embedding_latest.pkl β question_embedding_latest.pkl
RENAMED
|
File without changes
|