Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -461,7 +461,7 @@ def get_response_from_pdf(query, model, selected_docs, num_calls=3, temperature=
|
|
461 |
return
|
462 |
|
463 |
all_filtered_docs = []
|
464 |
-
k_per_doc = max(
|
465 |
|
466 |
# First, try to retrieve documents with filtering
|
467 |
for doc_name in selected_docs:
|
|
|
461 |
return
|
462 |
|
463 |
all_filtered_docs = []
|
464 |
+
k_per_doc = max(5, 20 // len(selected_docs)) # Increased k_per_doc
|
465 |
|
466 |
# First, try to retrieve documents with filtering
|
467 |
for doc_name in selected_docs:
|