Class WMDocumentIndex
Class providing RAG vector DB behavior.
Implements
Inherited Members
Namespace: Quantellia.WMServer.Asset.DocumentIndex
Assembly: WMServer.dll
Syntax
[HasDTO(typeof(WMDocumentIndexDTO))]
public class WMDocumentIndex : WMAssetBase, IWMAsset, IDbEntity, IWMEntity, IDocumentedEntity, INamedEntity, IWMAssetDirectoryMember, IWMPrincipalOwned
Constructors
WMDocumentIndex()
Default constructor
Declaration
public WMDocumentIndex()
WMDocumentIndex(string)
Constructor that initializes the ID
Declaration
public WMDocumentIndex(string id)
Parameters
Type | Name | Description |
---|---|---|
string | id |
Properties
Documents
A list of documents associated to this WMDocumentIndex.
Declaration
public IEnumerable<WMDocument> Documents { get; set; }
Property Value
Type | Description |
---|---|
IEnumerable<WMDocument> |
Remarks
Note that this is not automatically populated in WMDocumentIndexDTO.UpdateModel(WMPrincipal, DbContext, object[]?),
Methods
SetAssociatedDocuments(WMPrincipal, WMAppDbContext)
Sets the Documents field for this WMDocumentIndex
Declaration
public Task SetAssociatedDocuments(WMPrincipal principal, WMAppDbContext context)
Parameters
Type | Name | Description |
---|---|---|
WMPrincipal | principal | |
WMAppDbContext | context |
Returns
Type | Description |
---|---|
Task |