Feature: Support PDFs as Model-Independent Context
Problem
PDF files are currently not supported as uploaded context, partly because not all models can read PDFs directly.
Some models support PDF input, while others only support text-based formats. If a PDF is added directly as context and the user later switches to a model without PDF support, the context may no longer be usable.
This creates several problems:
- PDF context cannot be reliably shared across different models.
- Switching models may cause the context to fail.
- Users may need to manually convert PDFs into text or Markdown.
- The original PDF is still valuable for source verification and visual reference.
Proposed Solution
When a user uploads a PDF as context:
- Preserve and store the original PDF file.
- Extract the readable content from the PDF.
- Save the extracted content as a Markdown file associated with the original PDF.
- Use the Markdown file as the primary context for model interactions.
- Keep a reference to the original PDF.
- Direct the user to the original PDF when they ask about page layout, images, tables, visual details, or source verification.
For example:
Feature: Support PDFs as Model-Independent Context
Problem
PDF files are currently not supported as uploaded context, partly because not all models can read PDFs directly.
Some models support PDF input, while others only support text-based formats. If a PDF is added directly as context and the user later switches to a model without PDF support, the context may no longer be usable.
This creates several problems:
Proposed Solution
When a user uploads a PDF as context:
For example: