Skip to content
Back to feed

September 30, 2026 · TwelveLabs

Document embeddings add a segmentation parameter for PDF, text and Markdown files

Control how the platform divides a document before it creates embeddings by setting the segmentation parameter. The options depend on the file type:

  • PDF files: Divide each page into a 2×2 grid, producing five embeddings per page: one for the whole page, and one for each quarter.
  • Plain text and Markdown files: Divide the file into chunks of whole sentences, with a chunk size you control.

To use this feature, upgrade to the latest version of the Python or Node.js SDK:

Python SDK

pip install --upgrade twelvelabs

Node.js SDK

npm install twelvelabs-js@latest

For details, see the Create an async embedding task page in the API Reference section, or the SDK reference for Python and Node.js.

Latest TwelveLabs API changes

All TwelveLabs API changes