Class OpenDIDocumentIndex
OpenDI representation of a VectorDB
Inherited Members
Namespace: Quantellia.WMServer.OpenDI
Assembly: WMServer.dll
Syntax
public class OpenDIDocumentIndex : OpenDIAsset
Constructors
OpenDIDocumentIndex()
Default constructor
Declaration
public OpenDIDocumentIndex()
OpenDIDocumentIndex(WMDocumentIndex)
Constructor that initializes a new instance with the data from a WMDataSourceBase object.
Declaration
public OpenDIDocumentIndex(WMDocumentIndex asset)
Parameters
| Type | Name | Description |
|---|---|---|
| WMDocumentIndex | asset | The asset with which to initialize this OpenDIDataSource |
Properties
Documents
A list of documents associated to this OpenDIDocumentIndex.
Declaration
public IEnumerable<OpenDIDocument> Documents { get; set; }
Property Value
| Type | Description |
|---|---|
| IEnumerable<OpenDIDocument> |
Remarks
Note that this is not automatically populated in WMDocumentIndexDTO.UpdateModel(WMPrincipal, DbContext, object[]?),
Methods
ToDTODefault()
Create a new IWMAssetBaseDTO object that contains the properties of this OpenDIAsset. Throws an exception if null values without default are encountered.
Declaration
public WMDocumentIndexDTO ToDTODefault()
Returns
| Type | Description |
|---|---|
| WMDocumentIndexDTO | A IWMAssetBaseDTO object that contains the properties (or default values) of this OpenDIAsset |
ToDTOPartial()
Create a new IWMAssetBaseDTO object that contains only the properties of this OpenDIAsset with no defaults.
Declaration
public WMDocumentIndexDTO ToDTOPartial()
Returns
| Type | Description |
|---|---|
| WMDocumentIndexDTO | A IWMAssetBaseDTO object that contains the properties of this OpenDIAsset |