check_document_exist
Function
Checks whether a document record exists in a knowledge base.
Prototype
def check_document_exist(knowledge_name, doc_name, user_id)
Parameters
Parameter |
Data Type |
Required/Optional |
Description |
|---|---|---|---|
knowledge_name |
String |
Required |
Knowledge base name. The length range is [1, 1024]. |
doc_name |
String |
Required |
Document 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 |
|---|---|
Bool |
Whether a document exists. |
Parent topic: KnowledgeStore