Spaces:
Runtime error
Runtime error
Increased max number of meta-search iterations to 500
Browse files- filterminutes.py +1 -1
filterminutes.py
CHANGED
@@ -67,7 +67,7 @@ def search_with_filter(vector_store, query, filter_dict, target_k=5, init_k=100,
|
|
67 |
if len_docs_begin >= target_k:
|
68 |
log.info(f'Initial search contains {len_docs_begin} Documents. Expansion not required. ')
|
69 |
return context
|
70 |
-
CUT_THE_LOOP_N =
|
71 |
for top_k_docs in np.arange(init_k, CUT_THE_LOOP_N * init_k, step):
|
72 |
log.info(f'Context contains {len(context)} documents')
|
73 |
log.info(f'Expanding search with k={top_k_docs}')
|
|
|
67 |
if len_docs_begin >= target_k:
|
68 |
log.info(f'Initial search contains {len_docs_begin} Documents. Expansion not required. ')
|
69 |
return context
|
70 |
+
CUT_THE_LOOP_N = 1000
|
71 |
for top_k_docs in np.arange(init_k, CUT_THE_LOOP_N * init_k, step):
|
72 |
log.info(f'Context contains {len(context)} documents')
|
73 |
log.info(f'Expanding search with k={top_k_docs}')
|