Skip to content
For the complete documentation index, see llms.txt. This page is also available as Markdown.

Chunking, OCR, and embedding settings

Ingestion settings control how source files become searchable content. Chunking divides text into passages. OCR extracts text from images. Embeddings represent content for similarity search.

Before you start

Configure the knowledge base before its first upload. Chunking algorithm, length, overlap, OCR, embedding provider, and embedding model become read-only while the base contains files.

Choose a starting configuration

For an initial configuration, keep the preselected chunking algorithm, length, overlap, and available embedding model. Change one setting at a time only when inspection reveals a specific problem. An embedding model is the search index's representation of text; it is not the model that writes the assistant's answer.

Content or problem
Starting choice and check

Ordinary text documents

Keep the preselected settings, then check that one retrieved passage contains enough context to answer a known question.

Scanned pages or text inside images

Enable Text in Images (OCR) before upload. Compare Parsed with the original; indexing can succeed despite recognition mistakes.

A passage loses context at its boundary

Inspect Chunks. In a separate base, compare a longer chunk or more overlap, then repeat the same retrieval question.

A required embedding provider/model is unavailable

Ask the organization administrator which available model to use before importing. Do not choose a model solely because its name resembles the assistant's model.

Chunk Length and Chunk Overlap are measured in tokens, the units used to divide text; they are not page or word counts. The current controls offer lengths of 100–6,000 tokens and overlaps of 0–1,000 tokens. Keep overlap smaller than chunk length. Larger values are not automatically better: judge them by whether returned passages preserve useful context.

The algorithm choices are Sentence and Naive. Keep the initial choice for your first comparison rather than selecting one from its name alone. Check the resulting passage boundaries with your own document structure.

Open settings before upload

Open More Options → Update Settings before uploading documents.

Knowledge base upload settings

Review the configuration while the knowledge base is still empty.

Configure chunking

Choose a Chunking Algorithm suited to the document structure.

Chunking algorithm and size controls

The algorithm determines how extracted text is divided into passages for retrieval.

Set Chunk Length and Chunk Overlap.

Chunking algorithm and size controls

Overlap retains some neighboring text between passages. Inspect the resulting chunks to check whether important context stays together.

Configure OCR and embeddings

Enable Text in Images (OCR) when documents contain text that must be read from images.

OCR and embedding configuration

Select an available embedding provider and model for indexing the extracted content.

Save the processing settings.

OCR and embedding configuration

Review the selected values before uploading the first documents.

Upload and inspect documents

Upload the intended documents and wait for each file to reach Indexed.

Uploaded document content inspection

Review individual statuses rather than only the overall upload notification.

Open a scanned document in Preview, then compare it with Parsed.

Uploaded document content inspection

Successful indexing does not guarantee that OCR recognized every word correctly.

Inspect Chunks for the important passages in each document type.

Uploaded document content inspection

Check that extraction and passage boundaries preserve the information needed to answer questions.

Check retrieval

Use Evaluate with a question whose answer is present in the source.

Knowledge base retrieval results

Inspect the returned passage and attribution to confirm that the indexed content can be found.

Review settings after ingestion

Review Update Settings after ingestion to identify read-only controls.

Processing settings after file ingestion

To try a different configuration, create a new empty knowledge base, set the values, and import representative sources again. Compare Parsed, Chunks, and Evaluate before moving consumers to the replacement. Check References on the old base first; creating a replacement does not switch existing agents or workflows to it.

Important behavior

Chunking divides extracted content into searchable passages. Overlap retains text across neighboring passages.

OCR reads text from images. Review the extracted text for recognition errors, especially in scanned documents.

Continue

Last updated

Was this helpful?