first commit
Browse files
app.py
CHANGED
|
@@ -4,8 +4,7 @@ from sage import app
|
|
| 4 |
from langchain.schema.runnable import RunnableConfig
|
| 5 |
|
| 6 |
|
| 7 |
-
welcome_message = "Welcome! I
|
| 8 |
-
|
| 9 |
@cl.on_chat_start
|
| 10 |
async def start_chat():
|
| 11 |
await cl.Message(content=welcome_message).send()
|
|
|
|
| 4 |
from langchain.schema.runnable import RunnableConfig
|
| 5 |
|
| 6 |
|
| 7 |
+
welcome_message = "Welcome! I'm Sage, your friendly AI assistant. I'm here to help you quickly find answers to your HR and policy questions. What can I assist you with today?"
|
|
|
|
| 8 |
@cl.on_chat_start
|
| 9 |
async def start_chat():
|
| 10 |
await cl.Message(content=welcome_message).send()
|
sage.py
CHANGED
|
@@ -675,10 +675,3 @@ workflow.add_edge("policy_agent", "generator_agent")
|
|
| 675 |
workflow.add_edge("generator_agent", END)
|
| 676 |
|
| 677 |
app = workflow.compile()
|
| 678 |
-
|
| 679 |
-
|
| 680 |
-
from langchain_core.runnables import chain
|
| 681 |
-
@chain
|
| 682 |
-
def sage_chain(question):
|
| 683 |
-
inputs = {"question": question}
|
| 684 |
-
return app.invoke(inputs)
|
|
|
|
| 675 |
workflow.add_edge("generator_agent", END)
|
| 676 |
|
| 677 |
app = workflow.compile()
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|