Class VectorizationStateServiceBase
- 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
VectorizationRequestThe 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
VectorizationStateThe 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
ContentIdentifierThe 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
stringThe chunk of text to be hashed.
Returns
- string
The string version of the hash.