DocsRag Pipeline

AI & RAG Pipeline

How a brief becomes a grounded draft: research, knowledge retrieval, writing, media, publish.

RankWriting does not send one prompt and hope. A draft is assembled from research, your own material, brand context, and the site's existing pages before a sentence is written.

The pipeline

Brief and keywords
        ↓
1. Research
2. Knowledge retrieval
3. Context assembly (brand, internal links, structure)
4. Writing
5. Media
6. Review, then publish

1. Research

The writer searches the live web for the topic, collecting recent facts, figures, and sources. What comes back is injected into the brief, so a statistic in the draft can be traced to a page rather than to model memory.

2. Knowledge retrieval

If a knowledge base is selected, the topic is used to retrieve the best-matching passages from your documents. Those passages are injected as your own material — product specs, service details, claims you have approved.

3. Context assembly

The brief is assembled from:

  • research findings and their sources
  • retrieved knowledge passages
  • brand assets: voice, audience, terms to avoid, competitor domains
  • internal link candidates from the site's published pages
  • the article type, length target, and structure toggles

4. Writing

The writing model produces the article as structured output, not free text: a title, meta title, meta description, and sectioned body. That structure is what makes per-section rewriting possible later.

5. Media

Images are generated for the article — a cover image and inline images chosen per section — with descriptive ALT text. No stock library is searched. A YouTube video can be embedded when the topic warrants one.

6. Review and publish

The draft opens in the workspace for editing. Publishing writes to WordPress through the plugin; nothing reaches the site before that step. See Publishing workflow.

What this does not do

Research and retrieval reduce invention, they do not remove the need for review. Statistics, product claims, and anything legally sensitive should be checked before publishing — the pipeline shows its sources, but it cannot know your compliance constraints.