flask werkzeug fitz docx python-docx pillow mimetypes-magic pybase64 mistralai langchain_community arxiv frontend tools pymupdf PyMuPDF tavily-python langchain_core transformers langchain_mistralai langchain