Spaces:
Running
on
T4
Running
on
T4
Upload folder using huggingface_hub
Browse files- backend/vespa_app.py +2 -3
backend/vespa_app.py
CHANGED
@@ -402,8 +402,7 @@ class VespaQueryClient:
|
|
402 |
for result in search_results
|
403 |
if "questions" in result["fields"]
|
404 |
]
|
405 |
-
|
406 |
-
print(q)
|
407 |
unique_questions = set([item for sublist in questions for item in sublist])
|
408 |
|
409 |
# remove an artifact from our data generation
|
@@ -422,7 +421,7 @@ class VespaQueryClient:
|
|
422 |
self,
|
423 |
query: str,
|
424 |
q_emb: torch.Tensor,
|
425 |
-
target_hits_per_query_tensor: int =
|
426 |
hits: int = 3,
|
427 |
timeout: str = "10s",
|
428 |
sim_map: bool = False,
|
|
|
402 |
for result in search_results
|
403 |
if "questions" in result["fields"]
|
404 |
]
|
405 |
+
|
|
|
406 |
unique_questions = set([item for sublist in questions for item in sublist])
|
407 |
|
408 |
# remove an artifact from our data generation
|
|
|
421 |
self,
|
422 |
query: str,
|
423 |
q_emb: torch.Tensor,
|
424 |
+
target_hits_per_query_tensor: int = 100,
|
425 |
hits: int = 3,
|
426 |
timeout: str = "10s",
|
427 |
sim_map: bool = False,
|