compass.validation.location.DTreeJurisdictionValidator#
- class DTreeJurisdictionValidator(jurisdiction, **kwargs)[source]#
Bases:
BaseLLMCallerJurisdiction Validation using a decision tree
- Parameters:
structured_llm_caller (
StructuredLLMCaller) – Instance used for structured validation queries.**kwargs – Additional keyword arguments to pass to the
BaseLLMCallerinstance.
Methods
check(content)Check if the content passes the validation
Attributes
Key in doc.attrs where score is stored
System message for jurisdiction validation LLM calls
- META_SCORE_KEY = 'Jurisdiction Validation Score'#
Key in doc.attrs where score is stored
- SYSTEM_MESSAGE = 'You are a legal expert assisting a user with determining the scope of applicability for their legal ordinance documents.'#
System message for jurisdiction validation LLM calls