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
Free plan now 10 requests/minute, 200/day; Plus and Pro 30/minute, 1,000/day
List knowledge stores can be filtered by asset with asset_id
TwelveLabs SDKs 1.3.8 change Responses API types, removing usage for billing
Knowledge store items can be filtered by 1 to 50 asset IDs when listing
Fractional embedding segment lengths documented as valid; Marengo 3.0 ignores the fraction