Skip to content

Module 04 · I know the business

Building Your Knowledge Base

Outcome

Prepare, format, and upload documents into the vector store via Command.

What you will learn

  • Understand how a Vector Store differs from a traditional file folder.
  • Choose the right file formats for different types of content.
  • Prepare and structure your documents so the AI can easily understand them.
  • Use raia Command to upload, convert, and train your agent on new knowledge.
01

What Is a Vector Store?

In the previous modules, you gave your agent its brain by writing Instructions. Now you need to give it a memory. You do this by uploading documents into the agent's Vector Store.

A Vector Store is not like a traditional file folder where you search for exact keyword matches. It converts your files into mathematical chunks (embeddings) that the AI can search by meaning and context.

How the Vector Store works: documents become embeddings the AI searches by meaning.
Conceptual illustration — not the product interface.

When a customer asks a question, the agent searches the Vector Store, retrieves the most relevant chunks, and uses them to formulate a conversational answer based on the rules in its Instructions.

02

Choosing the Right File Formats

Not all documents are created equal. Format and structure directly impact how well the AI retrieves and uses information. raia can ingest almost anything, but Markdown (.md) and JSON (.json) are the gold standards for AI training.

What to upload and how: a visual guide to file formats raia supports.
Conceptual illustration — not the product interface.
FormatRecommendationWhy
Markdown (.md)BestMarkdown uses clear headers and bullets, which perfectly map to how the AI chunks information.
JSON (.json)Best for dataIdeal for structured data like product catalogs, pricing matrices, or large Q&A sets.
PDF (.pdf)GoodWorks well if the PDF is text-heavy and cleanly formatted. Avoid PDFs that are scanned images of text.
Word (.docx)Acceptableraia Command converts Word to Markdown automatically, but complex formatting may be lost.
CSV / ExcelAvoidSpreadsheets flatten data and lose context. Convert tables to JSON before uploading.
Slide decksAvoidSlides contain disjointed text, floating text boxes, and missing context. Copy the core text into a Markdown file instead.
03

Best Practices for Formatting Content

If you want your agent to give smart, accurate answers, feed it well-structured documents. Follow these three rules before uploading:

  1. Rule 1

    Use structured headings

    Break up walls of text. Use clear, descriptive headings for every section. The AI uses headings to understand the context of the paragraphs below them.

  2. Rule 2

    Keep sections focused

    Keep each section between 200 and 500 words. Split a 50-page handbook into smaller logical files (e.g., handbook_intro.md, handbook_benefits.md, handbook_policies.md).

  3. Rule 3

    Use a consistent Q&A format

    If you are uploading FAQs, use a consistent structure so the AI learns the pattern — e.g., Q: What is the refund policy? / A: Our refund policy allows returns within 30 days...

04

The Upload Workflow in raia Command

You manage your agent's knowledge base using the raia Command application. The process is a simple, four-step workflow:

The upload workflow in raia Command: create project, upload, convert, train.
Conceptual illustration — not the product interface.
Document navigation and upload entry control.
  1. Highlight 1: The Train tab.
  2. Highlight 2: Documents
  3. Highlight 3: Click Upload Document.
Document switches and existing indexing status.
  1. Highlight 1: Status: each document has its own switch.
  2. Highlight 2: “Indexed in vector store” shows the file is ready.
The Upload Document dialog lists DOC, DOCX, TXT, PDF, WORD, MD and JSON, up to 100 MB. It also accepts PPTX, HTML, TeX, CSS and common code files such as PY, JS and TS. Spreadsheets (XLSX, CSV) are not accepted; convert them to PDF, MD, TXT or JSON first.
  1. Highlight 1: Choose or drop your files here.
  2. Highlight 2: Click Upload.
  1. Step 01

    Create a data room

    In raia Command, open Knowledge and choose Add Data Room to create a data room — a workspace to organize related documents.

  2. Step 02

    Upload documents

    Drag and drop your files into the Data Room. You can queue up to 500 files at once; each file can be up to 100 MB.

  3. Step 03

    Convert to Markdown

    Select the files and choose Convert to Markdown. (You can set the project to do this automatically.)

  4. Step 04

    Upload to Vector Store

    Select the converted files and choose Upload to Vector Store. The documents are now live and searchable.

Knowledge Overview of an existing demo data room: Ready for AI and Uploaded for Training counts for files processed before this documentation work.
  1. Highlight 1: Total Documents
  2. Highlight 2: Ready for AI — converted to Markdown.
  3. Highlight 3: Uploaded for Training — Completed.

