nemoguardrails.tracing.adapters.registry
Module Contents
Classes
Functions
API
Bases: Registry
Validate the item to be registered. Raises: TypeError: If an item is not an instance of InteractionLogAdapter.
Register an embedding provider.
Parameters:
model
The embedding model class.
name
The name of the embedding engine.
Raises:
ValueError: If the engine name is not provided and the model does not have an engine name.TypeError: If the model is not an instance ofEmbeddingModel.ValueError: If the model does not have ‘encode’ or ‘encode_async’ methods.