Spaces:
Sleeping
Sleeping
Commit
·
da7bd22
1
Parent(s):
16279cd
next commit
Browse files- .langgraph_api/.langgraph_checkpoint.1.pckl +0 -0
- .langgraph_api/.langgraph_checkpoint.2.pckl +0 -0
- .langgraph_api/.langgraph_checkpoint.3.pckl +0 -0
- .langgraph_api/.langgraph_ops.pckl +0 -0
- .langgraph_api/.langgraph_retry_counter.pckl +0 -0
- .langgraph_api/store.pckl +0 -0
- .langgraph_api/store.vectors.pckl +0 -0
- api/routers/analytics_chatbot.py +1 -0
- langgraph.json +7 -0
- logs/access.log +18 -0
- logs/app.log +1 -0
- src/genai/analytics_chatbot/agent.py +2 -1
- vercel.json +0 -15
.langgraph_api/.langgraph_checkpoint.1.pckl
ADDED
|
Binary file (6 Bytes). View file
|
|
|
.langgraph_api/.langgraph_checkpoint.2.pckl
ADDED
|
Binary file (6 Bytes). View file
|
|
|
.langgraph_api/.langgraph_checkpoint.3.pckl
ADDED
|
Binary file (6 Bytes). View file
|
|
|
.langgraph_api/.langgraph_ops.pckl
ADDED
|
Binary file (1.04 kB). View file
|
|
|
.langgraph_api/.langgraph_retry_counter.pckl
ADDED
|
Binary file (6 Bytes). View file
|
|
|
.langgraph_api/store.pckl
ADDED
|
Binary file (6 Bytes). View file
|
|
|
.langgraph_api/store.vectors.pckl
ADDED
|
Binary file (6 Bytes). View file
|
|
|
api/routers/analytics_chatbot.py
CHANGED
|
@@ -33,6 +33,7 @@ def get_analytics(msg:str):
|
|
| 33 |
|
| 34 |
config={"configurable": {"thread_id": "analytics-chatbot-thread"},"run_name":"analytics-chatbot"}
|
| 35 |
result=graph.invoke({'messages':msg},config=config)
|
|
|
|
| 36 |
print('Final Result:', result)
|
| 37 |
response_to_cache = {}
|
| 38 |
if result.get('backup_data') is not None:
|
|
|
|
| 33 |
|
| 34 |
config={"configurable": {"thread_id": "analytics-chatbot-thread"},"run_name":"analytics-chatbot"}
|
| 35 |
result=graph.invoke({'messages':msg},config=config)
|
| 36 |
+
|
| 37 |
print('Final Result:', result)
|
| 38 |
response_to_cache = {}
|
| 39 |
if result.get('backup_data') is not None:
|
langgraph.json
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"dependencies": ["."],
|
| 3 |
+
"graphs": {
|
| 4 |
+
"agent": "api/routers/analytics_chatbot.py:graph"
|
| 5 |
+
},
|
| 6 |
+
"env": ".env"
|
| 7 |
+
}
|
logs/access.log
CHANGED
|
@@ -1591,3 +1591,21 @@
|
|
| 1591 |
2025-10-29 11:44:44,718 | INFO | access_logger | app.py:18 | Request: GET http://127.0.0.1:8000/openapi.json
|
| 1592 |
2025-10-29 11:44:44,726 | INFO | access_logger | app.py:20 | Response status: 200
|
| 1593 |
2025-10-29 11:46:57,249 | INFO | access_logger | app.py:18 | Request: GET http://127.0.0.1:8000/api/analytics-chatbot?msg=which%20influencer%20has%20the%20largest%20audeince%3F
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1591 |
2025-10-29 11:44:44,718 | INFO | access_logger | app.py:18 | Request: GET http://127.0.0.1:8000/openapi.json
|
| 1592 |
2025-10-29 11:44:44,726 | INFO | access_logger | app.py:20 | Response status: 200
|
| 1593 |
2025-10-29 11:46:57,249 | INFO | access_logger | app.py:18 | Request: GET http://127.0.0.1:8000/api/analytics-chatbot?msg=which%20influencer%20has%20the%20largest%20audeince%3F
|
| 1594 |
+
2025-10-30 13:50:58,299 | INFO | access_logger | app.py:18 | Request: GET http://127.0.0.1:8000/
|
| 1595 |
+
2025-10-30 13:50:58,300 | INFO | access_logger | app.py:20 | Response status: 200
|
| 1596 |
+
2025-10-30 13:50:58,790 | INFO | access_logger | app.py:18 | Request: GET http://127.0.0.1:8000/favicon.ico
|
| 1597 |
+
2025-10-30 13:50:58,792 | INFO | access_logger | app.py:20 | Response status: 404
|
| 1598 |
+
2025-10-30 13:51:26,928 | INFO | access_logger | app.py:18 | Request: GET http://127.0.0.1:8000/docs
|
| 1599 |
+
2025-10-30 13:51:26,929 | INFO | access_logger | app.py:20 | Response status: 200
|
| 1600 |
+
2025-10-30 13:51:27,075 | INFO | access_logger | app.py:18 | Request: GET http://127.0.0.1:8000/openapi.json
|
| 1601 |
+
2025-10-30 13:51:27,083 | INFO | access_logger | app.py:20 | Response status: 200
|
| 1602 |
+
2025-10-30 13:51:48,982 | INFO | access_logger | app.py:18 | Request: GET http://127.0.0.1:8000/api/show-analytics
|
| 1603 |
+
2025-10-30 13:52:02,975 | INFO | access_logger | app.py:20 | Response status: 200
|
| 1604 |
+
2025-11-03 13:25:50,382 | INFO | access_logger | app.py:18 | Request: GET http://127.0.0.1:8000/
|
| 1605 |
+
2025-11-03 13:25:50,383 | INFO | access_logger | app.py:20 | Response status: 200
|
| 1606 |
+
2025-11-03 13:25:53,240 | INFO | access_logger | app.py:18 | Request: GET http://127.0.0.1:8000/docs
|
| 1607 |
+
2025-11-03 13:25:53,242 | INFO | access_logger | app.py:20 | Response status: 200
|
| 1608 |
+
2025-11-03 13:25:53,565 | INFO | access_logger | app.py:18 | Request: GET http://127.0.0.1:8000/openapi.json
|
| 1609 |
+
2025-11-03 13:25:53,572 | INFO | access_logger | app.py:20 | Response status: 200
|
| 1610 |
+
2025-11-03 13:26:16,008 | INFO | access_logger | app.py:18 | Request: GET http://127.0.0.1:8000/api/analytics-chatbot?msg=Give%20me%20basic%20information%20about%20divya%20dhakal
|
| 1611 |
+
2025-11-03 13:26:30,251 | INFO | access_logger | app.py:20 | Response status: 200
|
logs/app.log
CHANGED
|
@@ -133,3 +133,4 @@
|
|
| 133 |
2025-10-14 13:55:41,999 | INFO | app_logger | api/routers/context_analysis.py:27 | Context Analysis Completed.
|
| 134 |
2025-10-14 14:03:00,252 | INFO | app_logger | api/routers/brainstorm.py:42 | Executed brainstorming agent.
|
| 135 |
2025-10-17 12:27:39,451 | INFO | app_logger | api/routers/show_analytics.py:14 | Influencer Analytics returned by orchestrator.
|
|
|
|
|
|
| 133 |
2025-10-14 13:55:41,999 | INFO | app_logger | api/routers/context_analysis.py:27 | Context Analysis Completed.
|
| 134 |
2025-10-14 14:03:00,252 | INFO | app_logger | api/routers/brainstorm.py:42 | Executed brainstorming agent.
|
| 135 |
2025-10-17 12:27:39,451 | INFO | app_logger | api/routers/show_analytics.py:14 | Influencer Analytics returned by orchestrator.
|
| 136 |
+
2025-10-30 13:52:02,973 | INFO | app_logger | api/routers/show_analytics.py:14 | Influencer Analytics returned by orchestrator.
|
src/genai/analytics_chatbot/agent.py
CHANGED
|
@@ -39,4 +39,5 @@ class ChatbotAgent:
|
|
| 39 |
graph_builder.add_conditional_edges("fetch_parameters", BackupRoutingNode().run,{'execute_backup':'backup_response', 'go_on':"fetch_data"})
|
| 40 |
graph_builder.add_conditional_edges("fetch_data", BackupRoutingNode().run,{'execute_backup':'backup_response', 'go_on':END})
|
| 41 |
|
| 42 |
-
return graph_builder.compile(checkpointer=self.memory)
|
|
|
|
|
|
| 39 |
graph_builder.add_conditional_edges("fetch_parameters", BackupRoutingNode().run,{'execute_backup':'backup_response', 'go_on':"fetch_data"})
|
| 40 |
graph_builder.add_conditional_edges("fetch_data", BackupRoutingNode().run,{'execute_backup':'backup_response', 'go_on':END})
|
| 41 |
|
| 42 |
+
return graph_builder.compile(checkpointer=self.memory)
|
| 43 |
+
|
vercel.json
DELETED
|
@@ -1,15 +0,0 @@
|
|
| 1 |
-
{
|
| 2 |
-
"version": 2,
|
| 3 |
-
"builds": [
|
| 4 |
-
{
|
| 5 |
-
"src": "api/main.py",
|
| 6 |
-
"use": "@vercel/python"
|
| 7 |
-
}
|
| 8 |
-
],
|
| 9 |
-
"routes": [
|
| 10 |
-
{
|
| 11 |
-
"src": "/(.*)",
|
| 12 |
-
"dest": "api/main.py"
|
| 13 |
-
}
|
| 14 |
-
]
|
| 15 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|