Update app.py
Browse files
app.py
CHANGED
@@ -430,13 +430,16 @@ def compare_embeddings(file, query, embedding_models, custom_embedding_model, sp
|
|
430 |
"search_type": search_type,
|
431 |
"top_k": top_k,
|
432 |
"lang": lang,
|
|
|
433 |
"optimize_vocab": optimize_vocab,
|
|
|
434 |
"phonetic_weight": phonetic_weight,
|
435 |
"use_query_optimization": use_query_optimization,
|
436 |
"use_reranking": use_reranking
|
437 |
}
|
438 |
|
439 |
-
|
|
|
440 |
if custom_embedding_model:
|
441 |
models.append(custom_embedding_model.strip().split(':'))
|
442 |
|
|
|
430 |
"search_type": search_type,
|
431 |
"top_k": top_k,
|
432 |
"lang": lang,
|
433 |
+
"apply_preprocessing": apply_preprocessing,
|
434 |
"optimize_vocab": optimize_vocab,
|
435 |
+
"apply_phonetic": apply_phonetic,
|
436 |
"phonetic_weight": phonetic_weight,
|
437 |
"use_query_optimization": use_query_optimization,
|
438 |
"use_reranking": use_reranking
|
439 |
}
|
440 |
|
441 |
+
# Parse the embedding models from the checkbox group
|
442 |
+
models = [model.split(':') for model in embedding_models]
|
443 |
if custom_embedding_model:
|
444 |
models.append(custom_embedding_model.strip().split(':'))
|
445 |
|