Type Alias DataSource

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 DataSource = {
    chunking?: Chunking;
    contentSummary: ContentSummary;
    crawlerConfig?: DataSourceCrawlConfig;
    fileConfig?: DataSourceFileConfig;
    id: string;
    name?: string;
    sourceCount?: number;
    spaceId?: string;
    syncInfo?: DataSourceSyncStatus;
    type: "file" | "web" | "database";
}
Index

Properties

chunking?: Chunking
contentSummary: ContentSummary
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.

id: string

Unique identifier of the datasource

name?: string

Name of the datasource

sourceCount?: number

The number of times that a datasource was referenced as a source in an answer

spaceId?: string

The unique identifier of the space containing the datasource

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