from fastapi import File, UploadFile from typing import List async def upload_files(pdf_files: List[UploadFile] = File(...)): for pdf_file in pdf_files: # what loader do I need to use? Do I need to first read the text contents myself and create a list of Documents?
content = await pdf_file.read()