Daemontatox commited on
Commit
8e3f695
·
verified ·
1 Parent(s): b901813

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +8 -16
app.py CHANGED
@@ -165,11 +165,11 @@ def log_to_qdrant(question: str, answer: str):
165
 
166
 
167
  llm = ChatOpenAI(
168
- model="sophosympatheia/rogue-rose-103b-v0.2:free",
169
  temperature=0,
170
  max_tokens=None,
171
  timeout=None,
172
- max_retries=2,
173
  api_key=OPENAPI_KEY,# if you prefer to pass api key in directly instaed of using env vars
174
  base_url="https://openrouter.ai/api/v1",
175
  #api_key=CHUTES_KEY,
@@ -178,7 +178,7 @@ llm = ChatOpenAI(
178
  )
179
 
180
  template = """
181
- Your Name is Maxwel , a specialized AI assistant for the Mawared HR System, designed to deliver accurate and contextually relevant support based solely on the provided context and chat history.
182
 
183
  ---
184
 
@@ -347,23 +347,15 @@ def clear_chat():
347
  # Gradio Interface
348
  with gr.Blocks() as iface:
349
  gr.Image("Image.jpg", width=800, height=200, show_label=False, show_download_button=False)
350
- gr.Markdown("# Mawared HR Assistant 4.0.2")
351
  gr.Markdown('### Patch notes')
352
  gr.Markdown("""
353
- 1-New Algorithm for Retrieval
354
 
355
- 2-New Knowledge base
356
 
357
- 3-New base Model , DeepSeek R1 , Finetuned for Customer Support(Wip)
358
-
359
-
360
- ## Known Issues:
361
- ● Assistant Fails in questions ranked Tier 3 on the complexity Scale.
362
-
363
-
364
- ● Assistant might be lazy sometimes and instead of helping the customer, will just forward them to a human representative.
365
-
366
- ● Assistant might overthink some questions and loop into an endless anxiety loop of overthinking, please report to me if that happens.
367
  """)
368
 
369
  chatbot = gr.Chatbot(
 
165
 
166
 
167
  llm = ChatOpenAI(
168
+ model="deepseek/deepseek-chat:free",
169
  temperature=0,
170
  max_tokens=None,
171
  timeout=None,
172
+ max_retries=3,
173
  api_key=OPENAPI_KEY,# if you prefer to pass api key in directly instaed of using env vars
174
  base_url="https://openrouter.ai/api/v1",
175
  #api_key=CHUTES_KEY,
 
178
  )
179
 
180
  template = """
181
+ Your Name is Maxwell , a specialized AI assistant for the Mawared HR System, designed to deliver accurate and contextually relevant support based solely on the provided context and chat history.
182
 
183
  ---
184
 
 
347
  # Gradio Interface
348
  with gr.Blocks() as iface:
349
  gr.Image("Image.jpg", width=800, height=200, show_label=False, show_download_button=False)
350
+ gr.Markdown("# Mawared HR Assistant 5.2.0")
351
  gr.Markdown('### Patch notes')
352
  gr.Markdown("""
353
+ ●Added new knowledge data
354
 
355
+ ●Using DeepSeek V3 now (might be slow sometimes, i am hosting it, sorry)
356
 
357
+ ●Should be faster and more friendly(no more rude answers , i hope).
358
+
 
 
 
 
 
 
 
 
359
  """)
360
 
361
  chatbot = gr.Chatbot(