Skip to main content
POST
/
pub
/
42000401
/
gpt
/
knowledge
/
search
知识库搜索
curl --request POST \
  --url https://apaas.apaas.mypaas.com/pub/42000401/gpt/knowledge/search \
  --header 'Content-Type: application/json' \
  --header 'tenantCode: <tenantcode>' \
  --data '
{
  "knowledgeCode": "<string>",
  "topK": 123,
  "input": "<string>",
  "context": {
    "userCode": "<string>",
    "userName": "<string>",
    "appCode": "<string>",
    "appName": "<string>",
    "moduleCode": "<string>",
    "moduleName": "<string>"
  }
}
'
{
  "success": true,
  "tag": "<string>"
}

Headers

tenantCode
string
required

租户编码

Body

application/json
knowledgeCode
string
topK
integer
input
string
context
上下文 · object

Response

plant response

success
boolean

The name of the plant

tag
string

Tag to specify the type