get_all_documents

Function

Obtains all document records in a knowledge base.

Prototype

def get_all_documents(knowledge_name, user_id)

Parameters

Parameter

Data Type

Required/Optional

Description

knowledge_name

String

Required

Knowledge base name. The length range is [1, 1024].

user_id

String

Required

User ID, which is used to distinguish different knowledge bases and must comply with the regular expression ^[a-zA-Z0-9_-]{6,64}$.

Return Value

Data Type

Description

List[DocumentModel]

Document information corresponding to user_id and knowledge_name. For details about DocumentModel, see DocumentModel.