Sub topic 7
How content becomes searchable chunks and vectors
This chapter assumes you know what a Knowledge article is and have a general idea of what a large language model does. It also assumes you know that Data Cloud holds the ingested article content. Here you will see what happens to that content before a retriever can search it.
Why content is split into chunks
A model cannot read a whole knowledge base for each question. A search index therefore breaks each article into smaller pieces called chunks. A chunk is a passage of text, often a few sentences to a few paragraphs, that is stored and searched as one unit.
Chunking matters because retrieval returns chunks, not whole articles. The chunk is what the prompt receives as an excerpt. A chunk that is too large mixes topics and adds noise to the prompt. A chunk that is too small loses the context needed to answer.
What a vector embedding is
An embedding is a list of numbers that represents the meaning of a chunk. An embedding model produces it. Chunks with similar meaning get vectors that sit close together, even when they share few words. "How do I reset my password?" and "Steps to recover account access" end up near each other.
At query time the customer's question is converted into a vector by the same embedding model. The search then looks for the chunk vectors closest to it. This is vector search.
The two kinds of search compare like this:
| Search type | Matches on | Strength | Weakness |
|---|---|---|---|
| Keyword | Exact words and terms | Precise for product codes and names | Misses paraphrases |
| Vector | Meaning | Handles paraphrases | Can be loose on exact identifiers |
| Hybrid | Both, combined | Covers both cases | Slightly more to configure |
The pipeline
The index keeps the chunk text and its vector together. That lets the retriever return readable text along with the match score.
Chunking and freshness
Chunks and vectors are built when the index processes content. If an article changes, the old chunks stay in the index until the index is refreshed from the updated source. An answer can therefore quote text that no longer appears in the published article. Later chapters on ingestion and troubleshooting cover this in detail.
Common errors
- Long articles that cover many topics. One chunk may blend unrelated steps. Split such articles at the source, with clear headings and one topic per section.
- Missing text. Content that lives only in images or attachments produces no chunks, so it cannot be retrieved.
- Expecting exact matches from vector search. A search for a specific error code may return loosely related chunks. Hybrid search helps here.
- Mixing embedding models. The question and the chunks must use the same model, or the distances are meaningless. The index handles this for you, so avoid changing the model setting casually.
Exercise
A customer asks, "Can I get my money back?" The article says "Refund policy: orders may be returned within 30 days." The words do not overlap much. Which search type finds this chunk most reliably, and why?
Show answer
Vector search (or hybrid). Both the question and the chunk are converted to embeddings, and they have similar meaning, so their vectors are close even though they share few words. Pure keyword search would likely miss it.
Exercise
An agent quotes a return window of 14 days, but the published article now says 30 days. What part of the chunk and vector process is the likely cause?
Show answer
The index still holds chunks and vectors built from the older version of the article. The index has not been refreshed with the updated content, so retrieval returns stale chunks.