Docs/Knowledge Base

Knowledge Base & RAG

Upload brand documents and product materials so the AI generates articles grounded in your real content, reducing hallucinations and improving accuracy.

The Knowledge Base is the foundation of RankWriting's RAG (Retrieval-Augmented Generation) system. Upload your content and the AI will reference it when writing — instead of relying solely on generic training data.

What to upload

Good candidates for your Knowledge Base:

  • Product documentation
  • Brand FAQs
  • Service description pages
  • Historical blog articles
  • Case studies
  • Internal knowledge base articles

How RAG works

  1. When you upload a document, the system splits it into small passages and generates vector embeddings
  2. At generation time, the system queries the vector store using your article's topic, finding the 5 most relevant passages
  3. Those passages are injected into the AI prompt as grounding context

This means generated articles contain your real product details, accurate figures, and brand-specific language.

Create a knowledge base

  1. Go to Dashboard → Knowledge Base → New KB
  2. Give it a name (ideally named by site or business line)
  3. Upload files (.txt, .md, .pdf, or paste text directly)
  4. Wait for processing to complete (usually a few seconds to a few minutes)

Use in article generation

On the Generate page, expand the advanced options and select a Knowledge Base. The AI will automatically retrieve and reference relevant content during generation.

Tips

  • Specific, detailed content works better than high-level summaries
  • Keep your Knowledge Base updated as your product or services evolve
  • One Knowledge Base can be shared across multiple sites