• Skip to primary navigation
  • Skip to main content

Artifex Routing Co

  • Plugins
  • Docs
  • Guides
  • Support
  • About
  • My Account
Wyregraf mark Wyregraf By Artifex Routing Co
OVERVIEW FEATURES HOW IT IS BUILT DOCS PRICING FAQ GET LICENSE
  • How do I keep the chat private or limit who can use it?
  • How do I make a post type available for embeddings?
  • Agents & Networks (Pro)
  • Chat Appearance and the Floating Launcher
  • Citations & Answer Verification
  • Coming from AI Engine or AI Puffer
  • Content Enrichment & Chunking
  • Conversations, Analytics, and Knowledge Gaps
  • Creating a Chat
  • Creating Embeddings
  • Displaying the Chat
  • Embeddings & Vector Profiles
  • Getting Started with Wyregraf
  • Hybrid Search & Reranking
  • Improving Answer Accuracy
  • Indexing PDFs, URLs & Code (Pro)
  • Installation & Requirements
  • LLM Profiles
  • Summaries & Questions
  • The Retrieval Lab
  • Usage and Rate Limits
  • What Visitors Can Do in the Chat
  • My source says “Reindex required” — what do I do?
  • The chat answers “no results” to questions my content covers
  • The chat replies with my fallback message instead of an answer
  • The chat returns an error instead of an answer
  • The chat widget doesn’t appear on the page
  • The embeddings queue looks stuck
  • URL Scrape says my URL is “not allowed”
  • Visitors see “You are sending messages too quickly”
  • What should I include in a support request?
  • Does Wyregraf support Voyage AI?
  • What are namespaces?
  • What is the Prompts library?
  • Which user roles can manage Wyregraf?
  • Wyregraf shortcode reference
  • How do I add my license key?
  • Where do I find my Wyregraf Pro license key?
  • Wyregraf Hooks Reference
  • Are visitor conversations saved, and for how long?
  • How are my API keys stored?
  • Is my content sent to the AI provider?
  • What do the accuracy features cost to run?
  • What does indexing and chatting cost?
  • What happens to my data if I deactivate or delete Wyregraf?
  • What’s the difference between the Retrieval and Chat types?
  • Where are my embeddings and vectors stored?
  • Which accuracy features should I turn on first?
  • Which AI providers does Wyregraf support?
  • Wyregraf 0.7.0
  • Wyregraf Changelog
View Categories
  • Home
  • Docs
  • Wyregraf
  • Indexing PDFs, URLs & Code (Pro)

Indexing PDFs, URLs & Code (Pro)

3 min read

0:00 / 3:13
  • View as Markdown Open this page as plain Markdown (opens in a new tab)
  • Open in ChatGPT Ask questions about this page (opens in a new tab)
  • Open in Claude Ask questions about this page (opens in a new tab)
  • Open in Google AI Studio Ask questions about this page (Google account required) (opens in a new tab)

Wyregraf Pro adds three content sources beyond your site's own posts: an uploaded PDF, any public URL, and a zip of code files. All three live in the same embedding editor from Creating Embeddings — choose the source in the Content Source dropdown on the Index tab, and that source's own fields appear below it.

Whichever source you use, give the Metadata tab a moment of care: a scraped page or an uploaded file rarely carries a good reader-facing title of its own, and the Metadata fields are what a chat shows when it cites this content.

PDF #

The PDF source

  1. Set Content Source to PDF – Smalot.
  2. Upload PDF picks the file from your media library (the uploader only accepts PDFs). Wyregraf extracts the text and reads the document's title and page count for you — the filename fills in when the PDF has no title of its own.

Two kinds of PDF won't index: scanned/image-only PDFs, which contain no extractable text, and password-protected PDFs, which can't be opened — remove the password and re-upload.

When a PDF is cited in chat, a same-origin file opens in Wyregraf's built-in viewer with page
navigation, thumbnails, and fullscreen controls. Browsers do not allow that viewer to fetch every
cross-origin file safely, so a PDF hosted on another origin opens in a new tab instead. The citation
still works; only the inline viewing experience changes.

URL Scrape #

The URL Scrape source

  1. URL — the web page to index. Each embedding scrapes that one page; it doesn't crawl the rest of the site, so a section of several pages is several embeddings.
  2. Selector (optional) — limit the scrape to part of the page: an HTML tag (body is the default; main or article are common), or a CSS selector like #content or .entry.
  3. Remove Selectors (optional) — a comma-separated list of CSS selectors to strip before indexing. Use it to drop navigation, sidebars, and cookie banners so they don't pollute the index.

The URL must be a public web address — for everyone's safety Wyregraf refuses to fetch private or internal addresses (localhost, LAN IPs, non-standard ports), and it re-checks every redirect. If your URL is rejected, see Why is my URL "not allowed"?. If the scrape reports no content found instead, the selector didn't match anything on the page — try the default body first, then narrow.

Code #

The Code source

  1. Set Content Source to Code, then Upload Zip with your project's zip file.
  2. The exclusion fields ship prefilled so the obvious noise never reaches the index: Exclude Directories (.git, node_modules, vendor, tests, …), Exclude Files (lockfiles and dotfiles), and Exclude Filetypes — a long list of binary and asset extensions. Note that js and json are on the default filetype exclusion list; remove them from the list if your JavaScript should be indexed. Exclude Path and File takes exact paths (like plugin/src/index.php) for one-off exclusions.
  3. Max File Size skips files larger than the limit (default 112000 bytes, about 112 KB) and Minimum File Size (default 200 bytes) skips near-empty stubs. Minified .min.js / .min.css files are always skipped.

Keeping them current #

Unlike post content, these sources don't live in WordPress — when the PDF, page, or codebase changes, upload or point at the new version and hit Reindex on the Index tab. Summaries & Questions work on these embeddings exactly as they do on post content, and help most on long documents.

Updated on October 25, 2026
Guide

What are your Feelings

  • Happy
  • Normal
  • Sad

Share This Article :

  • Facebook
  • X
  • LinkedIn
  • Pinterest
Summaries & QuestionsCreating Embeddings
Table of Contents
  • PDF
  • URL Scrape
  • Code
  • Keeping them current

Artifex Routing Co

Dependable WordPress plugins from one small team.

  • Artifex Routing Co on LinkedIn
  • Artifex Routing Co on X
Plugins
Coupon CreatorSteuardManifystWyregraf
Company
  • Terms of Service
  • Privacy Policy
  • Affiliates
  • My Account
© 2026 Artifex Routing Co
Plugins for WordPress
7ads6x98y

Contact us

Have a license? Log in and we will fill in your details.

Log into Your Account

Lost Password?

Or just send us a message

"*" indicates required fields

This field is for validation purposes and should be left unchanged.
What can we help with?*
Your Name:*
(uses account display name)
(uses account email)
Looking for a refund? Please fill out the refund form

Technical details

Drop files here or
Accepted file types: jpg, png, pdf, Max. file size: 2 MB, Max. files: 5.