Skip to main content
 print this page

Add a Dataset or Domain source to a knowledge base

POST 

/ai/knowledgebases/:id/resources

Attaches one Dataset or Domain source. Requires editor access on the knowledge base and on the dataset or domain. Unstructured knowledge bases allow at most 5 sources and accept optional ChunkingConfiguration (default NONE) and ParsingConfiguration (default DEFAULT). Structured knowledge bases ignore chunking/parsing; the dataset TargetLocation must match the knowledge base DataStoreType. Datasets must be internal (not Hudi or Iceberg).

Request

Responses

Source added. Unstructured responses include SourceId; structured responses include KnowledgebaseId. Message names the attached resource.

Response Headers
    Access-Control-Allow-Origin
    Access-Control-Allow-Methods
    Access-Control-Allow-Headers