FastGPT icon

FastGPT

AI智能客服平台

集合 → 获取集合详情

AI-generated

Summary

Fetches the details of a single FastGPT knowledge-base collection by ID via GET /core/dataset/collection/detail, and throws a node error if the API reports a failure.

Inputs

  • 集合ID (id) — ID of the collection to look up. Sent as the id query parameter. It is not marked required in the UI, but the lookup needs it.
  • 父级目录ID (datasetParentId) — Folder ID copied from the FastGPT browser URL. Declared as a body field (parentId). Its main use is narrowing the knowledge-base dropdown, which loads datasets under this parent.
  • 选择知识库 (datasetKnowledgeId) — Dropdown of knowledge bases (type 'dataset') loaded from /core/dataset/list for the chosen parent folder. Declared as body field datasetId. A GET request normally carries no body, so it may have no effect on the lookup.
  • Request Options — Optional node settings: batching (items per batch, interval), ignore SSL issues, proxy URL, and timeout in ms (default 10000).

Output shape

The FastGPT API response for the collection, passed through unchanged as the node's output item.

The node sets ignoreHttpStatusErrors and runs a post-receive check. It throws a NodeApiError if the HTTP status is 4xx/5xx or the response body code is not 200. The message comes from the body message. Authentication uses the fastGPTApi credential and its baseUrl.

Examples

Example 1: Check the status and metadata of a known collection

Resource: 集合; Operation: 获取集合详情; 集合ID: an ID from a prior 获取集合列表 step, e.g. {{$json.id}}.

Example 2: Look up a collection and select its knowledge base from the dropdown

Set 父级目录ID if the dataset sits in a folder, pick the dataset in 选择知识库, then enter 集合ID.

Links

Discussion