compass.validation.location.DTreeURLJurisdictionValidator#
- class DTreeURLJurisdictionValidator(jurisdiction, **kwargs)[source]#
Bases:
BaseLLMCallerValidator that checks whether a URL matches a jurisdiction
- Parameters:
structured_llm_caller (
StructuredLLMCaller) – Instance used for structured validation queries.**kwargs – Additional keyword arguments to pass to the
BaseLLMCallerinstance.
Methods
check(url)Check if the content passes the validation
Attributes
System message for URL jurisdiction validation LLM calls
- SYSTEM_MESSAGE = 'You are an expert data analyst that examines URLs to determine if they contain information about jurisdictions. Only ever answer based on the information in the URL itself.'#
System message for URL jurisdiction validation LLM calls