fansa34 commited on
Commit
83e07ca
·
1 Parent(s): 3a0803f

fixedd main 2

Browse files
Files changed (1) hide show
  1. main.py +8 -0
main.py CHANGED
@@ -37,6 +37,14 @@ async def startup_event():
37
  print(f"❌ Failed to initialize agent: {e}")
38
  agent = None
39
 
 
 
 
 
 
 
 
 
40
  @app.post("/ask")
41
  async def ask_question(request: QueryRequest):
42
  """Send a question and get an answer"""
 
37
  print(f"❌ Failed to initialize agent: {e}")
38
  agent = None
39
 
40
+
41
+
42
+ @app.get("/")
43
+ async def root():
44
+ return {"message": "Agentic RAG API is running. Use POST /ask."}
45
+
46
+
47
+
48
  @app.post("/ask")
49
  async def ask_question(request: QueryRequest):
50
  """Send a question and get an answer"""