FastChat icon indicating copy to clipboard operation
FastChat copied to clipboard

Add support for PDF file uploads as context for LLM queries

Open andrewwan0131 opened this issue 11 months ago • 3 comments
trafficstars

Why are these changes needed?

These changes enable users to upload PDF files as context for LLM queries.

Changes made

  1. Added PDF file handling capabilities:

    • Implemented PDF file upload support in the web interface
    • Added PDF text extraction functionality
    • Integrated extracted PDF content as context for LLM queries
  2. Modified relevant files:

    • Updated gradio web server components to handle PDF uploads
    • Added PDF processing utilities
    • Enhanced chat protocol to include document context

Checks

  • I've tested the PDF upload and context integration with various document types by running Chatbot Arena locally

andrewwan0131 avatar Dec 07 '24 22:12 andrewwan0131