Interface: MakeMongoDbUniversityDataSourceParams
sources.MakeMongoDbUniversityDataSourceParams
Parameters for constructing a MongoDB University Data API source.
Properties
apiKey
• apiKey: string
API key for the MongoDB University Data API.
Defined in
mongodb-rag-ingest/src/sources/mongodb-university/MongoDbUniversityDataSource.ts:27
baseUrl
• baseUrl: string
Base URL for the MongoDB University Data API.
Defined in
mongodb-rag-ingest/src/sources/mongodb-university/MongoDbUniversityDataSource.ts:22
metadata
• Optional
metadata: PageMetadata
Metadata for the MongoDB University Data API source. Included in the Page.metadata for each page.
Defined in
mongodb-rag-ingest/src/sources/mongodb-university/MongoDbUniversityDataSource.ts:44
sourceName
• sourceName: string
Name of the MongoDB University Data API source. Maps to the DataSource.name.
Defined in
mongodb-rag-ingest/src/sources/mongodb-university/MongoDbUniversityDataSource.ts:17
tiCatalogFilterFunc
• tiCatalogFilterFunc: (item
: TiCatalogItem
) => boolean
Type declaration
▸ (item
): boolean
Filter function for filtering out items from the MongoDB University catalog. For example, you may want to only ingest items that are in public content.
To only ingest public, published, and non-legacy MongoDB University content, use the filterOnlyPublicActiveTiCatalogItems filter function.
Parameters
Name | Type |
---|---|
item | TiCatalogItem |
Returns
boolean
Defined in
mongodb-rag-ingest/src/sources/mongodb-university/MongoDbUniversityDataSource.ts:38