dinhquangson commited on
Commit
c1adcd7
1 Parent(s): cb29b7d

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -207,6 +207,7 @@ def search(prompt: str):
207
  querying.connect("document_joiner", "ranker")
208
  querying.connect("ranker", "prompt_builder")
209
  querying.connect("prompt_builder", "llm")
 
210
 
211
  results = querying.run(
212
  {"dense_text_embedder": {"text": prompt},
@@ -223,7 +224,7 @@ def search(prompt: str):
223
  elapsed_time = end_time - start_time
224
 
225
  print(f"Execution time: {elapsed_time:.6f} seconds")
226
-
227
  return results
228
 
229
  @app.get("/download-database/")
 
207
  querying.connect("document_joiner", "ranker")
208
  querying.connect("ranker", "prompt_builder")
209
  querying.connect("prompt_builder", "llm")
210
+ querying.debug=True
211
 
212
  results = querying.run(
213
  {"dense_text_embedder": {"text": prompt},
 
224
  elapsed_time = end_time - start_time
225
 
226
  print(f"Execution time: {elapsed_time:.6f} seconds")
227
+ print(results["_debug"])
228
  return results
229
 
230
  @app.get("/download-database/")