Web development & AI

Cloudflare AI Search is generally available: how to test answers from PDFs and images

Cloudflare’s AI Search now supports more than text. Learn to test document retrieval, permissions and citations before relying on answers from scans, diagrams and screenshots.

Source links included
People using laptops and smartphones around a shared table

What Cloudflare released

Cloudflare announced general availability of AI Search on 1 October 2026. Its release described native image embeddings, optical character recognition for PDFs and support for larger files. The same post said billing would start on 1 November, with a free tier on Workers plans. General availability describes the product’s release stage; it does not tell a business how much its own usage will cost, what a particular configuration supports or whether its documents are a good fit. Check the current documentation and account conditions before committing to a design.

This is a retrieval product, not a change to how the general public finds your company in Google. A developer can use retrieval to help an application find relevant material from a selected collection and supply it to a user or an AI answer. Adding images and scanned documents can broaden what the application can find. It also broadens the kinds of errors that can occur. A search system might find the right manual but match the wrong diagram, or read a specification inaccurately from a poor scan.

Test whether the system retrieves evidence that a person can use, not just whether it produces a plausible answer. Treat extraction, retrieval, permissions and answer generation as separate steps, so a failure tells your team what to improve.

Compare the different jobs in a document assistant

StageWhat it doesA realistic failure
ExtractionReads usable text or visual information from the documentA scan turns an eight into a three
IndexingStores a searchable representation with metadataTwo revisions are stored without a version label
RetrievalFinds candidate passages or images for a questionA visually similar diagram is from a different model
AnsweringSummarises or presents the evidenceA condition from a footnote is omitted
Permission checksLimits which material the caller can accessA retrieved passage belongs to another customer

An embedding is a numerical representation used to compare items by similarity. The representation may help a system find images with shared characteristics without depending only on manually written captions. Similarity does not establish that two items are interchangeable. An engineer may need to distinguish fittings that look almost identical but support different pressure ratings. A person doing an accessibility audit may need exact interface labels rather than a broadly similar screenshot.

Optical character recognition, or OCR, tries to turn text in an image into machine-readable characters. It is valuable when a document is a scan rather than a text PDF. Its output can still be affected by skew, blur, fonts, handwriting, tables or numbers beside units. Treat it as a new source of possible evidence, not a guarantee that the application understands the document or can extract every relationship in it.

Work through the guide

Start here

Known position

Document the current journey, evidence and owner before changing a live process.

Which workflow is worth trying first?

Choose a bounded use case with useful documents and relatively low consequences for an error. An internal team might want help finding the right public installation manual. A customer service team could use search to locate a relevant approved support article. A catalogue team might need to find images with a particular packaging feature. These tasks have a visible source and can often be checked without asking the AI to make an irreversible decision.

Do not begin with a repository that mixes every department’s documents. Documents can contain old instructions, client material and private notes. A larger collection can create more confusing matches. It also creates more work to verify permissions and remove outdated copies. The initial objective should be narrow enough that a knowledgeable person can say what a correct result looks like.

Sometimes conventional search or a better directory is the right first move. If most users know the product code or the form name, exact search and clear filters may solve the task more reliably than semantic matching. Multimodal retrieval is particularly interesting when the clue is visual or when exact wording is not known. Use both where appropriate and preserve a familiar route to the source. A customer should not have to use an AI answer to locate a critical safety instruction.

Work through the guide

A controlled route forward

Step 1 of 4
  1. Identify what has actually changed.

  2. Build a test set with near-matches, scans and questions with no answer.

  3. Check source citations and cross-account access before expanding the pilot.

  4. Record the result, unresolved risks and the owner of the next decision.

Worked example: finding the correct installation diagram

Imagine a supplier with hundreds of manuals. A support worker receives a photograph of a component and wants to identify the correct document. Some manuals were uploaded from a publishing system; others were scanned. Several generations of the component look alike. An assistant that returns the first visually similar diagram is convenient until it points a customer to incompatible instructions.

The supplier creates a representative test collection with current and obsolete documents, different product variants and examples where the picture does not contain enough information to identify the model. It stores product identifiers, revision dates and whether the document is approved for public use. The first trial asks the assistant to propose possible matches, not to guarantee compatibility. It must show the source and explain which additional identifier would distinguish uncertain candidates.

A staff member checks the reference visually. If the document is wrong, they record why: retrieval picked an obsolete revision, OCR misread a number, the query included insufficient evidence or the answer ignored the correct passage. These causes lead to different fixes. Changing the wording of a prompt will not restore a date that was missing from the index. Re-uploading every file is wasteful if the actual problem is that the interface hides the source link.

A successful pilot might reduce the time required to find a manual without replacing specialist judgement. An unsuccessful pilot can still produce something useful: a better catalogue of documents and an understanding of which sources are not fit for automation. Do not measure success exclusively by the proportion of questions that received some answer. In a high-consequence case, a clear escalation can be the best result.

Test permissions across the full retrieval path

Separate public materials from restricted ones. Make sure that the application uses the caller’s authority when deciding what can be retrieved. Do not rely on a system prompt telling the model to keep secrets once restricted information has already been supplied to it. Where relevant, partition collections or enforce a verified authorisation filter before the retrieval result reaches the user or model. Test the search result, any generated answer, the source preview and the file download independently.

