FastGPT icon

FastGPT

AI智能客服平台

知识库 → 获取知识库详情

AI-generated

Summary

Fetches the details of a single FastGPT knowledge base (dataset) by ID by sending a GET request to /core/dataset/detail.

Inputs

  • knowledgeId — ID of the knowledge base to fetch. Sent as the id query parameter. It is not marked required in the UI, but the request needs it to identify the knowledge base. The default is an empty string.
  • requestOptions — Standard n8n request settings: batching (items per batch and interval in ms), ignore SSL certificate issues, an HTTP proxy, and a timeout in ms (default 10000).

Output shape

The FastGPT API response body for the knowledge base. This is the parsed JSON, so it normally includes the code and data fields, with the knowledge base details in data.

The node's requestDefaults set ignoreHttpStatusErrors, so errors are caught in a post-receive step. It throws a NodeApiError if the HTTP status is 4xx or 5xx, or if the body's code is present and not 200. The error message comes from the body's message. The exact fields in the details depend on the FastGPT server, and the source doesn't define them.

Examples

Example 1: Look up a knowledge base's settings before adding data to it.

Resource: 知识库; Operation: 获取知识库详情; 知识库ID: an ID such as one returned by 获取知识库列表, or an expression like {{ $json.datasetId }}.

Links

Discussion