compass.common.base#

Common ordinance extraction components

Functions

empty_output(feature)

Return the default empty result for a missing feature

llm_response_does_not_start_with_no(response)

Check if LLM response does not start with "no" (case-insensitive)

llm_response_starts_with_no(response)

Check if LLM response begins with "no" (case-insensitive)

llm_response_starts_with_yes(response)

Check if LLM response begins with "yes" (case-insensitive)

run_async_tree(tree[, response_as_json])

Run an async decision tree and optionally parse JSON output

run_async_tree_with_bm(tree, base_messages)

Run an async decision tree using seed "base" messages

setup_async_decision_tree(graph_setup_func)

Setup an AsyncDecisionTree for ordinance extraction

setup_base_setback_graph(**kwargs)

Setup graph to get setback ordinance text for a given feature

setup_graph_extra_restriction([is_numerical])

Setup Graph to extract non-setback ordinance values from text

setup_graph_no_nodes([d_tree_name])

Setup a graph with no nodes

setup_graph_permitted_use_districts(**kwargs)

Setup graph to extract permitted use districts for technology

setup_participating_owner(**kwargs)

Setup graph to check for "participating" setbacks for a feature

Classes

BaseTextExtractor(llm_caller)

Base implementation for a text extractor