Sub topic 4
Choosing and preparing knowledge files
Knowledge files are the reference documents you attach to a custom GPT, a Gem, or a Claude Project. The assistant reads them when it answers. This chapter assumes you have already written instructions (see the previous chapter) and that you use at least one of the three platforms regularly. Here you will decide which files belong in an assistant, prepare them so the model can use them, and avoid the errors that make attached files useless.
What a knowledge file does
Instructions tell the assistant how to behave. Knowledge files give it material to draw on. Keep that split in mind, because mixing the two is the most common mistake.
- Put rules that apply to every answer in the instructions: role, tone, output format, boundaries.
- Put long, specific, or changing material in files: the style guide, product facts, approved messaging, example campaigns.
The platforms handle files in slightly different ways, and the details change often, so check each vendor's current documentation for limits. The general pattern is the same on all three:
| Platform | Where files go | General behavior |
|---|---|---|
| Custom GPT | Knowledge section of the GPT builder | Files are searched for relevant passages when a question arrives |
| Gem | Knowledge or files section of the Gem editor | Files are available as context for each conversation with the Gem |
| Claude Project | Project knowledge | Files are available to every chat in the project, and large collections may be searched instead of read in full |
Treat the table as a starting point. File size limits, file counts, and supported formats differ by plan and change over time.
Retrieval, not memorization
Most platforms do not paste every file into every answer. When the total material is large, the system retrieves the passages that look relevant to the current question and gives only those to the model. This is called retrieval. It has practical consequences for how you write files:
- A passage is found by how well it matches the question. Clear headings and plain wording help.
- A rule buried in the middle of a long paragraph may not be retrieved when it matters.
- Two files that disagree can both be retrieved, and the model may pick either.
- A fact that appears only in a table image or a scanned page may not be readable at all.
When the total material is small, some platforms place all of it in context. You usually cannot tell which mode is in use, so prepare files as if retrieval is happening.
Choosing what to include
Start from the tasks the assistant must do, then ask what the model would need to know to do them well. A useful test for each candidate file: if a new contractor were given only this file and the instructions, would it help them produce a correct draft?
Good candidates for a marketing assistant:
- A brand voice and style guide, trimmed to the rules people actually apply.
- A message house or positioning document: audience, value propositions, proof points.
- Product or service fact sheets that are approved for external use.
- A glossary of product names, preferred spellings, and banned terms.
- A small set of strong past examples, labeled by channel and outcome.
- Legal and compliance guidance on claims, disclaimers, and required wording.
Poor candidates:
- Full brand books with logo usage, photography rules, and print specifications that do not affect written copy.
- Entire archives of past campaigns with no indication of which were good.
- Internal strategy decks, pricing negotiations, or anything marked confidential. See the privacy chapter before attaching these.
- Drafts, superseded versions, and files with tracked changes or unresolved comments.
- Documents that exist in several near-duplicate versions.
More files do not make a better assistant. Each extra file adds noise to retrieval and another document to keep current. A small set of clean, current files usually beats a large pile.
Prepare files before you upload
Raw documents are often written for human readers who see layout, color, and images. The model sees text. Preparation is mostly about making the text carry the meaning.
Convert and clean
- Prefer text-based formats: Markdown, plain text, or a Word or Google Doc with real text. A PDF exported from a design tool is often usable, but a scanned PDF is an image and may be unreadable.
- Remove content that does not help: cover pages, tables of contents, repeated headers and footers, page numbers, and legal boilerplate that applies to nothing the assistant does.
- Accept all tracked changes and delete resolved comments.
- Replace meaning that lives only in images. If a slide shows a diagram of the brand pillars, write the pillars as a list.
- Check tables. Simple tables usually survive. Merged cells and nested tables often do not. When in doubt, turn a complex table into a list with one item per row.
Structure for retrieval
Give every file a clear title and short sections with descriptive headings. Each section should make sense by itself, because retrieval may return it without its neighbors.
Here is the difference. This version depends on context that retrieval may drop:
## Tone
As mentioned above, we avoid it in these cases. See the previous section for the exceptions.This version stands alone:
## Tone: exclamation marks
Do not use exclamation marks in email subject lines or headlines.
Use at most one per social post.
Exception: event announcements may use one in the first sentence.Write rules as statements the model can apply. "Our voice is friendly yet authoritative" is hard to follow. "Use contractions. Address the reader as 'you'. Name the product on first mention and do not call it a 'solution'." is easy to follow.
Label examples
Examples teach the model by imitation, so a bad example does damage. For each example, include a short label so the model knows what it shows:
## Example: launch email (approved)
Channel: Email
Audience: Existing customers
Why it works: Short subject line, one call to action, no superlatives.
Subject: Your reports now export in one click
Hi Maria, ...Mark weak examples too, if you include them: "Example to avoid" with the reason. Without labels, the model cannot tell your best work from your worst.
Separate rules from examples
Keep rules in one file and examples in another when you can. A style guide with embedded samples is harder to update, and retrieval may return an example without the rule it illustrates. Cross-references such as "see the voice guide" are weak, because the model may not have that file in view.
Naming and organizing files
File names are visible to the owner and sometimes to the model. Use names that say what the file is and which version it is:
brand-voice-rules-2026-11.mdproduct-facts-approved.mdexamples-email-approved.mdclaims-and-compliance.md
Avoid final_v3_REAL.docx. Put one topic in each file, and avoid combining unrelated material to save slots. When you replace a file, delete the old one. Leaving both in place invites conflicts.
Handling conflicts and gaps
Retrieval cannot resolve contradictions. If the style guide says "never use exclamation marks" and an attached example email uses three, the model may follow either. Before upload, scan for these conflicts:
- Old and new versions of the same guide.
- Examples that break the stated rules.
- Product names that appear in two spellings.
- Claims in examples that the compliance file prohibits.
Then say in the instructions what wins. A single line is enough:
If the examples file and the voice rules disagree, follow the voice rules.
If no file covers a case, say so instead of guessing.The second line matters. Without it, the model fills gaps from its general training, and the result sounds plausible but may not match your brand or facts.
Size and scope
Large files cause three problems. They may exceed platform limits or be truncated. They dilute retrieval. They are expensive to maintain. As a working guide:
- Split documents by topic once they pass a few dozen pages.
- Cut anything the assistant would never need for its stated job.
- Prefer a 4-page rules document over a 60-page brand book.
If you need two quite different jobs, such as social copy and press releases, consider two assistants with focused file sets rather than one assistant with everything.
Where the files come from, and who owns them
A shared assistant is only as current as its files. Decide before launch:
- Who owns each file, and who approves changes.
- Whether the file is a copy or a link. Uploaded files are generally snapshots, so a change to the original does not update the assistant. Some platforms can connect to a live document, which behaves differently. Check which applies, and note it in the change log.
- Where the source of truth lives. Keep it in your team's document system, and treat the upload as a copy.
Record each file in a simple inventory:
| File | Owner | Source of truth | Last updated | Contains sensitive data? |
|------|-------|-----------------|--------------|--------------------------|
| brand-voice-rules-2026-11.md | Brand lead | Shared drive /brand/voice | 2026-11-20 | No |
| product-facts-approved.md | Product marketing | Wiki /products/facts | 2026-11-12 | No |Common errors
| Error | Result | Fix |
|---|---|---|
| Uploading the entire brand book | Rules buried, retrieval misses them | Extract the writing rules into a short file |
| Scanned PDFs | File unreadable | Export or retype as text |
| Old and new versions both attached | Contradictory output | Keep one version, delete the rest |
| Unlabeled examples | Model imitates weak work | Label each as approved or to avoid |
| Rules in the instructions and different rules in a file | Inconsistent answers | Keep each rule in one place |
| Confidential material in a shared assistant | Anyone with access can surface it | Apply the privacy rules before upload |
A preparation workflow
The loop from testing back to cleaning is deliberate. When an answer is wrong, look at the files first. The fix is often a clearer heading, a removed duplicate, or a rule moved into the instructions.
Exercises
Exercise
Your team uploads a 70-page brand book as a PDF, plus last year's and this year's versions of the voice guide. The assistant sometimes uses exclamation marks and sometimes does not. Name two likely causes and one fix for each.
Show answer
Cause 1: the two versions of the voice guide contradict each other, and retrieval returns either one. Fix: delete the old version and keep one current file. Cause 2: the exclamation mark rule is buried in a long brand book, so it is not always retrieved. Fix: extract the writing rules into a short file with a heading such as "Tone: exclamation marks", and add a line in the instructions saying the voice rules win over examples.
Exercise
Pick three documents from your own team that you might attach to a brand copy assistant. For each, state whether you would include it, what you would change first, and whether it holds any sensitive data.
Show answer
Answers vary. A strong answer includes only documents that help with written copy, names a concrete cleanup step for each (for example, remove the table of contents, accept tracked changes, replace an image-only diagram with a list, add "approved" labels to examples), and excludes or redacts any document with confidential pricing, unreleased plans, customer data, or personal information.