Spaces:
Running
Running
Upload 2 files
Browse files
app.py
CHANGED
@@ -65,9 +65,9 @@ def launch_bot(agent_type: str):
|
|
65 |
|
66 |
# Create the Vectara Tool
|
67 |
vectara_tool = QueryEngineTool(
|
68 |
-
query_engine = vectara.as_query_engine(summary_enabled = True, summary_num_results =
|
69 |
-
summary_prompt_name = "
|
70 |
-
vectara_query_mode = "mmr", rerank_k = 50, mmr_diversity_bias = 0.
|
71 |
n_sentence_before = 5, n_sentence_after = 5),
|
72 |
metadata = ToolMetadata(name="vectara",
|
73 |
description="""
|
|
|
65 |
|
66 |
# Create the Vectara Tool
|
67 |
vectara_tool = QueryEngineTool(
|
68 |
+
query_engine = vectara.as_query_engine(summary_enabled = True, summary_num_results = 15, summary_response_lang = languages[cfg.language],
|
69 |
+
summary_prompt_name = "ectara-experimental-summary-ext-2023-12-11-large",
|
70 |
+
vectara_query_mode = "mmr", rerank_k = 50, mmr_diversity_bias = 0.2,
|
71 |
n_sentence_before = 5, n_sentence_after = 5),
|
72 |
metadata = ToolMetadata(name="vectara",
|
73 |
description="""
|