Spaces:
Running
Running
Update app/graph/nodes/rag_agent.py
Browse files- app/graph/nodes/rag_agent.py +1 -23
app/graph/nodes/rag_agent.py
CHANGED
|
@@ -1,26 +1,4 @@
|
|
| 1 |
-
#
|
| 2 |
-
# from app.core.rag_service import get_rag_context
|
| 3 |
-
|
| 4 |
-
# def rag_agent_node(state):
|
| 5 |
-
|
| 6 |
-
# print("DEBUG → state received:", state)
|
| 7 |
-
|
| 8 |
-
# query= state["query"]
|
| 9 |
-
# doc_id= state["doc_id"]
|
| 10 |
-
# print("DEBUG → query:", query)
|
| 11 |
-
# print("DEBUG → doc_id:", doc_id)
|
| 12 |
-
|
| 13 |
-
# context, sources= get_rag_context(query, doc_id)
|
| 14 |
-
# print("DEBUG → context:", context[:200] if context else "EMPTY")
|
| 15 |
-
|
| 16 |
-
# return {
|
| 17 |
-
# **state,
|
| 18 |
-
# "context": context,
|
| 19 |
-
# "sources": sources
|
| 20 |
-
# }
|
| 21 |
-
|
| 22 |
-
|
| 23 |
-
|
| 24 |
|
| 25 |
def rag_agent_node(state):
|
| 26 |
"""
|
|
|
|
| 1 |
+
# app/graph/rag_agent.py
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 2 |
|
| 3 |
def rag_agent_node(state):
|
| 4 |
"""
|