compass.validation.location.JurisdictionWebsiteValidator#
- class JurisdictionWebsiteValidator(browser_semaphore=None, file_loader_kwargs=None, **kwargs)[source]#
Bases:
objectCOMPASS Ordinance Jurisdiction Website validator
- Parameters:
browser_semaphore (
asyncio.Semaphore, optional) – Semaphore instance that can be used to limit the number of playwright browsers open concurrently. IfNone, no limits are applied. By default,None.file_loader_kwargs (
dict, optional) – Dictionary of keyword arguments pairs to initializeelm.web.file_loader.AsyncFileLoader. By default,None.**kwargs – Additional keyword arguments to pass to the
BaseLLMCallerinstance.
Methods
check(url, jurisdiction)Check if the website is the main website for a jurisdiction
Attributes
System message for main jurisdiction website validation calls
- WEB_PAGE_CHECK_SYSTEM_MESSAGE = 'You are an expert data analyst that examines website text to determine if the website is the main website for a given jurisdiction. Only ever answer based on the information from the website itself.'#
System message for main jurisdiction website validation calls