Baktabek commited on
Commit
a1fb336
·
verified ·
1 Parent(s): 0befbc3

Deploy RAG assistant

Browse files
Files changed (1) hide show
  1. app.py +16 -0
app.py CHANGED
@@ -48,6 +48,22 @@ app.add_middleware(
48
  allow_headers=["*"],
49
  )
50
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
51
  # Глобальные объекты
52
  qdrant_client = None
53
  embedding_model = None
 
48
  allow_headers=["*"],
49
  )
50
 
51
+ @app.get("/")
52
+ async def root():
53
+ """Главная страница"""
54
+ return {
55
+ "service": "AI-RAG Onboarding Assistant",
56
+ "status": "running",
57
+ "version": "1.0.0",
58
+ "endpoints": {
59
+ "health": "/health",
60
+ "query": "/api/v1/query",
61
+ "upload": "/api/v1/upload",
62
+ "stats": "/api/v1/stats"
63
+ }
64
+ }
65
+
66
+
67
  # Глобальные объекты
68
  qdrant_client = None
69
  embedding_model = None