dwijverma2/chatbot / app /routes /ingestion.py
dwijverma2's picture
download
raw
392 Bytes
#ingestion route
#recieve file from frontend and call the parsing controller
from fastapi import APIRouter, UploadFile, File
from app.controllers import ingest_file_controller
router = APIRouter(prefix = "/ingest", tags = ["ingest"])
@router.post("")
async def ingest_file_route(file: UploadFile = File(...)):
result = await ingest_file_controller(file)
return result

Xet Storage Details

Size:
392 Bytes
·
Xet hash:
24c915a6e3be52bb79f7787dddbcd03f3148369b0b959a385a66e013684d5ee5

Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.