NCTCMumbai
commited on
Commit
•
4d141f8
1
Parent(s):
1a697d9
Update app.py
Browse files
app.py
CHANGED
@@ -67,12 +67,12 @@ def bot(history, api_kind):
|
|
67 |
print(query)
|
68 |
query_vec_flat = [arr.flatten() for arr in query_vec]
|
69 |
logger.warning(f'Finished query vec')
|
70 |
-
documents = table.search(query_vec_flat, vector_column_name=VECTOR_COLUMN_NAME).limit(top_k_rank).to_list()
|
71 |
|
72 |
|
73 |
|
74 |
logger.warning(f'Finished search')
|
75 |
-
|
76 |
documents = [doc[TEXT_COLUMN_NAME] for doc in documents]
|
77 |
logger.warning(f'start cross encoder {len(documents)}')
|
78 |
# Retrieve documents relevant to query
|
|
|
67 |
print(query)
|
68 |
query_vec_flat = [arr.flatten() for arr in query_vec]
|
69 |
logger.warning(f'Finished query vec')
|
70 |
+
#documents = table.search(query_vec_flat, vector_column_name=VECTOR_COLUMN_NAME).limit(top_k_rank).to_list()
|
71 |
|
72 |
|
73 |
|
74 |
logger.warning(f'Finished search')
|
75 |
+
documents = table.search(query_vec, vector_column_name=VECTOR_COLUMN_NAME).limit(top_rerank).to_list()
|
76 |
documents = [doc[TEXT_COLUMN_NAME] for doc in documents]
|
77 |
logger.warning(f'start cross encoder {len(documents)}')
|
78 |
# Retrieve documents relevant to query
|