Type Alias CreateDataSource

Specification on where to fetch the files for. This is required when the type == 'file'. Only one of path and files can be set. Path takes precedence if both are provided.

type CreateDataSource = {
    crawlerConfig?: DataSourceCrawlConfig;
    fileConfig?: DataSourceFileConfig;
    name: string;
    type: "file" | "web" | "database";
}
Index

Properties

crawlerConfig?: DataSourceCrawlConfig

Configuration for webcrawling

Specification on where to fetch the files for. This is required when the type == 'file'. Only one of path and files can be set. Path takes precedence if both are provided.

name: string

Name of the datasource

type: "file" | "web" | "database"