Table of Contents

Class VectorizationStateServiceBase

Namespace
FoundationaLLM.Vectorization.Services.VectorizationStates
Assembly
FoundationaLLM.Vectorization.Engine.dll

Provides base services for the vectorization state services.

public abstract class VectorizationStateServiceBase
Inheritance
VectorizationStateServiceBase
Derived
Inherited Members
Extension Methods

Methods

GetPersistenceIdentifier(VectorizationRequest)

Gets the persistence identifier of the vectorization state based on the vectorization request.

protected string GetPersistenceIdentifier(VectorizationRequest vectorizationRequest)

Parameters

vectorizationRequest VectorizationRequest

The VectorizationRequest for which the persistence identifier is being built.

Returns

string

The string version of the persistence identifier.

GetPersistenceIdentifier(VectorizationState)

Gets the persistence identifier of the vectorization state based on the vectorization state itself.

protected string GetPersistenceIdentifier(VectorizationState vectorizationState)

Parameters

vectorizationState VectorizationState

The VectorizationState for which the persistence identifier is being built.

Returns

string

The string version of the persistence identifier.

HashContentIdentifier(ContentIdentifier)

Computes the MD5 hash of the content identifier.

protected static string HashContentIdentifier(ContentIdentifier contentIdentifier)

Parameters

contentIdentifier ContentIdentifier

The ContentIdentifier holding the content identification information.

Returns

string

The string version of the hash.

HashText(string)

Computes the MD5 hash of a specified chunk of text.

protected static string HashText(string text)

Parameters

text string

The chunk of text to be hashed.

Returns

string

The string version of the hash.