Spaces:
Sleeping
Sleeping
Update services/nutrition_bot.py
Browse files
services/nutrition_bot.py
CHANGED
|
@@ -3,12 +3,12 @@ from datetime import datetime
|
|
| 3 |
from langchain.agents import create_tool_calling_agent, AgentExecutor
|
| 4 |
from langchain_core.prompts import ChatPromptTemplate
|
| 5 |
from langchain_openai import ChatOpenAI
|
| 6 |
-
from models import memory_client
|
| 7 |
-
from workflow import agentic_rag
|
| 8 |
-
from config import config
|
| 9 |
sys.path.append(os.path.join(os.path.dirname(__file__), '..', 'models'))
|
| 10 |
sys.path.append(os.path.join(os.path.dirname(__file__), '..', 'config'))
|
| 11 |
sys.path.append(os.path.join(os.path.dirname(__file__), '..', 'core'))
|
|
|
|
|
|
|
|
|
|
| 12 |
|
| 13 |
class NutritionBot:
|
| 14 |
def __init__(self):
|
|
|
|
| 3 |
from langchain.agents import create_tool_calling_agent, AgentExecutor
|
| 4 |
from langchain_core.prompts import ChatPromptTemplate
|
| 5 |
from langchain_openai import ChatOpenAI
|
|
|
|
|
|
|
|
|
|
| 6 |
sys.path.append(os.path.join(os.path.dirname(__file__), '..', 'models'))
|
| 7 |
sys.path.append(os.path.join(os.path.dirname(__file__), '..', 'config'))
|
| 8 |
sys.path.append(os.path.join(os.path.dirname(__file__), '..', 'core'))
|
| 9 |
+
from models import memory_client
|
| 10 |
+
from workflow import agentic_rag
|
| 11 |
+
from config import config
|
| 12 |
|
| 13 |
class NutritionBot:
|
| 14 |
def __init__(self):
|