subashpoudel commited on
Commit
076ac50
·
1 Parent(s): 5acb96a

next commit

Browse files
logs/access.log CHANGED
@@ -1447,3 +1447,13 @@
1447
  2025-10-16 12:23:26,922 | INFO | access_logger | app.py:21 | Response status: 200
1448
  2025-10-16 12:29:45,579 | INFO | access_logger | app.py:19 | Request: GET http://127.0.0.1:8000/api/analytics-chatbot?msg=I%20want%20to%20compare%20the%20analytics%20of%20munachiya%20and%20divya%20dhakal%20in%20weekly%20basis
1449
  2025-10-16 12:29:51,251 | INFO | access_logger | app.py:21 | Response status: 200
 
 
 
 
 
 
 
 
 
 
 
1447
  2025-10-16 12:23:26,922 | INFO | access_logger | app.py:21 | Response status: 200
1448
  2025-10-16 12:29:45,579 | INFO | access_logger | app.py:19 | Request: GET http://127.0.0.1:8000/api/analytics-chatbot?msg=I%20want%20to%20compare%20the%20analytics%20of%20munachiya%20and%20divya%20dhakal%20in%20weekly%20basis
1449
  2025-10-16 12:29:51,251 | INFO | access_logger | app.py:21 | Response status: 200
1450
+ 2025-10-16 12:41:20,653 | INFO | access_logger | app.py:19 | Request: GET http://127.0.0.1:8000/api/analytics-chatbot?msg=I%20want%20the%20sentiment%20distribution%20of%20muna%20chiya
1451
+ 2025-10-16 12:41:25,565 | INFO | access_logger | app.py:21 | Response status: 200
1452
+ 2025-10-16 12:43:30,815 | INFO | access_logger | app.py:19 | Request: GET http://127.0.0.1:8000/api/analytics-chatbot?msg=I%20want%20the%20sentiment%20distribution%20of%20munachiya
1453
+ 2025-10-16 12:43:35,074 | INFO | access_logger | app.py:21 | Response status: 200
1454
+ 2025-10-16 13:13:32,182 | INFO | access_logger | app.py:19 | Request: GET http://127.0.0.1:8000/api/analytics-chatbot?msg=I%20want%20the%20sentiment%20distribution%20of%20munachiya
1455
+ 2025-10-16 13:13:43,138 | INFO | access_logger | app.py:21 | Response status: 200
1456
+ 2025-10-16 13:15:13,365 | INFO | access_logger | app.py:19 | Request: GET http://127.0.0.1:8000/api/analytics-chatbot?msg=I%20want%20the%20sentiment%20distribution%20of%20munachiya
1457
+ 2025-10-16 13:15:17,907 | INFO | access_logger | app.py:21 | Response status: 200
1458
+ 2025-10-16 13:15:27,425 | INFO | access_logger | app.py:19 | Request: GET http://127.0.0.1:8000/api/analytics-chatbot?msg=I%20want%20the%20sentiment%20distribution%20of%20muna%20chiya
1459
+ 2025-10-16 13:15:33,062 | INFO | access_logger | app.py:21 | Response status: 200
src/genai/analytics_chatbot/utils/name_variations.json CHANGED
@@ -16,6 +16,7 @@
16
  "food darling"
17
  ],
18
  "munachiya": [
 
19
  "muna chiya",
20
  "muna",
21
  "chiya muna"
 
16
  "food darling"
17
  ],
18
  "munachiya": [
19
+ "Munachiya",
20
  "muna chiya",
21
  "muna",
22
  "chiya muna"
src/genai/analytics_chatbot/utils/nodes.py CHANGED
@@ -81,9 +81,10 @@ class FetchParametersNode:
81
  ]
82
  print('messages:', messages)
83
  result = self.llm.with_structured_output(ParameterFormatter, method='function_calling').invoke(messages)
84
- print('The parameter values:', result)
 
85
  return {
86
- 'parameters_values':result.parameters_values
87
  }
88
  else:
89
  return{
 
81
  ]
82
  print('messages:', messages)
83
  result = self.llm.with_structured_output(ParameterFormatter, method='function_calling').invoke(messages)
84
+ parameters_values={key: process_query(value) for key, value in result.parameters_values.items()}
85
+ print('The parameter values:', parameters_values)
86
  return {
87
+ 'parameters_values':parameters_values
88
  }
89
  else:
90
  return{