Upload 16 files

#9
by awinml - opened
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -371,7 +371,7 @@ if document_type == "Single-Document":
371
  query_text, sparse_retriever_model, sparse_retriever_tokenizer
372
  )
373
  dense_query_embedding, sparse_query_embedding = hybrid_score_norm(
374
- dense_query_embedding, sparse_query_embedding, 0
375
  )
376
  query_results = query_pinecone_sparse(
377
  dense_query_embedding,
@@ -430,7 +430,7 @@ else:
430
  query_text, sparse_retriever_model, sparse_retriever_tokenizer
431
  )
432
  dense_query_embedding, sparse_query_embedding = hybrid_score_norm(
433
- dense_query_embedding, sparse_query_embedding, 0
434
  )
435
  year_quarter_list = year_quarter_range(
436
  start_quarter, start_year, end_quarter, end_year
@@ -503,7 +503,7 @@ else:
503
  query_text, sparse_retriever_model, sparse_retriever_tokenizer
504
  )
505
  dense_query_embedding, sparse_query_embedding = hybrid_score_norm(
506
- dense_query_embedding, sparse_query_embedding, 0
507
  )
508
  year_quarter_list = year_quarter_range(
509
  start_quarter, start_year, end_quarter, end_year
 
371
  query_text, sparse_retriever_model, sparse_retriever_tokenizer
372
  )
373
  dense_query_embedding, sparse_query_embedding = hybrid_score_norm(
374
+ dense_query_embedding, sparse_query_embedding, 0.1
375
  )
376
  query_results = query_pinecone_sparse(
377
  dense_query_embedding,
 
430
  query_text, sparse_retriever_model, sparse_retriever_tokenizer
431
  )
432
  dense_query_embedding, sparse_query_embedding = hybrid_score_norm(
433
+ dense_query_embedding, sparse_query_embedding, 0.1
434
  )
435
  year_quarter_list = year_quarter_range(
436
  start_quarter, start_year, end_quarter, end_year
 
503
  query_text, sparse_retriever_model, sparse_retriever_tokenizer
504
  )
505
  dense_query_embedding, sparse_query_embedding = hybrid_score_norm(
506
+ dense_query_embedding, sparse_query_embedding, 0.1
507
  )
508
  year_quarter_list = year_quarter_range(
509
  start_quarter, start_year, end_quarter, end_year