Practice: upload, train and check one fictional document

Practice with a project and agent you are authorized to change. This fictional Northstar Desk document gives you three known facts, so you can check both the upload and the agent’s answer without using customer data.

Download the fictional Markdown practice file
  1. 1

    In raia Command, open your approved Knowledge project and its Data Room. Choose Upload Files, select Documents as the destination, then select northstar-docs-training-demo-20261022.md. Confirm the filename before proceeding.

    Select the practice file, then review it before uploading.
    1. Highlight 1: Destination folder: Documents.
    2. Highlight 2: The selected synthetic Markdown file.
    3. Highlight 3: Upload Files.
  2. 2

    Click Upload Files in the drawer. Wait for All files uploaded; if it does not appear, inspect the drawer error before retrying. Do not assume that selecting a file uploaded it.

    Upload drawer confirmation for the fictional practice file.
    1. Highlight 1: All files uploaded.
  3. 3

    Find the exact filename in All files. Check Convert and Train separately: Ready means the text is available for the next step, not that the agent has been trained. AI Search Index is separate from agent training.

    The uploaded Markdown is Ready for conversion, while Train is blank; these are different states.
    1. Highlight 1: The new practice filename.
    2. Highlight 2: Convert: Ready.
    3. Highlight 3: Train: blank, not trained.
  4. 4

    Open the new document. Compare the rendered text with the downloaded fixture: 23 days, original power adapter and ORCHID-742. If text is missing, correct the source or conversion before training.

    The rendered new document contains fictional practice facts, not customer data.
    1. Highlight 1: Rendered synthetic document: compare its facts with the practice file.
  5. 5

    Choose Send to AI, then Send Documents to Agent for Training. Keep separate files. Before selecting the approved target agent, confirm it is the one you intend: selecting the agent queues training immediately, with no extra confirmation button.

    Choose training for reusable knowledge; selecting the agent queues it immediately.
    1. Highlight 1: Send Documents to Agent for Training.
  6. 6

    Read the queue confirmation, then return to the file list to monitor progress. Queued is not completed. If an error appears, read its details and check the target before retrying.

    Selecting the target agent queues training immediately. Check the queue, then wait for Trained before asking about the document.
    1. Highlight 1: Training Documents queue confirmation.
  7. 7

    Wait for Trained beside the exact filename. If it does not appear, inspect the job status and error before asking the agent to use the document.

    The fictional document later showed Trained in the file list.
    1. Highlight 1: The exact new filename.
    2. Highlight 2: Trained.
  8. 8

    Open the same target agent in Copilot. Ask: “For the fictional Aurora lamp, what is the return window, required accessory and demo reference? Use northstar-docs-training-demo-20261022.md as the source; take no external actions.” Check for 23 days, original power adapter and ORCHID-742, and compare the cited source with the fixture.

    Compare the answer’s facts and citation with the source: 23 days, the original power adapter and ORCHID-742.
    1. Highlight 1: 23 days; original power adapter; ORCHID-742.
    2. Highlight 2: The exact practice filename and citation.
  9. 9

    Ask: “What are the warranty length and shipping cost in this fictional document?” Neither fact is provided, so the agent should say it does not know from this source. If it invents an answer, check the target agent, document and instructions. Revise one issue and repeat both questions.

    For facts missing from the document, check that the agent acknowledges the gap rather than inventing warranty or shipping details.
05

Frequently Asked Questions

If I update a document, do I need to delete the old one?

No. When you upload a file with the same name, raia Command shows two choices for it: Skip and Overwrite. Click Overwrite to replace the old file. Check the converted content, then use Send to AI → Send Documents to Agent for Training for the intended agent. Selecting the agent queues training immediately. Wait for Trained, then ask about a changed fact and compare the reply and Sources with the updated file.

Can I connect my existing Zendesk or Google Drive instead of uploading files manually?

Yes. raia Command includes Connectors that automatically pull and sync content from external sources like Zendesk, Google Drive, Salesforce, and GitHub directly into your project.

How do I know if the agent is actually using the documents I uploaded?

Check conversion, send the document to the intended agent for training, and wait for Trained; Ready alone is not training completion. In Copilot, ask about a new fact and a few rewordings. Compare the answers with the file and inspect Sources for the intended filename and supporting passage.

Progress is saved locally in your browser.