Show / Hide Table of Contents

Interface IVectorDB

Interface for implementing a VectorDB

Namespace: Quantellia.WMServer.Asset.LLM.VectorDB
Assembly: WMServer.dll
Syntax
public interface IVectorDB

Properties

LLMConnection

The WMLLMConnection object containing the metadata for IVectorDB derived classes.

Declaration
WMLLMConnection LLMConnection { get; set; }
Property Value
Type Description
WMLLMConnection

Methods

GetSimilarEmbeddings(WMPrincipal, string, float, int, WMAppDbContext)

Returns a list of text fragments similar in context to the supplied source text.

Declaration
Task<List<string>> GetSimilarEmbeddings(WMPrincipal principal, string source, float threshold, int maxRecords, WMAppDbContext context)
Parameters
Type Name Description
WMPrincipal principal
string source

The message to search for contextually similar text.

float threshold

A number between -1 and 1 indicating how similar the embedding should be. (1 for identical, 0 for opposite)

int maxRecords

The highest number of records that should be returned.

WMAppDbContext context
Returns
Type Description
Task<List<string>>

Insert(WMPrincipal, WMAssetIdentifier, WMAssetIdentifier, WMAppDbContext)

Inserts the text from a WMDocument to the vectorDB.

Declaration
Task Insert(WMPrincipal principal, WMAssetIdentifier documentIndexIdentifier, WMAssetIdentifier documentIdentifier, WMAppDbContext context)
Parameters
Type Name Description
WMPrincipal principal
WMAssetIdentifier documentIndexIdentifier

The identifier of the documentIndex.

WMAssetIdentifier documentIdentifier

The identifier of the document to insert.

WMAppDbContext context
Returns
Type Description
Task
Exceptions
Type Condition
Exception

Remove(WMPrincipal, WMAssetIdentifier, WMAssetIdentifier, WMAppDbContext)

Removes the text from a WMDocument from the vectorDB.

Declaration
Task Remove(WMPrincipal principal, WMAssetIdentifier documentIndexidentifier, WMAssetIdentifier documentIdentifier, WMAppDbContext context)
Parameters
Type Name Description
WMPrincipal principal
WMAssetIdentifier documentIndexidentifier
WMAssetIdentifier documentIdentifier
WMAppDbContext context
Returns
Type Description
Task
Exceptions
Type Condition
Exception
In this article
Back to top Copyright © 2025 Quantellia LLC.    Version 2.0.0 Revision 399     Last Updated 1/15/2025    DRAFT DOCUMENTATION. SUBJECT TO CHANGE