From dbfa859ca344f831f0d6da3dcb20d607d6a87195 Mon Sep 17 00:00:00 2001 From: writinwaters <93570324+writinwaters@users.noreply.github.com> Date: Mon, 28 Apr 2025 15:58:20 +0800 Subject: [PATCH] Knowledge graph no longer exists as a chunking method (#7382) ### What problem does this PR solve? ### Type of change - [x] Documentation Update --- docs/references/http_api_reference.md | 9 ++++----- docs/references/python_api_reference.md | 2 -- 2 files changed, 4 insertions(+), 7 deletions(-) diff --git a/docs/references/http_api_reference.md b/docs/references/http_api_reference.md index 7ebc80b01..8312326a3 100644 --- a/docs/references/http_api_reference.md +++ b/docs/references/http_api_reference.md @@ -393,7 +393,6 @@ curl --request POST \ - `"presentation"`: Presentation - `"picture"`: Picture - `"one"`: One - Ensure your LLM is properly configured on the **Settings** page before selecting this. Please also note that Knowledge Graph consumes a large number of Tokens! - `"email"`: Email - `"parser_config"`: (*Body parameter*), `object` @@ -404,9 +403,9 @@ curl --request POST \ - `"html4excel"`: Indicates whether to convert Excel documents into HTML format. Defaults to `false`. - `"delimiter"`: Defaults to `"\n"`. - `"task_page_size"`: Defaults to `12`. For PDF only. - - `"raptor"`: Raptor-specific settings. Defaults to: `{"use_raptor": false}`. + - `"raptor"`: RAPTOR-specific settings. Defaults to: `{"use_raptor": false}`. - If `"chunk_method"` is `"qa"`, `"manuel"`, `"paper"`, `"book"`, `"laws"`, or `"presentation"`, the `"parser_config"` object contains the following attribute: - - `"raptor"`: Raptor-specific settings. Defaults to: `{"use_raptor": false}`. + - `"raptor"`: RAPTOR-specific settings. Defaults to: `{"use_raptor": false}`. - If `"chunk_method"` is `"table"`, `"picture"`, `"one"`, or `"email"`, `"parser_config"` is an empty JSON object. #### Response @@ -830,9 +829,9 @@ curl --request PUT \ - `"html4excel"`: Indicates whether to convert Excel documents into HTML format. Defaults to `false`. - `"delimiter"`: Defaults to `"\n"`. - `"task_page_size"`: Defaults to `12`. For PDF only. - - `"raptor"`: Raptor-specific settings. Defaults to: `{"use_raptor": false}`. + - `"raptor"`: RAPTOR-specific settings. Defaults to: `{"use_raptor": false}`. - If `"chunk_method"` is `"qa"`, `"manuel"`, `"paper"`, `"book"`, `"laws"`, or `"presentation"`, the `"parser_config"` object contains the following attribute: - - `"raptor"`: Raptor-specific settings. Defaults to: `{"use_raptor": false}`. + - `"raptor"`: RAPTOR-specific settings. Defaults to: `{"use_raptor": false}`. - If `"chunk_method"` is `"table"`, `"picture"`, `"one"`, or `"email"`, `"parser_config"` is an empty JSON object. #### Response diff --git a/docs/references/python_api_reference.md b/docs/references/python_api_reference.md index 5590ff264..0b7a16cee 100644 --- a/docs/references/python_api_reference.md +++ b/docs/references/python_api_reference.md @@ -558,8 +558,6 @@ A `Document` object contains the following attributes: `None` - `chunk_method`=`"one"`: `None` - - `chunk_method`=`"knowledge-graph"`: - `{"chunk_token_num":128,"delimiter": "\\n","entity_types":["organization","person","location","event","time"]}` - `chunk_method`=`"email"`: `None`