ai: High quality of Deep Search result.
Browse files
jarvis.py
CHANGED
@@ -47,7 +47,7 @@ LINUX_SERVER_PROVIDER_KEYS_ATTEMPTS = {}
|
|
47 |
|
48 |
LINUX_SERVER_ERRORS = set(map(int, os.getenv("LINUX_SERVER_ERROR", "").split(",")))
|
49 |
|
50 |
-
AI_TYPES = {f"AI_TYPE_{i}": os.getenv(f"AI_TYPE_{i}") for i in range(1,
|
51 |
|
52 |
RESPONSES = {f"RESPONSE_{i}": os.getenv(f"RESPONSE_{i}") for i in range(1, 11)}
|
53 |
|
@@ -259,8 +259,8 @@ async def chat_with_model_async(history, user_input, model_display, sess, custom
|
|
259 |
"query": user_input,
|
260 |
"topic": "general",
|
261 |
"search_depth": "basic",
|
262 |
-
"chunks_per_source":
|
263 |
-
"max_results":
|
264 |
"time_range": None,
|
265 |
"days": 7,
|
266 |
"include_answer": True,
|
@@ -382,7 +382,7 @@ with gr.Blocks(fill_height=True, fill_width=True, title=AI_TYPES["AI_TYPE_4"], h
|
|
382 |
selected_model = gr.State(MODEL_CHOICES[0] if MODEL_CHOICES else "")
|
383 |
J_A_R_V_I_S = gr.State("")
|
384 |
chatbot = gr.Chatbot(label=AI_TYPES["AI_TYPE_1"], show_copy_button=True, scale=1, elem_id=AI_TYPES["AI_TYPE_2"], examples=JARVIS_INIT)
|
385 |
-
deep_search = gr.Checkbox(label=AI_TYPES["AI_TYPE_8"], value=False, visible=True)
|
386 |
msg = gr.MultimodalTextbox(show_label=False, placeholder=RESPONSES["RESPONSE_5"], interactive=True, file_count="single", file_types=ALLOWED_EXTENSIONS)
|
387 |
with gr.Sidebar(open=False):
|
388 |
model_radio = gr.Radio(show_label=False, choices=MODEL_CHOICES, value=MODEL_CHOICES[0])
|
|
|
47 |
|
48 |
LINUX_SERVER_ERRORS = set(map(int, os.getenv("LINUX_SERVER_ERROR", "").split(",")))
|
49 |
|
50 |
+
AI_TYPES = {f"AI_TYPE_{i}": os.getenv(f"AI_TYPE_{i}") for i in range(1, 10)}
|
51 |
|
52 |
RESPONSES = {f"RESPONSE_{i}": os.getenv(f"RESPONSE_{i}") for i in range(1, 11)}
|
53 |
|
|
|
259 |
"query": user_input,
|
260 |
"topic": "general",
|
261 |
"search_depth": "basic",
|
262 |
+
"chunks_per_source": 5,
|
263 |
+
"max_results": 5,
|
264 |
"time_range": None,
|
265 |
"days": 7,
|
266 |
"include_answer": True,
|
|
|
382 |
selected_model = gr.State(MODEL_CHOICES[0] if MODEL_CHOICES else "")
|
383 |
J_A_R_V_I_S = gr.State("")
|
384 |
chatbot = gr.Chatbot(label=AI_TYPES["AI_TYPE_1"], show_copy_button=True, scale=1, elem_id=AI_TYPES["AI_TYPE_2"], examples=JARVIS_INIT)
|
385 |
+
deep_search = gr.Checkbox(label=AI_TYPES["AI_TYPE_8"], value=False, info=AI_TYPES["AI_TYPE_9"], visible=True)
|
386 |
msg = gr.MultimodalTextbox(show_label=False, placeholder=RESPONSES["RESPONSE_5"], interactive=True, file_count="single", file_types=ALLOWED_EXTENSIONS)
|
387 |
with gr.Sidebar(open=False):
|
388 |
model_radio = gr.Radio(show_label=False, choices=MODEL_CHOICES, value=MODEL_CHOICES[0])
|