compass.extraction.solar.ordinance.SolarOrdinanceTextExtractor#
- class SolarOrdinanceTextExtractor(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. solar 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_solar_energy_system_section
(text_chunks)Extract ordinance text from input text chunks for SEF
Attributes
SOLAR_ENERGY_SYSTEM_FILTER_PROMPT
SYSTEM_MESSAGE
Iterable of parsers provided by this extractor