compass.extraction.wind.ordinance.WindOrdinanceTextExtractor#
- class WindOrdinanceTextExtractor(llm_caller)[source]#
Bases:
BaseTextExtractor
Extract succinct ordinance text from input
- Purpose:
Extract relevant ordinance text from document.
- Responsibilities:
Extract portions from chunked document text relevant to particular ordinance type (e.g. wind zoning for utility-scale systems).
- Key Relationships:
Uses a
StructuredLLMCaller
for LLM queries.
- Parameters:
llm_caller (
compass.llm.LLMCaller
) – LLM Caller instance used to extract ordinance info with.
Methods
Extract large WES ordinance text from input text chunks
extract_wind_energy_system_section
(text_chunks)Extract ordinance text from input text chunks for WES
Attributes
LARGE_WIND_ENERGY_SYSTEM_SECTION_FILTER_PROMPT
SYSTEM_MESSAGE
WIND_ENERGY_SYSTEM_FILTER_PROMPT
Iterable of parsers provided by this extractor
- async extract_wind_energy_system_section(text_chunks)[source]#
Extract ordinance text from input text chunks for WES