Skip to content

πŸ€— Huggingface Provider

trulens_eval.feedback.provider.hugs.Huggingface

Bases: HuggingfaceBase

Out of the box feedback functions calling Huggingface APIs.

Functions

__init__

__init__(
    name: Optional[str] = None,
    endpoint: Optional[Endpoint] = None,
    **kwargs
)

Create a Huggingface Provider with out of the box feedback functions.

Example

from trulens_eval.feedback.provider.hugs import Huggingface
huggingface_provider = Huggingface()