Update app.py
Browse files
app.py
CHANGED
@@ -73,6 +73,10 @@ class SearchDocumentsRequest(BaseModel):
|
|
73 |
class GenerateRAGRequest(BaseModel):
|
74 |
search_query: str
|
75 |
|
|
|
|
|
|
|
|
|
76 |
# Define the search documents endpoint
|
77 |
@app.post("/api/search-documents")
|
78 |
async def search_documents(
|
|
|
73 |
class GenerateRAGRequest(BaseModel):
|
74 |
search_query: str
|
75 |
|
76 |
+
@app.get("/")
|
77 |
+
async def root():
|
78 |
+
return {"message": "Welcome to the Document Indexing API!"}
|
79 |
+
|
80 |
# Define the search documents endpoint
|
81 |
@app.post("/api/search-documents")
|
82 |
async def search_documents(
|