compass.common.base.BaseTextExtractor#
- class BaseTextExtractor(llm_caller)[source]#
Bases:
objectBase implementation for a text extractor
- Parameters:
llm_caller (
LLMCaller) – LLM Caller instance used to extract ordinance info with.
Methods
Attributes
System message for text extraction LLM calls
- SYSTEM_MESSAGE = 'You are a text extraction assistant. Your job is to extract only verbatim, **unmodified** excerpts from provided legal or policy documents. Do not interpret or paraphrase. Do not summarize. Only return exactly copied segments that match the specified scope. If the relevant content appears within a table, return the entire table, including headers and footers, exactly as formatted.'#
System message for text extraction LLM calls