Learning resourcesReviewed · Mistral AI

Mistral Document QnA Guide

Mistral's Document QnA guide helps developers build PDF question answering through a hosted API, but it provides no pricing or accuracy measurements. It documents public PDF links, base64 data and uploaded files accessed through signed URLs, with Python, TypeScript and curl examples.

Researched 15 Nov 2026

In short.

Mistral's Document QnA guide teaches developers to ask questions about PDFs through Mistral's hosted API, but costs and answer accuracy are unknown from this page. It explains how optical character recognition and a language model work together, shows three document input methods and covers uploading, retrieving and deleting files. The FAQ gives upload limits of 50 MB and 1,000 pages. Nothing was executed; the displayed answers are documentation examples.

Researched and written by an AI model and checked by a second AI model. How it works

Coverage includes the complete Document QnA page at [https://docs.mistral.ai/studio/document-processing/document_qna.md]. Linked documentation, the cookbook and referenced PDFs are excluded. The page shows no licence notice and offers no downloadable files. API behavior, sample-answer correctness, performance and current compatibility were not tested.

The overview

Identity

This is Mistral's documentation guide to its Document QnA capability at [https://docs.mistral.ai/studio/document-processing/document_qna.md]. It explains how developers can combine document processing with chat completions to ask natural-language questions about PDF content.

Assessment

The guide is a useful starting point for adding PDF questions to an application because it supplies request structures, authentication examples and a file-management workflow. Its examples help explain integration, but they do not establish answer quality, response speed or reliability under sustained use.

Users

The intended users are developers building document Q&A applications or automating document workflows. Named use cases include research papers, technical documents, business documents and contracts.

Beginners should expect to work with API keys, chat messages and file handling. The page recommends learning chat completions first. Experienced developers get examples for direct HTTP requests as well as Python and TypeScript clients.

Capabilities

The page lists questions about document content, information extraction, summarization, analysis, multi-document comparisons and responses that consider document context.

The actual examples attach one PDF and ask for its final sentence. They do not demonstrate multi-document comparison, summary quality or reliable coverage of every part of a long document.

Using it

Requirements

The shown integrations require a Mistral API key, access to Mistral's hosted API and a PDF. A document supplied by an external URL must be public and accessible to the API. Other documented routes embed the PDF as base64 data or upload it to Mistral's cloud.

The Python examples use the mistralai package, and TypeScript uses @mistralai/mistralai. Credentials are read from MISTRAL_API_KEY. Exact package versions, runtime requirements and account eligibility are not specified.

Mechanism

The described pipeline first uses optical character recognition, or OCR, to extract document text, structure and formatting into machine-readable content. A language model then interprets that content alongside the user's question.

The examples send a user message containing text and document_url content parts, selecting mistral-small-latest. They call client.chat.complete or send an HTTP POST to [https://api.mistral.ai/v1/chat/completions]. The page does not explain internal document segmentation, retrieval or OCR model selection.

Setup

Initialize the client with an API key, select the example model and provide a question with a PDF reference. The Python tabs show different imports: V1 imports Mistral from mistralai, while V2 imports it from mistralai.client. These labels do not supply exact dependency versions.

For uploaded PDFs, the documented sequence uploads a file with purpose set to ocr, obtains a signed URL using the returned file ID and sends that URL in a chat request. Signed URL expiry can be specified in hours; the curl example uses 24. Retrieval and deletion operations are also shown.

Example

The public-URL example asks for the final sentence of the PDF at [https://arxiv.org/pdf/1805.04770]. Its displayed response returns a bibliography entry as that sentence.

The supplied output reports 13,707 prompt tokens and 57 completion tokens, totaling 13,764 tokens. These are illustrative response values, not independently verified results, a benchmark or a forecast of another document's usage.

Assessment & evidence

Limitations

The FAQ states that uploaded documents must not exceed 50 MB and should be no longer than 1,000 pages. Separate limits for public URLs and base64 requests are not established. Supported languages, scanned-page accuracy, table interpretation, latency and throughput are not assessed.

Only mistral-small-latest is demonstrated. Although the page broadly describes querying an LLM with a signed URL, it provides no model compatibility matrix.

The Python and TypeScript deletion snippets reference file.id, while the preceding upload examples use uploaded_pdf or uploadedPdf. The upload filename also differs from the filename in the displayed response. These inconsistencies require attention when adapting the examples.

Reasoning

The shown requests combine a question and a PDF through chat completions without requiring a separate OCR call in the example application code. This makes the guide relevant to developers extending a chat integration with document input.

Because the described pipeline depends on both OCR and a language model, errors in either stage could affect an answer. That is an inference from the architecture; the page does not measure either stage. A displayed final-sentence answer cannot establish performance on summaries, comparisons or specialized questions.

Alternatives

Within the guide, public URLs suit PDFs already publicly accessible, base64 embeds PDF contents directly in a request, and uploaded files support later reuse through signed URLs. All three documented routes send document content to the hosted service; no local-only workflow is described.

The page provides no comparison with competing document Q&A services or other processing architectures. Relative quality, cost and operational effort cannot be ranked from this evidence.

Evidence

The evidence is the complete documentation page at [https://docs.mistral.ai/studio/document-processing/document_qna.md], including its feature descriptions, code snippets, example responses and FAQ.

The linked chat-completions documentation and cookbook are outside this evidence. No code or API requests were run, and the sample answers were not checked against the underlying PDFs.

Access & freshness

Costs

The page gives no prices, billing rates, free allowance or explanation of whether OCR and chat processing incur separate charges. The sample token counts cannot establish a request price. Costs per page, per document and at workload scale remain unknown.

Rights

The page does not state a license for redistributing its text or example code, or terms governing generated answers. It also does not establish permission to submit or reuse any particular third-party document.

Uploaded PDFs are described as stored in Mistral's cloud, with API-authenticated file operations and signed URL access for questions. Retention periods, deletion guarantees, data residency and use of documents for model training are not specified.

Freshness

The supplied page was captured on 15 November 2026 at 12:13:59.829 UTC. It does not state a publication or last-updated date.

The examples use mistral-small-latest without identifying a dated model release, and the Python V1/V2 tabs do not pin package versions. Current compatibility and the exact model release used for a future request remain unknown.

Actions

Start with the documented final-sentence request on a PDF whose contents you can verify, then evaluate the extraction, summary or comparison tasks you actually need. Measure answer accuracy, latency and actual charges for representative documents.

Confirm current pricing, SDK compatibility and document data-handling terms before adoption. For uploads, use the returned file ID consistently, correct the deletion snippets and choose signed URL expiry and file deletion separately; the page does not state that URL expiry deletes a stored file.

Evidence for this report

selected-page.txtselected · checked 2026-11-15