notdiamond.metrics
notdiamond.metrics.metric
- class notdiamond.metrics.metric.Metric(metric: str | None = 'accuracy')[source]
Bases:
object
- Parameters:
metric (str | None)
notdiamond.metrics.request
- notdiamond.metrics.request.feedback_request(session_id: str, llm_config: LLMConfig, feedback_payload: Dict[str, int], notdiamond_api_key: str, nd_api_url: str = 'https://api.notdiamond.ai', _user_agent: str = 'Python-SDK/0.3.32') bool [source]
- Parameters:
session_id (str)
llm_config (LLMConfig)
feedback_payload (Dict[str, int])
notdiamond_api_key (str)
nd_api_url (str)
_user_agent (str)
- Return type:
bool