Build a test with two customers or roles. Give each a similarly named document and verify that neither user can find the other’s material by exact title, partial description, image similarity or a request for a citation. Remove a user’s access and repeat the test. If a document is withdrawn, determine how quickly its cached or indexed version disappears and what the application does in the meantime. Use synthetic examples to test cross-account boundaries rather than risking real customer documents.

Also consider content that tries to influence the answering layer. A document can contain an instruction that has nothing to do with the user’s request. Treat it as material to inspect, not authority to send information, change records or call an external tool. If the first use case is document search, avoid giving it unrelated action permissions. Keeping the design narrow reduces the consequences of a bad source and makes the trial easier to evaluate.

Work through the guide

Quick review list

Tick items locally as you work. Nothing is sent or saved.

0 of 4 checked

A test matrix for PDFs, photographs and screenshots

  1. Collect known-answer cases, including normal documents and files that are difficult to read. Include at least one useful image with no text and one scan with important units or small labels.
  2. Include near-matches and obsolete versions. Record which source should win and why.
  3. Include questions for which the collection has no answer. Specify what a helpful refusal or handoff looks like.
  4. Verify the citation points to an accessible page or asset and that it supports the statement made. If a citation only points to a long document, decide whether that is sufficient for the user’s task.
  5. Measure retrieval and answer errors separately. Record whether a correct passage was present even when the answer was poor.
  6. Check permission boundaries, deletion and updates before expanding the document collection.
  7. Test the non-AI route and keyboard access. Essential information must remain usable when the feature is unavailable or unsuitable.

Reviewing an OCR result need not mean manually checking every document from start to finish. Start with known critical fields and document classes. Where a number, tolerance or date has a material consequence, require direct confirmation from the approved source. Use a person’s ability to quickly navigate to the evidence as part of the acceptance test. An apparently accurate summary with no easy verification path can create more work than conventional search.

Measure cost and operational burden

Cloudflare’s announcement put a billing date on the product; it did not establish a budget for any particular implementation. Model a small representative collection. Count files, expected indexing or refresh activity, anticipated query volume and the cost of the rest of the application. A retrieval feature may be inexpensive to run while the editorial work needed to keep its sources reliable is substantial. Include the time spent preparing scans, tagging versions, reviewing permissions and correcting bad outputs.

Agree a useful service level for the pilot. Staff may be happy to wait a little longer for a difficult question but expect an immediate result for a known product code. Measure normal queries and slow ones separately. Record whether failures come from the retrieval provider, the answer layer or the application. Decide what will happen when an upstream service is unavailable. A visible fallback that still helps the user find a document is better than a spinner with no way to proceed.

Keep exit costs in mind. A team needs access to its original documents and to the metadata it added, regardless of which retrieval product it chooses. Preserve a neutral document inventory and a test set outside the vendor-specific index. Then the next evaluation is a repeatable comparison rather than a fresh project that begins by rediscovering how the company’s own material is organised.

Work through the guide

Set a proportionate review scope

A simple prompt, not a score or recommendation.

Common questions

Do better image matches make a customer chatbot reliable?

Not on their own. The bot still needs suitable sources, permissions, a clear scope and an accessible path to a person. The right image can be misinterpreted or quoted out of context. Use our FAQ, retrieval and agent comparison to choose the simplest useful interaction.

Should we upload every old PDF?

Usually not. Start with useful, approved and current documents. Keep obsolete versions only when there is a reason and a reliable way to distinguish them. If the team cannot verify the origin or publication rights of a file, do not treat it as a convenient input just because the tool can read it.

What should customers be told?

Explain what the search is for, what kind of information they should not submit and how they can reach human help. Explain limitations in practical terms: a product photo might narrow the possibilities but may not identify an exact model. Review the data flows and the language in the chatbot privacy notice guide with the people responsible for the service.

Decide how results should appear on screen

The result design is as important as the retrieval score. If the application finds three possible diagrams, label their source, revision and product family rather than presenting the first as the answer. Provide a link or a text reference that a person can use to locate the original. For a scanned table, make it clear which numbers came from extraction and when someone must check the scan. Do not replace an accessible text explanation with a picture simply because the new tool can retrieve pictures.

Test with staff who have not seen the demo. Give them a task rather than telling them where to click: “Find the latest instruction for this model and confirm the correct part number.” Watch whether they can tell a near match from an exact match, and whether they know how to request help. If they cannot identify the evidence even when retrieval returns it, fix the result presentation before switching the whole team to the new experience. A useful interface turns similarity into a checkable choice instead of hiding the uncertainty.

Sources

Relevant service

Need help applying this to your own setup?

Our web application development service can help you review the current position, decide what is proportionate and plan a clearly scoped next step.

Explore Web application development

Cookie settings

Choose what this site may use

Optional categories are off by default. Change these choices at any time from the cookie button.

See the cookie policy for the current list and more information about each category.

Accessibility

Adjust your reading experience

These controls supplement the underlying website.

Text size

UserWay is an optional third-party accessibility tool. Loading it connects to UserWay; the built-in controls remain available without it.

Live chat

Start a conversation.

Privacy information

Google reCAPTCHA helps protect this form from spam. Google privacy · Google terms.

Open contact form

Prefer email? [email protected]