From f8dca00352e22bb8f5c0803d6898906684cda8bd Mon Sep 17 00:00:00 2001 From: bogdankostic <48713846+bogdankostic@users.noreply.github.com> Date: Wed, 23 Sep 2026 10:18:17 +0000 Subject: [PATCH] Sync Haystack API reference on Docusaurus --- docs-website/reference/haystack-api/preprocessors_api.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/docs-website/reference/haystack-api/preprocessors_api.md b/docs-website/reference/haystack-api/preprocessors_api.md index c791e42cea3..473584ba568 100644 --- a/docs-website/reference/haystack-api/preprocessors_api.md +++ b/docs-website/reference/haystack-api/preprocessors_api.md @@ -443,6 +443,7 @@ Initialize DocumentSplitter. from non-textual documents. - **tokenizer_encoding** (str) – The tiktoken encoding to use when `split_by="token"`. Defaults to `"o200k_base"` (current OpenAI models). Only used when `split_by="token"`. + Special-token strings in document content are encoded as ordinary text. #### warm_up @@ -956,6 +957,7 @@ Initializes a RecursiveDocumentSplitter. `split_unit`) between consecutive chunks. - **split_unit** (Literal['word', 'char', 'token']) – The unit of the split_length parameter. It can be either "word", "char", or "token". If "token" is selected, the text will be split into tokens using the tiktoken tokenizer (o200k_base). + Special-token strings in document content are encoded as ordinary text. - **separators** (list\[str\] | None) – An optional list of separator strings to use for splitting the text. The string separators will be treated as regular expressions unless the separator is "sentence", in that case the text will be split into sentences using a custom sentence tokenizer based on NLTK.