Constructor DataFilter
DataFilter(Func<DataSource, bool>, Func<Section, bool>)
Initializes a new instance of the DataFilter class with filter functions for both data sources and sections.
public DataFilter(Func<DataSource, bool> dataSourceFilter, Func<Section, bool> sectionFilter)
Parameters
dataSourceFilterFunc<DataSource, bool>A function that determines if a DataSource should be excluded. Return
trueto filter out the data source.sectionFilterFunc<Section, bool>A function that determines if a Section should be excluded. Return
trueto filter out the section.Note: Section filtering is not supported for DataSource instances that are loaded into vector databases, (i.e., when the StorageMode property is
VectorStore).
DataFilter(Func<DataSource, bool>)
Initializes a new instance of the DataFilter class with a filter function for data sources.
public DataFilter(Func<DataSource, bool> dataSourceFilter)
Parameters
dataSourceFilterFunc<DataSource, bool>A function that determines if a DataSource should be excluded. Return
trueto filter out the data source.
DataFilter(Func<Section, bool>)
Initializes a new instance of the DataFilter class with a filter function for sections.
public DataFilter(Func<Section, bool> sectionFilter)
Parameters
sectionFilterFunc<Section, bool>A function that determines if a Section should be excluded. Return
trueto filter out the section.Note: Section filtering is not supported for DataSource instances that are loaded into vector databases, (i.e., when the StorageMode property is
VectorStore).